CMS 3D CMS Logo

L1GtTrigReportEntry.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtTrigReportEntry_h
2 #define GlobalTriggerAnalyzer_L1GtTrigReportEntry_h
3 
18 // system include files
19 #include <string>
20 
21 // class declaration
22 
24 public:
26  explicit L1GtTrigReportEntry(const std::string& menuName,
27  const std::string& algName,
28  const int prescaleFactor,
29  const int triggerMask,
30  const int daqPartition);
31 
33  virtual ~L1GtTrigReportEntry();
34 
35 public:
38 
40  bool operator==(const L1GtTrigReportEntry&) const;
41 
43  bool operator!=(const L1GtTrigReportEntry&) const;
44 
45 public:
47  inline const std::string gtTriggerMenuName() const { return m_triggerMenuName; }
48 
50  inline const std::string gtAlgoName() const { return m_algoName; }
51 
53  inline const int gtPrescaleFactor() const { return m_prescaleFactor; }
54 
56  inline const unsigned int gtTriggerMask() const { return m_triggerMask; }
57 
59  inline const unsigned int gtDaqPartition() const { return m_daqPartition; }
60 
62  inline const int gtNrEventsAccept() const { return m_nrEventsAccept; }
63 
65  inline const int gtNrEventsReject() const { return m_nrEventsReject; }
66 
68  inline const int gtNrEventsAcceptBeforeMask() const { return m_nrEventsAcceptBeforeMask; }
69 
71  inline const int gtNrEventsRejectBeforeMask() const { return m_nrEventsRejectBeforeMask; }
72 
74  inline const int gtNrEventsError() const { return m_nrEventsError; }
75 
76 public:
78  void addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask);
79 
81  void addErrorEntry();
82 
83 private:
86 
89 
92 
94  unsigned int m_triggerMask;
95 
98 
100 
103 
106 
109 
112 
115 };
116 
117 #endif /*GlobalTriggerAnalyzer_L1GtTrigReportEntry_h*/
L1GtTrigReportEntry::gtNrEventsRejectBeforeMask
const int gtNrEventsRejectBeforeMask() const
get the number of events rejected for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:71
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::gtTriggerMask
const unsigned int gtTriggerMask() const
get the trigger mask
Definition: L1GtTrigReportEntry.h:56
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::gtPrescaleFactor
const int gtPrescaleFactor() const
get the prescale factor
Definition: L1GtTrigReportEntry.h:53
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::gtNrEventsAcceptBeforeMask
const int gtNrEventsAcceptBeforeMask() const
get the number of events accepted for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:68
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::gtDaqPartition
const unsigned int gtDaqPartition() const
get the index of the DAQ partition
Definition: L1GtTrigReportEntry.h:59
L1GtTrigReportEntry::~L1GtTrigReportEntry
virtual ~L1GtTrigReportEntry()
destructor
Definition: L1GtTrigReportEntry.cc:45
L1GtTrigReportEntry::gtAlgoName
const std::string gtAlgoName() const
get the algorithm name
Definition: L1GtTrigReportEntry.h:50
L1GtTrigReportEntry::gtNrEventsError
const int gtNrEventsError() const
get the number of events with error for this entry
Definition: L1GtTrigReportEntry.h:74
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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
L1GtTrigReportEntry::operator=
L1GtTrigReportEntry & operator=(const L1GtTrigReportEntry &)
assignment operator
Definition: L1GtTrigReportEntry.cc:50
L1GtTrigReportEntry::gtTriggerMenuName
const std::string gtTriggerMenuName() const
get the trigger menu name
Definition: L1GtTrigReportEntry.h:47
L1GtTrigReportEntry::gtNrEventsAccept
const int gtNrEventsAccept() const
get the number of events accepted for this entry
Definition: L1GtTrigReportEntry.h:62
L1GtTrigReportEntry::m_nrEventsRejectBeforeMask
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:111
L1GtTrigReportEntry::gtNrEventsReject
const int gtNrEventsReject() const
get the number of events rejected for this entry
Definition: L1GtTrigReportEntry.h:65