]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpDEManager.h
From Cvetan: new macro to load ITS clusters.
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDEManager.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 // $MpId: AliMpDEManager.h,v 1.6 2006/05/24 13:58:16 ivana Exp $ 
6
7 /// \ingroup management
8 /// \class AliMpDEManager
9 /// \brief The manager class for definition of detection element types
10 ///
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 ///
17 /// \author Ivana Hrivnacova, IPN Orsay;
18 ///         Laurent Aphecetche, SUBATECH Nantes
19
20 #ifndef ALI_MP_DE_MANAGER_H
21 #define ALI_MP_DE_MANAGER_H
22
23 #include <TObject.h>
24 #include <TArrayI.h>
25
26 #include "AliMpExMap.h"
27 #include "AliMpPlaneType.h"
28 #include "AliMpStationType.h"
29 #include "AliMpCathodType.h"
30 #include "AliMpDEIterator.h"
31
32 class AliMpDetElement;
33
34 class AliMpDEManager : public  TObject {
35
36   public:
37     virtual ~AliMpDEManager();
38     
39     // methods
40     static Bool_t IsValidDetElemId(Int_t detElemId, Bool_t warn = false);
41     static Bool_t IsValidChamberId(Int_t chamberId, Bool_t warn = false);
42     static Bool_t IsValidGeomModuleId(Int_t moduleId, Bool_t warn = false);
43
44     static Int_t   GetChamberId(Int_t detElemId, Bool_t warn = true);    
45     static Int_t   GetGeomModuleId(Int_t detElemId, Bool_t warn = true);    
46     static AliMp::PlaneType   GetPlaneType(Int_t detElemId, AliMp::CathodType cath);
47     static AliMp::StationType GetStationType(Int_t detElemId);
48     static AliMp::CathodType  GetCathod(Int_t detElemId, AliMp::PlaneType planeType);
49
50     static AliMpDetElement* GetDetElement(Int_t detElemId, Bool_t warn = true);
51     static Int_t GetNofDEInChamber(Int_t chamberId, Bool_t warn = true);
52
53   private:
54     /// Not implemented
55     AliMpDEManager();
56     /// Not implemented
57     AliMpDEManager(const AliMpDEManager& rhs);
58     /// Not implemented
59     AliMpDEManager& operator=(const AliMpDEManager& rhs);
60       
61     // static data members      
62     static const Int_t   fgkCoefficient; ///< Coefficient used in DE Id <-> station
63     static    TArrayI fgNofDEPerChamber; ///< Number of detElemId per chamber
64
65   ClassDef(AliMpDEManager,0)  // The manager class for definition of detection element types
66 };
67
68 #endif //ALI_MP_MANAGER_H
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83