BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcGeneralClass/EmcGeneralClass-00-00-04/EmcGeneralClass/EmcStructure.h
Go to the documentation of this file.
1#ifndef EMCSTRUCTURE_H
2#define EMCSTRUCTURE_H
3#include "Identifier/EmcID.h"
4
6{
7public:
8
9 // Constructors
11
12 // Destructors
14
15 long getIndex( unsigned int thetaIndex, unsigned int phiIndex ) const;
16
17 bool isOutofAccep(unsigned int thetaIndex,unsigned int phiIndex) const;
18
19 //number Of Theta Rings (from 0 to 55)
20 unsigned int getNumberOfTheRings();
21
22 unsigned int getNumberOfXtals();
23
24 //The theta index is defined by Endcap_east(0-5),Barrel(6-49),Endcap_west(50-55)
25 //in Emc Bhabha Calibration
26 unsigned int startingTheta() {return 0;}
27
28 unsigned int crystalsInRing( unsigned int theta ) const;
29
30 // First call setEmcStruc(), and then getThisThetaMaxIndex,
31 // getPartId. getTheta, getPhi, or getGeomIndex can use.
32 void setEmcStruc();
33
34 long getThisThetaMaxIndex(int Theta) const {return m_ThetaMaxIndex[Theta];}
35 unsigned int getPartId( long Index) const {return m_partID[Index];}
36 unsigned int getTheta( long Index) const {return m_thetaIndex[Index];}
37 unsigned int getPhi( long Index) const {return m_phiIndex[Index];}
38 int getGeomIndex( unsigned int PartId,
39 unsigned int ThetaIndex,
40 unsigned int PhiIndex) const;
41
42 private:
43
44 EmcID* aEmcId;
45 static const unsigned int numberOfOneEndcapRings = 2;
46 static const unsigned int numberOfTwoEndcapRings = 2;
47 static const unsigned int numberOfThreeEndcapRings = 2;
48 long m_ThetaMaxIndex[56];
49 unsigned int m_partID[6240];
50 unsigned int m_thetaIndex[6240];
51 unsigned int m_phiIndex[6240];
52
53};
54
55#endif // EMCSTRUCTURE_H
56
int getGeomIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const
void setEmcStruc()
long getIndex(unsigned int thetaIndex, unsigned int phiIndex) const
unsigned int getNumberOfTheRings()
unsigned int crystalsInRing(unsigned int theta) const
bool isOutofAccep(unsigned int thetaIndex, unsigned int phiIndex) const
unsigned int getNumberOfXtals()