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