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

$Date$ $Revision$

Description: L1 Trigger report.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 25 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 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 ExpressReco_HICollisions_FallBack::prescaleFactor.

27  {
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 ( )
virtual

destructor

Definition at line 45 of file L1GtTrigReportEntry.cc.

45  {
46 
47  //empty
48 
49 }

Member Function Documentation

void L1GtTrigReportEntry::addErrorEntry ( )

increase # of events with error

Definition at line 137 of file L1GtTrigReportEntry.cc.

References m_nrEventsError.

Referenced by L1GtTrigReport::analyze().

137  {
138 
139  m_nrEventsError++;
140 }
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 116 of file L1GtTrigReportEntry.cc.

References m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsReject, and m_nrEventsRejectBeforeMask.

Referenced by L1GtTrigReport::analyze().

118 {
119 
120  if (algResultAfterMask) {
122  }
123  else {
125  }
126 
127  if (algResultBeforeMask) {
129  }
130  else {
132  }
133 
134 }
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 57 of file L1GtTrigReportEntry.h.

References m_algoName.

57  {
58  return m_algoName;
59  }
std::string m_algoName
algorithm name
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.

72  {
73  return m_daqPartition;
74  }
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 77 of file L1GtTrigReportEntry.h.

References m_nrEventsAccept.

77  {
78  return m_nrEventsAccept;
79  }
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.

87  {
89  }
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 98 of file L1GtTrigReportEntry.h.

References m_nrEventsError.

98  {
99  return m_nrEventsError;
100  }
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 82 of file L1GtTrigReportEntry.h.

References m_nrEventsReject.

82  {
83  return m_nrEventsReject;
84  }
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 92 of file L1GtTrigReportEntry.h.

References m_nrEventsRejectBeforeMask.

92  {
94  }
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 62 of file L1GtTrigReportEntry.h.

References m_prescaleFactor.

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

get the trigger mask

Definition at line 67 of file L1GtTrigReportEntry.h.

References m_triggerMask.

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

get the trigger menu name

Definition at line 52 of file L1GtTrigReportEntry.h.

References m_triggerMenuName.

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

unequal operator

Definition at line 106 of file L1GtTrigReportEntry.cc.

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

54 {
55 
56  if ( this != &repEntry ) {
57 
59 
60  m_algoName = repEntry.m_algoName;
61 
63 
64  m_triggerMask = repEntry.m_triggerMask;
65 
66  m_daqPartition = repEntry.m_daqPartition;
67  }
68 
69  return *this;
70 
71 }
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 74 of file L1GtTrigReportEntry.cc.

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

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