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