]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDebugVolume.cxx
950a0714a5b59f60a2bec606b31b6bf539bc5e2f
[u/mrichter/AliRoot.git] / STEER / AliDebugVolume.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Header$ */
17
18 #include "AliDebugVolume.h"
19
20 ClassImp(AliDebugVolume)
21
22
23 //_______________________________________________________________________
24 AliDebugVolume::AliDebugVolume():
25   fCopy(0),
26   fStep(0),
27   fX(0),
28   fY(0),
29   fZ(0),
30   fStatus(0)
31 {
32   //
33   // Default constructor
34   //
35 }
36
37 //_______________________________________________________________________
38 AliDebugVolume::AliDebugVolume(const char *name, Int_t copy, Float_t step, 
39                                Float_t x, Float_t y, Float_t z, Int_t status):
40   TNamed(name, "Debug Volume"),
41   fCopy(copy),
42   fStep(step),
43   fX(x),
44   fY(y),
45   fZ(z),
46   fStatus(status)
47 {
48   //
49   // Normal constructor
50   //
51 }
52
53
54 //_______________________________________________________________________
55 Bool_t  AliDebugVolume::IsVEqual(const char* name, const Int_t copy) const
56 {
57   return (copy == fCopy && strcmp(name, fName) == 0);
58 }
59
60 //_______________________________________________________________________
61 char*   AliDebugVolume::Status() const
62 {
63   char* tmp;
64   tmp = "Undefined";
65   if (fStatus == 1) tmp = "Entering";
66   if (fStatus == 2) tmp = "Exiting";   
67   return tmp;
68 }