AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpDEManager.h
Go to the documentation of this file.
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 
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 "AliMpCathodType.h"
29 #include "AliMpStationType.h"
30 #include "AliMpStation12Type.h"
31 #include "AliMpDEIterator.h"
32 #include "AliMpEncodePair.h"
33 
34 class AliMpDetElement;
35 class TString;
36 
37 class AliMpDEManager : public TObject {
38 
39  public:
40  virtual ~AliMpDEManager();
41 
42  // methods
43  static Bool_t IsValidDetElemId(Int_t detElemId, Bool_t warn = false);
44  static Bool_t IsValidChamberId(Int_t chamberId, Bool_t warn = false);
45  static Bool_t IsValidGeomModuleId(Int_t moduleId, Bool_t warn = false);
46 
47  static Int_t GetChamberId(Int_t detElemId, Bool_t warn = true);
48  static Int_t GetGeomModuleId(Int_t detElemId, Bool_t warn = true);
49  static AliMp::PlaneType GetPlaneType(Int_t detElemId, AliMp::CathodType cath);
50  static AliMp::CathodType GetCathod(Int_t detElemId, AliMp::PlaneType planeType);
51  static AliMp::StationType GetStationType(Int_t detElemId);
52  static AliMq::Station12Type GetStation12Type(Int_t detElemId);
53 
54  static AliMpDetElement* GetDetElement(Int_t detElemId, Bool_t warn = true);
55  static AliMpDetElement* GetDetElement(const TString& deName, Bool_t warn = true);
56 
57  static Int_t GetNofDEInChamber(Int_t chamberId, Bool_t warn = true);
58  static MpPair_t GetDetElemIdRange(Int_t chamberId);
59 
60  private:
64  AliMpDEManager(const AliMpDEManager& rhs);
67 
68  // static methods
69  static TArrayI& GetNofDEPerChamber();
70 
71  // static data members
72  static const Int_t fgkCoefficient;
73 
74  ClassDef(AliMpDEManager,0) // The manager class for definition of detection element types
75 };
76 
77 #endif //ALI_MP_MANAGER_H
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
static AliMq::Station12Type GetStation12Type(Int_t detElemId)
static Bool_t IsValidGeomModuleId(Int_t moduleId, Bool_t warn=false)
static const Int_t fgkCoefficient
Coefficient used in DE Id <-> station.
static AliMp::CathodType GetCathod(Int_t detElemId, AliMp::PlaneType planeType)
static MpPair_t GetDetElemIdRange(Int_t chamberId)
static Int_t GetGeomModuleId(Int_t detElemId, Bool_t warn=true)
The class defines the electronics properties of detection element.
static Int_t GetChamberId(Int_t detElemId, Bool_t warn=true)
static TArrayI & GetNofDEPerChamber()
static Int_t GetNofDEInChamber(Int_t chamberId, Bool_t warn=true)
static AliMp::StationType GetStationType(Int_t detElemId)
AliMpDEManager & operator=(const AliMpDEManager &rhs)
Not implemented.
static AliMp::PlaneType GetPlaneType(Int_t detElemId, AliMp::CathodType cath)
The manager class for definition of detection element types.
Int_t MpPair_t
AliMpDEManager()
Not implemented.
static Bool_t IsValidChamberId(Int_t chamberId, Bool_t warn=false)
virtual ~AliMpDEManager()
static AliMpDetElement * GetDetElement(Int_t detElemId, Bool_t warn=true)
static Bool_t IsValidDetElemId(Int_t detElemId, Bool_t warn=false)