]>
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" | |
29 | ||
32f6e426 | 30 | class AliMpVSegmentation; |
31 | ||
32 | class AliMpDEManager : public TObject { | |
33 | ||
34 | public: | |
35 | virtual ~AliMpDEManager(); | |
36 | ||
37 | // methods | |
38 | static Bool_t IsValidDetElemId(Int_t detElemId, Bool_t warn = false); | |
39 | static Bool_t IsValidCathod(Int_t cath, Bool_t warn = false); | |
40 | static Bool_t IsValid(Int_t detElemId, Int_t cath, Bool_t warn = false); | |
0a11b03f | 41 | static Bool_t IsValidChamberId(Int_t chamberId, Bool_t warn = false); |
42 | static Bool_t IsValidGeomModuleId(Int_t moduleId, Bool_t warn = false); | |
32f6e426 | 43 | |
44 | static TString GetDEName(Int_t detElemId, Int_t cath, Bool_t warn = true); | |
45 | static TString GetDETypeName(Int_t detElemId, Int_t cath, Bool_t warn = true); | |
0a11b03f | 46 | static Int_t GetChamberId(Int_t detElemId, Bool_t warn = true); |
47 | static Int_t GetGeomModuleId(Int_t detElemId, Bool_t warn = true); | |
32f6e426 | 48 | static AliMpPlaneType GetPlaneType(Int_t detElemId, Int_t cath); |
49 | static AliMpStationType GetStationType(Int_t detElemId); | |
6b87a46a | 50 | static Int_t GetCathod(Int_t detElemId, AliMpPlaneType planeType); |
32f6e426 | 51 | |
db11901e | 52 | static Int_t GetNofDEInChamber(Int_t chamberId, Bool_t warn = true); |
13e7956b | 53 | private: |
32f6e426 | 54 | AliMpDEManager(); |
55 | AliMpDEManager(const AliMpDEManager& rhs); | |
56 | AliMpDEManager& operator=(const AliMpDEManager& rhs); | |
57 | ||
32f6e426 | 58 | // methods |
59 | static Bool_t IsPlaneType(const TString& planeTypeName); | |
60 | static AliMpPlaneType PlaneType(const TString& planeTypeName); | |
61 | static AliMpStationType StationType(const TString& stationTypeName); | |
62 | ||
63 | static Bool_t ReadDENames(AliMpStationType station); | |
64 | static void FillDENames(); | |
65 | ||
66 | // static data members | |
829425a5 | 67 | static const char fgkNameSeparator; ///< Separator character used in DE names |
68 | static const char fgkCommentPrefix; ///< Comment prefix in DE names file | |
69 | static const Int_t fgkCoefficient; ///< Coefficient used in DE Id <-> station | |
32f6e426 | 70 | |
71 | // data members | |
829425a5 | 72 | static AliMpExMap fgDENamesMap; ///< \brief Map between DE Ids and |
73 | /// a pair of DE names for 2 cathods | |
74 | static AliMpExMap fgDECathBNBMap;///< \brief Map between DE Is and a pair | |
75 | /// of planeTypes for cathodes (0,1) | |
db11901e | 76 | static TArrayI fgNofDEPerChamber;///< number of detElemId per chamber |
77 | ||
829425a5 | 78 | ClassDef(AliMpDEManager,0) // The manager class for definition of detection element types |
32f6e426 | 79 | }; |
80 | ||
81 | #endif //ALI_MP_MANAGER_H | |
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 |