test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( 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.

25  {
26 
27  m_triggerMenuName = menuName;
28  m_algoName = algName;
30  m_triggerMask = triggerMask;
31  m_daqPartition = daqPartition;
32 
33  // counters
34 
35  m_nrEventsAccept = 0;
36  m_nrEventsReject = 0;
39  m_nrEventsError = 0;
40 }
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 ( )
virtual

destructor

Definition at line 43 of file L1GtTrigReportEntry.cc.

43  {
44 
45  //empty
46 
47 }

Member Function Documentation

void L1GtTrigReportEntry::addErrorEntry ( )

increase # of events with error

Definition at line 135 of file L1GtTrigReportEntry.cc.

References m_nrEventsError.

Referenced by L1GtTrigReport::analyze().

135  {
136 
137  m_nrEventsError++;
138 }
int m_nrEventsError
number of events with error
void L1GtTrigReportEntry::addValidEntry ( const bool  algResultAfterMask,
const bool  algResultBeforeMask 
)

increase # of events accepted/rejected for this entry

Definition at line 114 of file L1GtTrigReportEntry.cc.

References m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsReject, and m_nrEventsRejectBeforeMask.

Referenced by L1GtTrigReport::analyze().

116 {
117 
118  if (algResultAfterMask) {
120  }
121  else {
123  }
124 
125  if (algResultBeforeMask) {
127  }
128  else {
130  }
131 
132 }
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
const std::string L1GtTrigReportEntry::gtAlgoName ( ) const
inline

get the algorithm name

Definition at line 55 of file L1GtTrigReportEntry.h.

References m_algoName.

55  {
56  return m_algoName;
57  }
std::string m_algoName
algorithm name
const unsigned int L1GtTrigReportEntry::gtDaqPartition ( ) const
inline

get the index of the DAQ partition

Definition at line 70 of file L1GtTrigReportEntry.h.

References m_daqPartition.

70  {
71  return m_daqPartition;
72  }
int m_daqPartition
index of the DAQ partition
const int L1GtTrigReportEntry::gtNrEventsAccept ( ) const
inline

get the number of events accepted for this entry

Definition at line 75 of file L1GtTrigReportEntry.h.

References m_nrEventsAccept.

75  {
76  return m_nrEventsAccept;
77  }
const int L1GtTrigReportEntry::gtNrEventsAcceptBeforeMask ( ) const
inline

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

Definition at line 85 of file L1GtTrigReportEntry.h.

References m_nrEventsAcceptBeforeMask.

85  {
87  }
int m_nrEventsAcceptBeforeMask
number of events accepted for this entry before applying the trigger masks
const int L1GtTrigReportEntry::gtNrEventsError ( ) const
inline

get the number of events with error for this entry

Definition at line 96 of file L1GtTrigReportEntry.h.

References m_nrEventsError.

96  {
97  return m_nrEventsError;
98  }
int m_nrEventsError
number of events with error
const int L1GtTrigReportEntry::gtNrEventsReject ( ) const
inline

get the number of events rejected for this entry

Definition at line 80 of file L1GtTrigReportEntry.h.

References m_nrEventsReject.

80  {
81  return m_nrEventsReject;
82  }
int m_nrEventsReject
number of events rejected for this entry
const int L1GtTrigReportEntry::gtNrEventsRejectBeforeMask ( ) const
inline

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

Definition at line 90 of file L1GtTrigReportEntry.h.

References m_nrEventsRejectBeforeMask.

90  {
92  }
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
const int L1GtTrigReportEntry::gtPrescaleFactor ( ) const
inline

get the prescale factor

Definition at line 60 of file L1GtTrigReportEntry.h.

References m_prescaleFactor.

60  {
61  return m_prescaleFactor;
62  }
int m_prescaleFactor
prescale factor
const unsigned int L1GtTrigReportEntry::gtTriggerMask ( ) const
inline

get the trigger mask

Definition at line 65 of file L1GtTrigReportEntry.h.

References m_triggerMask.

65  {
66  return m_triggerMask;
67  }
unsigned int m_triggerMask
trigger mask
const std::string L1GtTrigReportEntry::gtTriggerMenuName ( ) const
inline

get the trigger menu name

Definition at line 50 of file L1GtTrigReportEntry.h.

References m_triggerMenuName.

50  {
51  return m_triggerMenuName;
52  }
std::string m_triggerMenuName
menu name
bool L1GtTrigReportEntry::operator!= ( const L1GtTrigReportEntry result) const

unequal operator

Definition at line 104 of file L1GtTrigReportEntry.cc.

105 {
106 
107  return !( result == *this);
108 
109 }
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.

52 {
53 
54  if ( this != &repEntry ) {
55 
57 
58  m_algoName = repEntry.m_algoName;
59 
61 
62  m_triggerMask = repEntry.m_triggerMask;
63 
64  m_daqPartition = repEntry.m_daqPartition;
65  }
66 
67  return *this;
68 
69 }
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
bool L1GtTrigReportEntry::operator== ( const L1GtTrigReportEntry repEntry) const

equal operator

Definition at line 72 of file L1GtTrigReportEntry.cc.

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

73 {
74 
75  // faster comparisons first
76 
77  if (m_daqPartition != repEntry.m_daqPartition) {
78  return false;
79  }
80 
81  if (m_triggerMask != repEntry.m_triggerMask) {
82  return false;
83  }
84 
85  if (m_prescaleFactor != repEntry.m_prescaleFactor) {
86  return false;
87  }
88 
89  if (m_algoName != repEntry.m_algoName) {
90  return false;
91  }
92 
93  if (m_triggerMenuName != repEntry.m_triggerMenuName) {
94  return false;
95  }
96 
97 
98  // all members identical
99  return true;
100 
101 }
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

std::string L1GtTrigReportEntry::m_algoName
private

algorithm name

Definition at line 114 of file L1GtTrigReportEntry.h.

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

int L1GtTrigReportEntry::m_daqPartition
private

index of the DAQ partition

Definition at line 123 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 128 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 134 of file L1GtTrigReportEntry.h.

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

int L1GtTrigReportEntry::m_nrEventsError
private

number of events with error

Definition at line 140 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 131 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 137 of file L1GtTrigReportEntry.h.

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

int L1GtTrigReportEntry::m_prescaleFactor
private

prescale factor

Definition at line 117 of file L1GtTrigReportEntry.h.

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

unsigned int L1GtTrigReportEntry::m_triggerMask
private

trigger mask

Definition at line 120 of file L1GtTrigReportEntry.h.

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

std::string L1GtTrigReportEntry::m_triggerMenuName
private

menu name

Definition at line 111 of file L1GtTrigReportEntry.h.

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