FairRoot/PandaRoot
PndEmcMapper.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Description:
3 // EMC Mapper class. Map crystal index (fDetectorId) to two coordinate index.
4 // Author List:
5 // Dima Melnychuk
6 //
8 
9 //#pragma once
10 #ifndef PNDEMCMAPPER_H
11 #define PNDEMCMAPPER_H
12 
13 #include "PndEmcTwoCoordIndex.h"
14 #include "TObject.h"
15 #include "TString.h"
16 #include <map>
17 
22 class PndEmcMapper: public TObject
23 {
24 
25 public:
26  static PndEmcMapper* Instance();
27  static void Init(Int_t MapVersion);
28  const std::map<Int_t,PndEmcTwoCoordIndex* >& GetTciMap();
29 
31  virtual ~PndEmcMapper();
32 
34  Int_t GetMapVersion() const { return fMapVersion ;};
35 
36  void Add(PndEmcMapper*);
37 
39 protected:
40  std::map<Int_t,PndEmcTwoCoordIndex* > fIntTwoCoordMap;
41  PndEmcMapper();
42 private:
43 
45  static Int_t fMapVersion;
46  Int_t GetDetId(Int_t iTheta,Int_t iPhi);
47 
48 
49  ClassDef(PndEmcMapper,1)
50 };
51 
53 {
54  public:
56 };
57 
59 {
60  public:
62 };
63 
65 {
66  public:
68 };
69 
71 {
72  public:
74 };
75 
77 {
78  public:
80 };
81 
83 {
84  public:
86 };
87 
89 {
90  public:
92 };
93 
95 {
96  public:
98 };
99 
101 {
102  public:
104 };
105 
107 {
108  public:
110 };
111 
113 {
114  public:
116 };
117 
119 {
120  public:
122 };
123 
124 #endif //PndEmcMapper_H
const std::map< Int_t, PndEmcTwoCoordIndex * > & GetTciMap()
stores crystal index coordinates (x,y) or (theta,phi)
PndEmcTwoCoordIndex * GetTCI(Int_t DetectorId)
Emc geometry mapper.
Definition: PndEmcMapper.h:22
static Int_t fMapVersion
Definition: PndEmcMapper.h:45
std::map< Int_t, PndEmcTwoCoordIndex * > fIntTwoCoordMap
Definition: PndEmcMapper.h:40
static void Init(Int_t MapVersion)
Int_t GetMapVersion() const
Definition: PndEmcMapper.h:34
void Add(PndEmcMapper *)
Int_t GetDetId(Int_t iTheta, Int_t iPhi)
static PndEmcMapper * _instance
Definition: PndEmcMapper.h:44
virtual ~PndEmcMapper()
static PndEmcMapper * Instance()