]>
Commit | Line | Data |
---|---|---|
6644b9ca | 1 | /************************************************************************** |
6eb8ed37 | 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 | /* | |
17 | $Log$ | |
e2afb3b6 | 18 | Revision 1.2 2002/10/23 07:43:00 alibrary |
19 | Introducing some effective C++ suggestions | |
20 | ||
6644b9ca | 21 | Revision 1.1 2001/05/11 13:21:16 morsch |
22 | Geom. volume data class. Can be used during lego run for debugging. | |
23 | ||
6eb8ed37 | 24 | */ |
25 | ||
26 | #include "AliDebugVolume.h" | |
27 | ||
28 | ClassImp(AliDebugVolume) | |
29 | ||
30 | ||
6644b9ca | 31 | //_______________________________________________________________________ |
32 | AliDebugVolume::AliDebugVolume(): | |
33 | fCopy(0), | |
34 | fStep(0), | |
35 | fX(0), | |
36 | fY(0), | |
37 | fZ(0), | |
38 | fStatus(0) | |
6eb8ed37 | 39 | { |
40 | // | |
41 | // Default constructor | |
42 | // | |
43 | } | |
44 | ||
6644b9ca | 45 | //_______________________________________________________________________ |
46 | AliDebugVolume::AliDebugVolume(const char *name, Int_t copy, Float_t step, | |
47 | Float_t x, Float_t y, Float_t z, Int_t status): | |
48 | TNamed(name, "Debug Volume"), | |
49 | fCopy(copy), | |
50 | fStep(step), | |
51 | fX(x), | |
52 | fY(y), | |
53 | fZ(z), | |
54 | fStatus(status) | |
6eb8ed37 | 55 | { |
6644b9ca | 56 | // |
57 | // Normal constructor | |
58 | // | |
6eb8ed37 | 59 | } |
60 | ||
61 | ||
6644b9ca | 62 | //_______________________________________________________________________ |
e2afb3b6 | 63 | Bool_t AliDebugVolume::IsVEqual(const char* name, const Int_t copy) const |
6eb8ed37 | 64 | { |
6644b9ca | 65 | return (copy == fCopy && strcmp(name, fName) == 0); |
6eb8ed37 | 66 | } |
67 | ||
6644b9ca | 68 | //_______________________________________________________________________ |
6eb8ed37 | 69 | char* AliDebugVolume::Status() const |
70 | { | |
6644b9ca | 71 | char* tmp; |
72 | tmp = "Undefined"; | |
73 | if (fStatus == 1) tmp = "Entering"; | |
74 | if (fStatus == 2) tmp = "Exiting"; | |
75 | return tmp; | |
6eb8ed37 | 76 | } |