#include <L1GtTrigReportEntry.h>
Public Member Functions | |
void | addErrorEntry () |
increase # of events with error | |
void | addValidEntry (const bool algResultAfterMask, const bool algResultBeforeMask) |
increase # of events accepted/rejected for this entry | |
const std::string | gtAlgoName () const |
get the algorithm name | |
const unsigned int | gtDaqPartition () const |
get the index of the DAQ partition | |
const int | gtNrEventsAccept () const |
get the number of events accepted for this entry | |
const int | gtNrEventsAcceptBeforeMask () const |
get the number of events accepted for this entry before applying the trigger masks | |
const int | gtNrEventsError () const |
get the number of events with error for this entry | |
const int | gtNrEventsReject () const |
get the number of events rejected for this entry | |
const int | gtNrEventsRejectBeforeMask () const |
get the number of events rejected for this entry before applying the trigger masks | |
const int | gtPrescaleFactor () const |
get the prescale factor | |
const unsigned int | gtTriggerMask () const |
get the trigger mask | |
const std::string | gtTriggerMenuName () const |
get the trigger menu name | |
L1GtTrigReportEntry (const std::string &menuName, const std::string &algName, const int prescaleFactor, const int triggerMask, const int daqPartition) | |
constructor | |
bool | operator!= (const L1GtTrigReportEntry &) const |
unequal operator | |
L1GtTrigReportEntry & | operator= (const L1GtTrigReportEntry &) |
assignment operator | |
bool | operator== (const L1GtTrigReportEntry &) const |
equal operator | |
virtual | ~L1GtTrigReportEntry () |
destructor | |
Private Attributes | |
std::string | m_algoName |
algorithm name | |
int | m_daqPartition |
index of the DAQ partition | |
int | m_nrEventsAccept |
counters | |
int | m_nrEventsAcceptBeforeMask |
number of events accepted for this entry before applying the trigger masks | |
int | m_nrEventsError |
number of events with error | |
int | m_nrEventsReject |
number of events rejected for this entry | |
int | m_nrEventsRejectBeforeMask |
number of events rejected for this entry before applying the trigger masks | |
int | m_prescaleFactor |
prescale factor | |
unsigned int | m_triggerMask |
trigger mask | |
std::string | m_triggerMenuName |
menu name |
Description: an individual L1 GT report entry.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: L1 Trigger report.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 25 of file L1GtTrigReportEntry.h.
L1GtTrigReportEntry::L1GtTrigReportEntry | ( | const std::string & | menuName, |
const std::string & | algName, | ||
const int | prescaleFactor, | ||
const int | triggerMask, | ||
const int | daqPartition | ||
) | [explicit] |
constructor
Definition at line 26 of file L1GtTrigReportEntry.cc.
References m_algoName, m_daqPartition, m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsError, m_nrEventsReject, m_nrEventsRejectBeforeMask, m_prescaleFactor, m_triggerMask, m_triggerMenuName, and dtDQMClient_cfg::prescaleFactor.
{ m_triggerMenuName = menuName; m_algoName = algName; m_prescaleFactor = prescaleFactor; m_triggerMask = triggerMask; m_daqPartition = daqPartition; // counters m_nrEventsAccept = 0; m_nrEventsReject = 0; m_nrEventsAcceptBeforeMask = 0; m_nrEventsRejectBeforeMask = 0; m_nrEventsError = 0; }
L1GtTrigReportEntry::~L1GtTrigReportEntry | ( | ) | [virtual] |
void L1GtTrigReportEntry::addErrorEntry | ( | ) |
increase # of events with error
Definition at line 137 of file L1GtTrigReportEntry.cc.
References m_nrEventsError.
Referenced by L1GtTrigReport::analyze().
{ m_nrEventsError++; }
void L1GtTrigReportEntry::addValidEntry | ( | const bool | algResultAfterMask, |
const bool | algResultBeforeMask | ||
) |
increase # of events accepted/rejected for this entry
Definition at line 116 of file L1GtTrigReportEntry.cc.
References m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsReject, and m_nrEventsRejectBeforeMask.
Referenced by L1GtTrigReport::analyze().
{ if (algResultAfterMask) { m_nrEventsAccept++; } else { m_nrEventsReject++; } if (algResultBeforeMask) { m_nrEventsAcceptBeforeMask++; } else { m_nrEventsRejectBeforeMask++; } }
const std::string L1GtTrigReportEntry::gtAlgoName | ( | ) | const [inline] |
get the algorithm name
Definition at line 57 of file L1GtTrigReportEntry.h.
References m_algoName.
{ return m_algoName; }
const unsigned int L1GtTrigReportEntry::gtDaqPartition | ( | ) | const [inline] |
get the index of the DAQ partition
Definition at line 72 of file L1GtTrigReportEntry.h.
References m_daqPartition.
{ return m_daqPartition; }
const int L1GtTrigReportEntry::gtNrEventsAccept | ( | ) | const [inline] |
get the number of events accepted for this entry
Definition at line 77 of file L1GtTrigReportEntry.h.
References m_nrEventsAccept.
{ return m_nrEventsAccept; }
const int L1GtTrigReportEntry::gtNrEventsAcceptBeforeMask | ( | ) | const [inline] |
get the number of events accepted for this entry before applying the trigger masks
Definition at line 87 of file L1GtTrigReportEntry.h.
References m_nrEventsAcceptBeforeMask.
{ return m_nrEventsAcceptBeforeMask; }
const int L1GtTrigReportEntry::gtNrEventsError | ( | ) | const [inline] |
get the number of events with error for this entry
Definition at line 98 of file L1GtTrigReportEntry.h.
References m_nrEventsError.
{ return m_nrEventsError; }
const int L1GtTrigReportEntry::gtNrEventsReject | ( | ) | const [inline] |
get the number of events rejected for this entry
Definition at line 82 of file L1GtTrigReportEntry.h.
References m_nrEventsReject.
{ return m_nrEventsReject; }
const int L1GtTrigReportEntry::gtNrEventsRejectBeforeMask | ( | ) | const [inline] |
get the number of events rejected for this entry before applying the trigger masks
Definition at line 92 of file L1GtTrigReportEntry.h.
References m_nrEventsRejectBeforeMask.
{ return m_nrEventsRejectBeforeMask; }
const int L1GtTrigReportEntry::gtPrescaleFactor | ( | ) | const [inline] |
get the prescale factor
Definition at line 62 of file L1GtTrigReportEntry.h.
References m_prescaleFactor.
{ return m_prescaleFactor; }
const unsigned int L1GtTrigReportEntry::gtTriggerMask | ( | ) | const [inline] |
get the trigger mask
Definition at line 67 of file L1GtTrigReportEntry.h.
References m_triggerMask.
{ return m_triggerMask; }
const std::string L1GtTrigReportEntry::gtTriggerMenuName | ( | ) | const [inline] |
get the trigger menu name
Definition at line 52 of file L1GtTrigReportEntry.h.
References m_triggerMenuName.
{ return m_triggerMenuName; }
bool L1GtTrigReportEntry::operator!= | ( | const L1GtTrigReportEntry & | result | ) | const |
unequal operator
Definition at line 106 of file L1GtTrigReportEntry.cc.
{ return !( result == *this); }
L1GtTrigReportEntry & L1GtTrigReportEntry::operator= | ( | const L1GtTrigReportEntry & | repEntry | ) |
assignment operator
Definition at line 52 of file L1GtTrigReportEntry.cc.
References m_algoName, m_daqPartition, m_prescaleFactor, m_triggerMask, and m_triggerMenuName.
{ if ( this != &repEntry ) { m_triggerMenuName = repEntry.m_triggerMenuName; m_algoName = repEntry.m_algoName; m_prescaleFactor = repEntry.m_prescaleFactor; m_triggerMask = repEntry.m_triggerMask; m_daqPartition = repEntry.m_daqPartition; } return *this; }
bool L1GtTrigReportEntry::operator== | ( | const L1GtTrigReportEntry & | repEntry | ) | const |
equal operator
Definition at line 74 of file L1GtTrigReportEntry.cc.
References m_algoName, m_daqPartition, m_prescaleFactor, m_triggerMask, and m_triggerMenuName.
{ // faster comparisons first if (m_daqPartition != repEntry.m_daqPartition) { return false; } if (m_triggerMask != repEntry.m_triggerMask) { return false; } if (m_prescaleFactor != repEntry.m_prescaleFactor) { return false; } if (m_algoName != repEntry.m_algoName) { return false; } if (m_triggerMenuName != repEntry.m_triggerMenuName) { return false; } // all members identical return true; }
std::string L1GtTrigReportEntry::m_algoName [private] |
algorithm name
Definition at line 116 of file L1GtTrigReportEntry.h.
Referenced by gtAlgoName(), L1GtTrigReportEntry(), operator=(), and operator==().
int L1GtTrigReportEntry::m_daqPartition [private] |
index of the DAQ partition
Definition at line 125 of file L1GtTrigReportEntry.h.
Referenced by gtDaqPartition(), L1GtTrigReportEntry(), operator=(), and operator==().
int L1GtTrigReportEntry::m_nrEventsAccept [private] |
counters
number of events accepted for this entry
Definition at line 130 of file L1GtTrigReportEntry.h.
Referenced by addValidEntry(), gtNrEventsAccept(), and L1GtTrigReportEntry().
int L1GtTrigReportEntry::m_nrEventsAcceptBeforeMask [private] |
number of events accepted for this entry before applying the trigger masks
Definition at line 136 of file L1GtTrigReportEntry.h.
Referenced by addValidEntry(), gtNrEventsAcceptBeforeMask(), and L1GtTrigReportEntry().
int L1GtTrigReportEntry::m_nrEventsError [private] |
number of events with error
Definition at line 142 of file L1GtTrigReportEntry.h.
Referenced by addErrorEntry(), gtNrEventsError(), and L1GtTrigReportEntry().
int L1GtTrigReportEntry::m_nrEventsReject [private] |
number of events rejected for this entry
Definition at line 133 of file L1GtTrigReportEntry.h.
Referenced by addValidEntry(), gtNrEventsReject(), and L1GtTrigReportEntry().
int L1GtTrigReportEntry::m_nrEventsRejectBeforeMask [private] |
number of events rejected for this entry before applying the trigger masks
Definition at line 139 of file L1GtTrigReportEntry.h.
Referenced by addValidEntry(), gtNrEventsRejectBeforeMask(), and L1GtTrigReportEntry().
int L1GtTrigReportEntry::m_prescaleFactor [private] |
prescale factor
Definition at line 119 of file L1GtTrigReportEntry.h.
Referenced by gtPrescaleFactor(), L1GtTrigReportEntry(), operator=(), and operator==().
unsigned int L1GtTrigReportEntry::m_triggerMask [private] |
trigger mask
Definition at line 122 of file L1GtTrigReportEntry.h.
Referenced by gtTriggerMask(), L1GtTrigReportEntry(), operator=(), and operator==().
std::string L1GtTrigReportEntry::m_triggerMenuName [private] |
menu name
Definition at line 113 of file L1GtTrigReportEntry.h.
Referenced by gtTriggerMenuName(), L1GtTrigReportEntry(), operator=(), and operator==().