BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigEACC.h
Go to the documentation of this file.
1#ifndef EVENT_TRIG_EACC_H
2#define EVENT_TRIG_EACC_H
3
4#include <stdint.h>
5#include <string>
6#include <vector>
7#include <map>
8
9class TrigEACC {
10public:
11 TrigEACC(const char* name);
12 virtual ~TrigEACC();
13
14 void setEACCTrigData(uint32_t boardId, uint32_t window, uint32_t datasize, const uint32_t* data);
15
16 void initialize();
17
18 inline const std::string& getName() const { return m_name; }
19 inline unsigned int getTimeWindow() const { return m_window; }
20
21 inline unsigned int getBBLKCharge(int id) const { return E_blk[id]; }
22 inline unsigned int getBBLKTime(int id) const { return T_blk[id]; }
23 inline unsigned int getEBLKCharge(int id) const { return E_blkE[id]; }
24 inline unsigned int getEBLKTime(int id) const { return T_blkE[id]; }
25 inline unsigned int getWBLKCharge(int id) const { return E_blkW[id]; }
26 inline unsigned int getWBLKTime(int id) const { return T_blkW[id]; }
27 inline unsigned int getBarrelCharge() const { return E_B_Etot; }
28 inline unsigned int getBarrelTime() const { return T_B_Etot; }
29 inline unsigned int getEndCapsCharge() const { return E_E_Etot; }
30 inline unsigned int getEndCapsTime() const { return T_E_Etot; }
31 inline unsigned int getEMCTotalCharge() const { return E_blkAll; }
32 inline unsigned int getEMCTotalTime() const { return T_blkAll; }
33 inline unsigned int getEastHalfCharge() const { return E_eastHalf; }
34 inline unsigned int getEastHalfTime() const { return T_eastHalf; }
35 inline unsigned int getWestHalfCharge() const { return E_westHalf; }
36 inline unsigned int getWestHalfTime() const { return T_westHalf; }
37 inline unsigned int getEastEndHalfCharge() const { return E_eastEndHalf; }
38 inline unsigned int getEastEndHalfTime() const { return T_eastEndHalf; }
39 inline unsigned int getWestEndHalfCharge() const { return E_westEndHalf; }
40 inline unsigned int getWestEndHalfTime() const { return T_westEndHalf; }
41
42 inline unsigned int getBTC(int theta, int phi, int winId) const { return TC[theta][phi][winId]; }
43 inline unsigned int getETC(int phi, int winId) const { return TC_E[phi][winId]; }
44 inline unsigned int getWTC(int phi, int winId) const { return TC_W[phi][winId]; }
45
46 inline unsigned int getMidCondi(int bit) const { return midCondi[bit]; }
47 inline unsigned int getTrigCondi(int bit, int winId) const { return emcTrigCondi[bit][winId]; }
48
49 void print();
50
51private:
52 std::string m_name;
53
54 unsigned int m_window;
55
56 unsigned int E_blk[12]; //charge of each barrel block Id
57 unsigned int T_blk[12]; //time of each barrel block Id
58 unsigned int E_blkE[2]; //charge of east block
59 unsigned int T_blkE[2]; //time of east block
60 unsigned int E_blkW[2]; //charge of west block
61 unsigned int T_blkW[2]; //time of west block
62 unsigned int E_B_Etot; //barrel charge
63 unsigned int T_B_Etot; //barrel time
64 unsigned int E_E_Etot; //endcaps charge
65 unsigned int T_E_Etot; //endcaps time
66 unsigned int E_blkAll; //total emc charge
67 unsigned int T_blkAll; //total emc time
68 unsigned int E_eastHalf; //charge of east half
69 unsigned int T_eastHalf; //time of east half
70 unsigned int E_westHalf; //charge of west half
71 unsigned int T_westHalf; //time of west half
72 unsigned int E_eastEndHalf; //charge of east end cap
73 unsigned int T_eastEndHalf; //time of east end cap
74 unsigned int E_westEndHalf; //charge of west end cap
75 unsigned int T_westEndHalf; //time of west end cap
76
77 unsigned int TC[11][30][32]; //theta, phi, windowId
78 unsigned int TC_E[32][32]; //phi, windowId
79 unsigned int TC_W[32][32]; //phi, windowId
80
81 unsigned int midCondi[16]; //conditionId
82 unsigned int emcTrigCondi[16][32]; //conditionId, windowId
83
84};
85
86#endif // EVENT_TRIG_EACC_H
TTree * data
void print()
Definition: TrigEACC.cxx:118
unsigned int getTrigCondi(int bit, int winId) const
unsigned int getBTC(int theta, int phi, int winId) const
void setEACCTrigData(uint32_t boardId, uint32_t window, uint32_t datasize, const uint32_t *data)
Definition: TrigEACC.cxx:41
virtual ~TrigEACC()
Definition: TrigEACC.cxx:11
void initialize()
Definition: TrigEACC.cxx:14
unsigned int getWTC(int phi, int winId) const
unsigned int getETC(int phi, int winId) const