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

◆ ~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.

115 { m_nrEventsError++; }

References m_nrEventsError.

Referenced by L1GtTrigReport::analyze().

◆ 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.

100  {
101  if (algResultAfterMask) {
103  } else {
105  }
106 
107  if (algResultBeforeMask) {
109  } else {
111  }
112 }

References m_nrEventsAccept, m_nrEventsAcceptBeforeMask, m_nrEventsReject, and m_nrEventsRejectBeforeMask.

Referenced by L1GtTrigReport::analyze().

◆ gtAlgoName()

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

get the algorithm name

Definition at line 50 of file L1GtTrigReportEntry.h.

50 { return m_algoName; }

References m_algoName.

◆ gtDaqPartition()

const unsigned int L1GtTrigReportEntry::gtDaqPartition ( ) const
inline

get the index of the DAQ partition

Definition at line 59 of file L1GtTrigReportEntry.h.

59 { return m_daqPartition; }

References m_daqPartition.

◆ gtNrEventsAccept()

const int L1GtTrigReportEntry::gtNrEventsAccept ( ) const
inline

get the number of events accepted for this entry

Definition at line 62 of file L1GtTrigReportEntry.h.

62 { return m_nrEventsAccept; }

References 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.

◆ 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.

74 { return m_nrEventsError; }

References m_nrEventsError.

◆ gtNrEventsReject()

const int L1GtTrigReportEntry::gtNrEventsReject ( ) const
inline

get the number of events rejected for this entry

Definition at line 65 of file L1GtTrigReportEntry.h.

65 { return m_nrEventsReject; }

References m_nrEventsReject.

◆ 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.

◆ gtPrescaleFactor()

const int L1GtTrigReportEntry::gtPrescaleFactor ( ) const
inline

get the prescale factor

Definition at line 53 of file L1GtTrigReportEntry.h.

53 { return m_prescaleFactor; }

References m_prescaleFactor.

◆ gtTriggerMask()

const unsigned int L1GtTrigReportEntry::gtTriggerMask ( ) const
inline

get the trigger mask

Definition at line 56 of file L1GtTrigReportEntry.h.

56 { return m_triggerMask; }

References m_triggerMask.

◆ gtTriggerMenuName()

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

get the trigger menu name

Definition at line 47 of file L1GtTrigReportEntry.h.

47 { return m_triggerMenuName; }

References m_triggerMenuName.

◆ operator!=()

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

unequal operator

Definition at line 95 of file L1GtTrigReportEntry.cc.

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

References mps_fire::result.

◆ operator=()

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

assignment operator

Definition at line 50 of file L1GtTrigReportEntry.cc.

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 }

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

◆ operator==()

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

equal operator

Definition at line 67 of file L1GtTrigReportEntry.cc.

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 }

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

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==().

L1GtTrigReportEntry::m_nrEventsError
int m_nrEventsError
number of events with error
Definition: L1GtTrigReportEntry.h:114
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::m_daqPartition
int m_daqPartition
index of the DAQ partition
Definition: L1GtTrigReportEntry.h:97
L1GtTrigReportEntry::m_triggerMenuName
std::string m_triggerMenuName
menu name
Definition: L1GtTrigReportEntry.h:85
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::m_nrEventsAccept
int m_nrEventsAccept
counters
Definition: L1GtTrigReportEntry.h:102
Skims_PDWG_cff.prescaleFactor
prescaleFactor
Definition: Skims_PDWG_cff.py:25
L1GtTrigReportEntry::m_algoName
std::string m_algoName
algorithm name
Definition: L1GtTrigReportEntry.h:88
mps_fire.result
result
Definition: mps_fire.py:311
L1GtTrigReportEntry::m_nrEventsRejectBeforeMask
int m_nrEventsRejectBeforeMask
number of events rejected for this entry before applying the trigger masks
Definition: L1GtTrigReportEntry.h:111