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 
L1GtTrigReportEntry::operator!=
bool operator!=(const L1GtTrigReportEntry &) const
unequal operator
Definition: L1GtTrigReportEntry.cc:95
L1GtTrigReportEntry::m_nrEventsError
int m_nrEventsError
number of events with error
Definition: L1GtTrigReportEntry.h:114
L1GtTrigReportEntry::m_prescaleFactor
int m_prescaleFactor
prescale factor
Definition: L1GtTrigReportEntry.h:91
L1GtTrigReportEntry::m_nrEventsReject
int m_nrEventsReject
number of events rejected for this entry
Definition: L1GtTrigReportEntry.h:105
L1GtTrigReportEntry
Definition: L1GtTrigReportEntry.h:23
L1GtTrigReportEntry::m_daqPartition
int m_daqPartition
index of the DAQ partition
Definition: L1GtTrigReportEntry.h:97
L1GtTrigReportEntry::m_triggerMenuName
std::string m_triggerMenuName
menu name
Definition: L1GtTrigReportEntry.h:85
L1GtTrigReportEntry::operator==
bool operator==(const L1GtTrigReportEntry &) const
equal operator
Definition: L1GtTrigReportEntry.cc:67
L1GtTrigReportEntry::m_triggerMask
unsigned int m_triggerMask
trigger mask
Definition: L1GtTrigReportEntry.h:94
L1GtTrigReportEntry::m_nrEventsAcceptBeforeMask
int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:108
L1GtTrigReportEntry.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTrigReportEntry::~L1GtTrigReportEntry
virtual ~L1GtTrigReportEntry()
destructor
Definition: L1GtTrigReportEntry.cc:45
L1GtTrigReportEntry::addErrorEntry
void addErrorEntry()
increase # of events with error
Definition: L1GtTrigReportEntry.cc:115
L1GtTrigReportEntry::L1GtTrigReportEntry
L1GtTrigReportEntry(const std::string &menuName, const std::string &algName, const int prescaleFactor, const int triggerMask, const int daqPartition)
constructor
Definition: L1GtTrigReportEntry.cc:24
L1GtTrigReportEntry::m_nrEventsAccept
int m_nrEventsAccept
counters
Definition: L1GtTrigReportEntry.h:102
Skims_PDWG_cff.prescaleFactor
prescaleFactor
Definition: Skims_PDWG_cff.py:25
L1GtTrigReportEntry::addValidEntry
void addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask)
increase # of events accepted/rejected for this entry
Definition: L1GtTrigReportEntry.cc:100
L1GtTrigReportEntry::m_algoName
std::string m_algoName
algorithm name
Definition: L1GtTrigReportEntry.h:88
mps_fire.result
result
Definition: mps_fire.py:311
L1GtTrigReportEntry::operator=
L1GtTrigReportEntry & operator=(const L1GtTrigReportEntry &)
assignment operator
Definition: L1GtTrigReportEntry.cc:50
L1GtTrigReportEntry::m_nrEventsRejectBeforeMask
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:111