CMS 3D CMS Logo

L1GtTrigReportEntry.cc
Go to the documentation of this file.
1 
15 // this class header
17 
18 // system include files
19 #include <string>
20 
21 // user include files
22 
23 // constructor(s)
25  const int prescaleFactor, const int triggerMask, const int daqPartition) {
26 
27  m_triggerMenuName = menuName;
28  m_algoName = algName;
30  m_triggerMask = triggerMask;
31  m_daqPartition = daqPartition;
32 
33  // counters
34 
35  m_nrEventsAccept = 0;
36  m_nrEventsReject = 0;
39  m_nrEventsError = 0;
40 }
41 
42 // destructor
44 
45  //empty
46 
47 }
48 
49 // assignment operator
51  const L1GtTrigReportEntry& repEntry)
52 {
53 
54  if ( this != &repEntry ) {
55 
57 
58  m_algoName = repEntry.m_algoName;
59 
61 
62  m_triggerMask = repEntry.m_triggerMask;
63 
64  m_daqPartition = repEntry.m_daqPartition;
65  }
66 
67  return *this;
68 
69 }
70 
71 // equal operator
73 {
74 
75  // faster comparisons first
76 
77  if (m_daqPartition != repEntry.m_daqPartition) {
78  return false;
79  }
80 
81  if (m_triggerMask != repEntry.m_triggerMask) {
82  return false;
83  }
84 
85  if (m_prescaleFactor != repEntry.m_prescaleFactor) {
86  return false;
87  }
88 
89  if (m_algoName != repEntry.m_algoName) {
90  return false;
91  }
92 
93  if (m_triggerMenuName != repEntry.m_triggerMenuName) {
94  return false;
95  }
96 
97 
98  // all members identical
99  return true;
100 
101 }
102 
103 // unequal operator
105 {
106 
107  return !( result == *this);
108 
109 }
110 
111 // member functions
112 
114 void L1GtTrigReportEntry::addValidEntry(const bool algResultAfterMask,
115  const bool algResultBeforeMask)
116 {
117 
118  if (algResultAfterMask) {
120  }
121  else {
123  }
124 
125  if (algResultBeforeMask) {
127  }
128  else {
130  }
131 
132 }
133 
136 
137  m_nrEventsError++;
138 }
bool operator!=(const L1GtTrigReportEntry &) const
unequal operator
std::string m_triggerMenuName
menu name
int m_daqPartition
index of the DAQ partition
void addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask)
increase # of events accepted/rejected for this entry
virtual ~L1GtTrigReportEntry()
destructor
int m_nrEventsError
number of events with error
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
L1GtTrigReportEntry(const std::string &menuName, const std::string &algName, const int prescaleFactor, const int triggerMask, const int daqPartition)
constructor
std::string m_algoName
algorithm name
int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks
void addErrorEntry()
increase # of events with error
L1GtTrigReportEntry & operator=(const L1GtTrigReportEntry &)
assignment operator
int m_prescaleFactor
prescale factor
int m_nrEventsReject
number of events rejected for this entry
unsigned int m_triggerMask
trigger mask
bool operator==(const L1GtTrigReportEntry &) const
equal operator