]>
Commit | Line | Data |
---|---|---|
32f6e426 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
700013f0 | 4 | // $Id$ |
13985652 | 5 | // $MpId: AliMpDEManager.h,v 1.6 2006/05/24 13:58:16 ivana Exp $ |
32f6e426 | 6 | |
7 | /// \ingroup management | |
8 | /// \class AliMpDEManager | |
9 | /// \brief The manager class for definition of detection element types | |
13985652 | 10 | /// |
32f6e426 | 11 | /// The detection element types are defined via unique names |
12 | /// in denames.dat file for each station in the mapping data. | |
13 | /// Detection element name is composed of DETypeName and planeTypeName. | |
14 | /// DETypeName is only one per station in case of station1 and 2 quadrants, | |
15 | /// there are more DETypes in case of slat and trigger stations. | |
16 | /// | |
13985652 | 17 | /// \author Ivana Hrivnacova, IPN Orsay; |
18 | /// Laurent Aphecetche, SUBATECH Nantes | |
32f6e426 | 19 | |
20 | #ifndef ALI_MP_DE_MANAGER_H | |
21 | #define ALI_MP_DE_MANAGER_H | |
22 | ||
2a7ea2e6 | 23 | #include <TObject.h> |
db11901e | 24 | #include <TArrayI.h> |
2a7ea2e6 | 25 | |
32f6e426 | 26 | #include "AliMpExMap.h" |
27 | #include "AliMpPlaneType.h" | |
28 | #include "AliMpStationType.h" | |
4af021b2 | 29 | #include "AliMpCathodType.h" |
30 | #include "AliMpDEIterator.h" | |
32f6e426 | 31 | |
4af021b2 | 32 | class AliMpDetElement; |
2eee683c | 33 | class TString; |
32f6e426 | 34 | |
35 | class AliMpDEManager : public TObject { | |
36 | ||
37 | public: | |
38 | virtual ~AliMpDEManager(); | |
39 | ||
40 | // methods | |
41 | static Bool_t IsValidDetElemId(Int_t detElemId, Bool_t warn = false); | |
0a11b03f | 42 | static Bool_t IsValidChamberId(Int_t chamberId, Bool_t warn = false); |
43 | static Bool_t IsValidGeomModuleId(Int_t moduleId, Bool_t warn = false); | |
32f6e426 | 44 | |
0a11b03f | 45 | static Int_t GetChamberId(Int_t detElemId, Bool_t warn = true); |
46 | static Int_t GetGeomModuleId(Int_t detElemId, Bool_t warn = true); | |
4af021b2 | 47 | static AliMp::PlaneType GetPlaneType(Int_t detElemId, AliMp::CathodType cath); |
48 | static AliMp::StationType GetStationType(Int_t detElemId); | |
49 | static AliMp::CathodType GetCathod(Int_t detElemId, AliMp::PlaneType planeType); | |
32f6e426 | 50 | |
4af021b2 | 51 | static AliMpDetElement* GetDetElement(Int_t detElemId, Bool_t warn = true); |
2eee683c | 52 | static AliMpDetElement* GetDetElement(const TString& deName, Bool_t warn = true); |
53 | ||
db11901e | 54 | static Int_t GetNofDEInChamber(Int_t chamberId, Bool_t warn = true); |
4af021b2 | 55 | |
13e7956b | 56 | private: |
f5671fc3 | 57 | /// Not implemented |
32f6e426 | 58 | AliMpDEManager(); |
f5671fc3 | 59 | /// Not implemented |
32f6e426 | 60 | AliMpDEManager(const AliMpDEManager& rhs); |
f5671fc3 | 61 | /// Not implemented |
32f6e426 | 62 | AliMpDEManager& operator=(const AliMpDEManager& rhs); |
db11901e | 63 | |
4af021b2 | 64 | // static data members |
65 | static const Int_t fgkCoefficient; ///< Coefficient used in DE Id <-> station | |
66 | static TArrayI fgNofDEPerChamber; ///< Number of detElemId per chamber | |
67 | ||
829425a5 | 68 | ClassDef(AliMpDEManager,0) // The manager class for definition of detection element types |
32f6e426 | 69 | }; |
70 | ||
71 | #endif //ALI_MP_MANAGER_H | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 |