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