CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1GtTrigReportEntry Class Reference

#include <L1GtTrigReportEntry.h>

Public Member Functions

void addErrorEntry ()
 increase # of events with error More...
 
void addValidEntry (const bool algResultAfterMask, const bool algResultBeforeMask)
 increase # of events accepted/rejected for this entry More...
 
const std::string gtAlgoName () const
 get the algorithm name More...
 
const unsigned int gtDaqPartition () const
 get the index of the DAQ partition More...
 
const int gtNrEventsAccept () const
 get the number of events accepted for this entry More...
 
const int gtNrEventsAcceptBeforeMask () const
 get the number of events accepted for this entry before applying the trigger masks More...
 
const int gtNrEventsError () const
 get the number of events with error for this entry More...
 
const int gtNrEventsReject () const
 get the number of events rejected for this entry More...
 
const int gtNrEventsRejectBeforeMask () const
 get the number of events rejected for this entry before applying the trigger masks More...
 
const int gtPrescaleFactor () const
 get the prescale factor More...
 
const unsigned int gtTriggerMask () const
 get the trigger mask More...
 
const std::string gtTriggerMenuName () const
 get the trigger menu name More...
 
 L1GtTrigReportEntry (const std::string &menuName, const std::string &algName, const int prescaleFactor, const int triggerMask, const int daqPartition)
 constructor More...
 
bool operator!= (const L1GtTrigReportEntry &) const
 unequal operator More...
 
L1GtTrigReportEntryoperator= (const L1GtTrigReportEntry &)
 assignment operator More...
 
bool operator== (const L1GtTrigReportEntry &) const
 equal operator More...
 
virtual ~L1GtTrigReportEntry ()
 destructor More...
 

Private Attributes

std::string m_algoName
 algorithm name More...
 
int m_daqPartition
 index of the DAQ partition More...
 
int m_nrEventsAccept
 counters More...
 
int m_nrEventsAcceptBeforeMask
 number of events accepted for this entry before applying the trigger masks More...
 
int m_nrEventsError
 number of events with error More...
 
int m_nrEventsReject
 number of events rejected for this entry More...
 
int m_nrEventsRejectBeforeMask
 number of events rejected for this entry before applying the trigger masks More...
 
int m_prescaleFactor
 prescale factor More...
 
unsigned int m_triggerMask
 trigger mask More...
 
std::string m_triggerMenuName
 menu name More...
 

Detailed Description

Description: an individual L1 GT report entry.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: L1 Trigger report.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 23 of file L1GtTrigReportEntry.h.

Constructor & Destructor Documentation

◆ L1GtTrigReportEntry()

L1GtTrigReportEntry::L1GtTrigReportEntry ( const std::string &  menuName,
const std::string &  algName,
const int  prescaleFactor,
const int  triggerMask,
const int  daqPartition 
)
explicit

constructor

Definition at line 24 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.

28  {
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 }
std::string m_triggerMenuName
menu name
int m_daqPartition
index of the DAQ partition
int m_nrEventsError
number of events with error
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
std::string m_algoName
algorithm name
int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks
int m_prescaleFactor
prescale factor
int m_nrEventsReject
number of events rejected for this entry
unsigned int m_triggerMask
trigger mask

◆ ~L1GtTrigReportEntry()

L1GtTrigReportEntry::~L1GtTrigReportEntry ( )
virtual

destructor

Definition at line 45 of file L1GtTrigReportEntry.cc.

45  {
46  //empty
47 }

Member Function Documentation

◆ addErrorEntry()

void L1GtTrigReportEntry::addErrorEntry ( )

increase # of events with error

Definition at line 115 of file L1GtTrigReportEntry.cc.

References m_nrEventsError.

Referenced by L1GtTrigReport::analyze().

115 { m_nrEventsError++; }
int m_nrEventsError
number of events with error

◆ addValidEntry()

void L1GtTrigReportEntry::addValidEntry ( const bool  algResultAfterMask,
const bool  algResultBeforeMask 
)

increase # of events accepted/rejected for this entry

Definition at line 100 of file L1GtTrigReportEntry.cc.

References m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsReject, and m_nrEventsRejectBeforeMask.

Referenced by L1GtTrigReport::analyze().

100  {
101  if (algResultAfterMask) {
103  } else {
105  }
106 
107  if (algResultBeforeMask) {
109  } else {
111  }
112 }
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks
int m_nrEventsReject
number of events rejected for this entry

◆ gtAlgoName()

const std::string L1GtTrigReportEntry::gtAlgoName ( ) const
inline

get the algorithm name

Definition at line 50 of file L1GtTrigReportEntry.h.

References m_algoName.

50 { return m_algoName; }
std::string m_algoName
algorithm name

◆ gtDaqPartition()

const unsigned int L1GtTrigReportEntry::gtDaqPartition ( ) const
inline

get the index of the DAQ partition

Definition at line 59 of file L1GtTrigReportEntry.h.

References m_daqPartition.

59 { return m_daqPartition; }
int m_daqPartition
index of the DAQ partition

◆ gtNrEventsAccept()

const int L1GtTrigReportEntry::gtNrEventsAccept ( ) const
inline

get the number of events accepted for this entry

Definition at line 62 of file L1GtTrigReportEntry.h.

References m_nrEventsAccept.

62 { return m_nrEventsAccept; }

◆ gtNrEventsAcceptBeforeMask()

const int L1GtTrigReportEntry::gtNrEventsAcceptBeforeMask ( ) const
inline

get the number of events accepted for this entry before applying the trigger masks

Definition at line 68 of file L1GtTrigReportEntry.h.

References m_nrEventsAcceptBeforeMask.

int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks

◆ gtNrEventsError()

const int L1GtTrigReportEntry::gtNrEventsError ( ) const
inline

get the number of events with error for this entry

Definition at line 74 of file L1GtTrigReportEntry.h.

References m_nrEventsError.

74 { return m_nrEventsError; }
int m_nrEventsError
number of events with error

◆ gtNrEventsReject()

const int L1GtTrigReportEntry::gtNrEventsReject ( ) const
inline

get the number of events rejected for this entry

Definition at line 65 of file L1GtTrigReportEntry.h.

References m_nrEventsReject.

65 { return m_nrEventsReject; }
int m_nrEventsReject
number of events rejected for this entry

◆ gtNrEventsRejectBeforeMask()

const int L1GtTrigReportEntry::gtNrEventsRejectBeforeMask ( ) const
inline

get the number of events rejected for this entry before applying the trigger masks

Definition at line 71 of file L1GtTrigReportEntry.h.

References m_nrEventsRejectBeforeMask.

int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks

◆ gtPrescaleFactor()

const int L1GtTrigReportEntry::gtPrescaleFactor ( ) const
inline

get the prescale factor

Definition at line 53 of file L1GtTrigReportEntry.h.

References m_prescaleFactor.

53 { return m_prescaleFactor; }
int m_prescaleFactor
prescale factor

◆ gtTriggerMask()

const unsigned int L1GtTrigReportEntry::gtTriggerMask ( ) const
inline

get the trigger mask

Definition at line 56 of file L1GtTrigReportEntry.h.

References m_triggerMask.

56 { return m_triggerMask; }
unsigned int m_triggerMask
trigger mask

◆ gtTriggerMenuName()

const std::string L1GtTrigReportEntry::gtTriggerMenuName ( ) const
inline

get the trigger menu name

Definition at line 47 of file L1GtTrigReportEntry.h.

References m_triggerMenuName.

47 { return m_triggerMenuName; }
std::string m_triggerMenuName
menu name

◆ operator!=()

bool L1GtTrigReportEntry::operator!= ( const L1GtTrigReportEntry result) const

unequal operator

Definition at line 95 of file L1GtTrigReportEntry.cc.

References mps_fire::result.

95 { return !(result == *this); }

◆ operator=()

L1GtTrigReportEntry & L1GtTrigReportEntry::operator= ( const L1GtTrigReportEntry repEntry)

assignment operator

Definition at line 50 of file L1GtTrigReportEntry.cc.

References m_algoName, m_daqPartition, m_prescaleFactor, m_triggerMask, and m_triggerMenuName.

50  {
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 }
std::string m_triggerMenuName
menu name
int m_daqPartition
index of the DAQ partition
std::string m_algoName
algorithm name
int m_prescaleFactor
prescale factor
unsigned int m_triggerMask
trigger mask

◆ operator==()

bool L1GtTrigReportEntry::operator== ( const L1GtTrigReportEntry repEntry) const

equal operator

Definition at line 67 of file L1GtTrigReportEntry.cc.

References m_algoName, m_daqPartition, m_prescaleFactor, m_triggerMask, and m_triggerMenuName.

67  {
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 }
std::string m_triggerMenuName
menu name
int m_daqPartition
index of the DAQ partition
std::string m_algoName
algorithm name
int m_prescaleFactor
prescale factor
unsigned int m_triggerMask
trigger mask

Member Data Documentation

◆ m_algoName

std::string L1GtTrigReportEntry::m_algoName
private

algorithm name

Definition at line 88 of file L1GtTrigReportEntry.h.

Referenced by gtAlgoName(), L1GtTrigReportEntry(), operator=(), and operator==().

◆ m_daqPartition

int L1GtTrigReportEntry::m_daqPartition
private

index of the DAQ partition

Definition at line 97 of file L1GtTrigReportEntry.h.

Referenced by gtDaqPartition(), L1GtTrigReportEntry(), operator=(), and operator==().

◆ m_nrEventsAccept

int L1GtTrigReportEntry::m_nrEventsAccept
private

counters

number of events accepted for this entry

Definition at line 102 of file L1GtTrigReportEntry.h.

Referenced by addValidEntry(), gtNrEventsAccept(), and L1GtTrigReportEntry().

◆ m_nrEventsAcceptBeforeMask

int L1GtTrigReportEntry::m_nrEventsAcceptBeforeMask
private

number of events accepted for this entry before applying the trigger masks

Definition at line 108 of file L1GtTrigReportEntry.h.

Referenced by addValidEntry(), gtNrEventsAcceptBeforeMask(), and L1GtTrigReportEntry().

◆ m_nrEventsError

int L1GtTrigReportEntry::m_nrEventsError
private

number of events with error

Definition at line 114 of file L1GtTrigReportEntry.h.

Referenced by addErrorEntry(), gtNrEventsError(), and L1GtTrigReportEntry().

◆ m_nrEventsReject

int L1GtTrigReportEntry::m_nrEventsReject
private

number of events rejected for this entry

Definition at line 105 of file L1GtTrigReportEntry.h.

Referenced by addValidEntry(), gtNrEventsReject(), and L1GtTrigReportEntry().

◆ m_nrEventsRejectBeforeMask

int L1GtTrigReportEntry::m_nrEventsRejectBeforeMask
private

number of events rejected for this entry before applying the trigger masks

Definition at line 111 of file L1GtTrigReportEntry.h.

Referenced by addValidEntry(), gtNrEventsRejectBeforeMask(), and L1GtTrigReportEntry().

◆ m_prescaleFactor

int L1GtTrigReportEntry::m_prescaleFactor
private

prescale factor

Definition at line 91 of file L1GtTrigReportEntry.h.

Referenced by gtPrescaleFactor(), L1GtTrigReportEntry(), operator=(), and operator==().

◆ m_triggerMask

unsigned int L1GtTrigReportEntry::m_triggerMask
private

trigger mask

Definition at line 94 of file L1GtTrigReportEntry.h.

Referenced by gtTriggerMask(), L1GtTrigReportEntry(), operator=(), and operator==().

◆ m_triggerMenuName

std::string L1GtTrigReportEntry::m_triggerMenuName
private

menu name

Definition at line 85 of file L1GtTrigReportEntry.h.

Referenced by gtTriggerMenuName(), L1GtTrigReportEntry(), operator=(), and operator==().