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 std::string& algName,
26  const int prescaleFactor,
27  const int triggerMask,
28  const int daqPartition) {
29  m_triggerMenuName = menuName;
30  m_algoName = algName;
32  m_triggerMask = triggerMask;
33  m_daqPartition = daqPartition;
34 
35  // counters
36 
37  m_nrEventsAccept = 0;
38  m_nrEventsReject = 0;
41  m_nrEventsError = 0;
42 }
43 
44 // destructor
46  //empty
47 }
48 
49 // assignment operator
51  if (this != &repEntry) {
53 
54  m_algoName = repEntry.m_algoName;
55 
57 
58  m_triggerMask = repEntry.m_triggerMask;
59 
60  m_daqPartition = repEntry.m_daqPartition;
61  }
62 
63  return *this;
64 }
65 
66 // equal operator
68  // faster comparisons first
69 
70  if (m_daqPartition != repEntry.m_daqPartition) {
71  return false;
72  }
73 
74  if (m_triggerMask != repEntry.m_triggerMask) {
75  return false;
76  }
77 
78  if (m_prescaleFactor != repEntry.m_prescaleFactor) {
79  return false;
80  }
81 
82  if (m_algoName != repEntry.m_algoName) {
83  return false;
84  }
85 
86  if (m_triggerMenuName != repEntry.m_triggerMenuName) {
87  return false;
88  }
89 
90  // all members identical
91  return true;
92 }
93 
94 // unequal operator
95 bool L1GtTrigReportEntry::operator!=(const L1GtTrigReportEntry& result) const { return !(result == *this); }
96 
97 // member functions
98 
100 void L1GtTrigReportEntry::addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask) {
101  if (algResultAfterMask) {
103  } else {
105  }
106 
107  if (algResultBeforeMask) {
109  } else {
111  }
112 }
113 
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