CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcTCFinder.h
Go to the documentation of this file.
1#ifndef EmcTCFinder_h
2#define EmcTCFinder_h 1
3
5#include "Trigger/TrigPara.h"
9using namespace TrigConf;
10
12public:
15 //void GetEmcDigi();
16 void setEmcDigi(EmcDigiCol* emcDigiCol);
17 void setEmcTC(std::vector<uint32_t> vTC);
18 void setEmcBE(std::vector<double> vBE);
19
20 int getTCPhiId(int partId,int ThetaNb,int PhiNb);
21 int getTCThetaId(int partId,int ThetaNb,int PhiNb);
22 int getBLKId(int TCTheta,int TCPhi) const;
23 inline double& getBTCEnergy(int i,int j) { return BTCEnergy[i][j];}
24 inline double& getEETCEnergy(int i,int j) { return EETCEnergy[i][j];}
25 inline double& getWETCEnergy(int i,int j) { return WETCEnergy[i][j];}
26
27 inline int& getBTC(int i,int j) { return BTC[i][j];}
28 inline int& getEETC(int i,int j) { return EETC[i][j];}
29 inline int& getWETC(int i,int j) { return WETC[i][j];}
30
31 inline double& getBTC_ADC(int i,int j) { return BTCEnergy_adc[i][j];}
32 inline double& getEETC_ADC(int i,int j) { return EETCEnergy_adc[i][j];}
33 inline double& getWETC_ADC(int i,int j) { return WETCEnergy_adc[i][j];}
34
35 inline double getBLKE(int i) { return BlkE[i]; }
36
37 static EmcTCFinder* get_Emc(void);
38
39private:
40 int TCThetaNb;
41 int TCPhiNb;
42 double BTCEnergy[TrigConf::TCTHETANO_B][TrigConf::TCPHINO_B];
43 double EETCEnergy[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
44 double WETCEnergy[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
45
46 int WETC[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
47 int EETC[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
48 int BTC[TrigConf::TCTHETANO_B][TrigConf::TCPHINO_B];
49
50 double BTCEnergy_adc[TrigConf::TCTHETANO_B][TrigConf::TCPHINO_B];
51 double EETCEnergy_adc[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
52 double WETCEnergy_adc[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E];
53
54 double BlkE[16];
55
56 static EmcTCFinder* emc_Pointer;
57 // Reference to RealizationSvc
58 RealizationSvc* m_RealizationSvc;
59 IEmcCalibConstSvc *emcCalibConstSvc;
60};
61#endif
ObjectVector< EmcDigi > EmcDigiCol
Definition EmcDigi.h:43
int getTCThetaId(int partId, int ThetaNb, int PhiNb)
static EmcTCFinder * get_Emc(void)
double & getEETC_ADC(int i, int j)
Definition EmcTCFinder.h:32
int & getWETC(int i, int j)
Definition EmcTCFinder.h:29
void setEmcBE(std::vector< double > vBE)
double & getBTC_ADC(int i, int j)
Definition EmcTCFinder.h:31
double & getWETC_ADC(int i, int j)
Definition EmcTCFinder.h:33
double & getBTCEnergy(int i, int j)
Definition EmcTCFinder.h:23
int getTCPhiId(int partId, int ThetaNb, int PhiNb)
double getBLKE(int i)
Definition EmcTCFinder.h:35
int & getEETC(int i, int j)
Definition EmcTCFinder.h:28
double & getEETCEnergy(int i, int j)
Definition EmcTCFinder.h:24
void setEmcTC(std::vector< uint32_t > vTC)
void setEmcDigi(EmcDigiCol *emcDigiCol)
int & getBTC(int i, int j)
Definition EmcTCFinder.h:27
int getBLKId(int TCTheta, int TCPhi) const
double & getWETCEnergy(int i, int j)
Definition EmcTCFinder.h:25