BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TrigData.cxx
Go to the documentation of this file.
1#include <iostream>
3
4const std::string TrigData::s_CONDITIONS[] = {
5 "00: NCluster >= 1",
6 "01: NCluster >= 2",
7 "02: Barrel Cluster back to back",
8 "03: Endcap Cluster back to back",
9 "04: Cluster Balance in Z direction",
10 "05: Barrel Cluster Balance in Phi direction",
11 "06: Endcap Cluster phi Balance",
12 "07: Barrel total Energy Higher threshold",
13 "08: Endcap total Energy Higher threshold",
14 "09: Total Energy Lower threshold",
15 "10: Total Energy Middle threshold",
16 "11: Energy Balance in \"Z\" direction",
17 "12: NBCluster >= 1",
18 "13: NECluster >= 1",
19 "14: Barrel Energy Block Balance",
20 "15: Endcap Energy Block Balance",
21 "16: Endcap TOF back to back",
22 "17: Barrel TOF back to back",
23 "18: NETOF >= 2",
24 "19: NETOF >= 1",
25 "20: NBTOF >= 2",
26 "21: NBTOF >= 1",
27 "22: NTOF >= 1",
28 "23: C Track Back to Back",
29 "24: NCTrk >= 2",
30 "25: NCTrk >= 1",
31 "26: B Track Back to Back",
32 "27: NBTrk >= 2",
33 "28: NBTrk >= 1",
34 "29: A Track Back to Back",
35 "30: NATrk >= 2",
36 "31: NATrk >= 1",
37 "32: MUON Back to Back 3478",
38 "33: MUON Back to Back 37",
39 "34: Not defined yet",
40 "35: Not defined yet",
41 "36: Not defined yet",
42 "37: Not defined yet",
43 "38: Short Track back to back",
44 "39: NStrk >= N",
45 "40: NStrk >= 2",
46 "41: NStrk >= 1",
47 "42: Long Track back to back",
48 "43: NLtrk >= N",
49 "44: NLtrk >= 2",
50 "45: NLtrk >= 1",
51 "46: NItrk >= 2",
52 "47: NItrk >= 1"
53};
54
55TrigData::TrigData(int window, int timing, const int* trigCond, const int* trigChan, bool preScale)
56{
57 m_timeWindow = window;
58 m_Timing = timing;
59 m_preScale = preScale;
60 for(int i = 0; i < 48; i++) {
61 if(i<16) {
62 m_trigChan[i] = trigChan[i];
63 }
64 m_trigcond[i] = trigCond[i];
65 }
66}
67
68void TrigData::print() const {
69 std::cout << "TrigData contains the following effective conditions:" << std::endl;
70 for (int i = 0; i < 48; i++) {
71 if(m_trigcond[i] == 1) std::cout << '\t' << s_CONDITIONS[i] << std::endl;
72 }
73}
TrigData()
Definition TrigData.h:15
void print() const
Definition TrigData.cxx:68