CMS 3D CMS Logo

L1GtTrigReportEntry Class Reference

Description: an individual L1 GT report entry. More...

#include <L1Trigger/GlobalTriggerAnalyzer/interface/L1GtTrigReportEntry.h>

List of all members.

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
L1GtTrigReportEntryoperator= (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


Detailed Description

Description: an individual L1 GT report entry.

Description: L1 Trigger report.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
$Date$ $Revision$

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, and m_triggerMenuName.

00027                                                                              {
00028 
00029     m_triggerMenuName = menuName;
00030     m_algoName = algName;
00031     m_prescaleFactor = prescaleFactor;
00032     m_triggerMask = triggerMask;
00033     m_daqPartition = daqPartition;
00034 
00035     // counters
00036 
00037     m_nrEventsAccept = 0;
00038     m_nrEventsReject = 0;
00039     m_nrEventsAcceptBeforeMask = 0;
00040     m_nrEventsRejectBeforeMask = 0;
00041     m_nrEventsError = 0;
00042 }

L1GtTrigReportEntry::~L1GtTrigReportEntry (  )  [virtual]

destructor

Definition at line 45 of file L1GtTrigReportEntry.cc.

00045                                           {
00046 
00047     //empty
00048 
00049 }


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

00137                                         {
00138 
00139     m_nrEventsError++;
00140 }

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

00118 {
00119 
00120     if (algResultAfterMask) {
00121         m_nrEventsAccept++;
00122     }
00123     else {
00124         m_nrEventsReject++;
00125     }
00126 
00127     if (algResultBeforeMask) {
00128         m_nrEventsAcceptBeforeMask++;
00129     }
00130     else {
00131         m_nrEventsRejectBeforeMask++;
00132     }
00133 
00134 }

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

get the algorithm name

Definition at line 57 of file L1GtTrigReportEntry.h.

References m_algoName.

00057                                               {
00058         return m_algoName;
00059     }

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.

00072                                                      {
00073         return m_daqPartition;
00074     }

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.

00077                                               {
00078         return m_nrEventsAccept;
00079     }

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.

00087                                                         {
00088         return m_nrEventsAcceptBeforeMask;
00089     }

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.

00098                                              {
00099         return m_nrEventsError;
00100     }

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.

00082                                               {
00083         return m_nrEventsReject;
00084     }

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.

00092                                                         {
00093         return m_nrEventsRejectBeforeMask;
00094     }

const int L1GtTrigReportEntry::gtPrescaleFactor (  )  const [inline]

get the prescale factor

Definition at line 62 of file L1GtTrigReportEntry.h.

References m_prescaleFactor.

00062                                               {
00063         return m_prescaleFactor;
00064     }

const unsigned int L1GtTrigReportEntry::gtTriggerMask (  )  const [inline]

get the trigger mask

Definition at line 67 of file L1GtTrigReportEntry.h.

References m_triggerMask.

00067                                                     {
00068         return m_triggerMask;
00069     }

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

get the trigger menu name

Definition at line 52 of file L1GtTrigReportEntry.h.

References m_triggerMenuName.

00052                                                      {
00053         return m_triggerMenuName;
00054     }

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

unequal operator

Definition at line 106 of file L1GtTrigReportEntry.cc.

00107 {
00108 
00109     return !( result == *this);
00110 
00111 }

L1GtTrigReportEntry::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.

00054 {
00055 
00056     if ( this != &repEntry ) {
00057 
00058         m_triggerMenuName = repEntry.m_triggerMenuName;
00059 
00060         m_algoName = repEntry.m_algoName;
00061 
00062         m_prescaleFactor = repEntry.m_prescaleFactor;
00063 
00064         m_triggerMask = repEntry.m_triggerMask;
00065 
00066         m_daqPartition = repEntry.m_daqPartition;
00067     }
00068 
00069     return *this;
00070 
00071 }

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.

00075 {
00076 
00077     // faster comparisons first
00078 
00079     if (m_daqPartition != repEntry.m_daqPartition) {
00080         return false;
00081     }
00082 
00083     if (m_triggerMask != repEntry.m_triggerMask) {
00084         return false;
00085     }
00086 
00087     if (m_prescaleFactor != repEntry.m_prescaleFactor) {
00088         return false;
00089     }
00090 
00091     if (m_algoName != repEntry.m_algoName) {
00092         return false;
00093     }
00094 
00095     if (m_triggerMenuName != repEntry.m_triggerMenuName) {
00096         return false;
00097     }
00098 
00099 
00100     // all members identical
00101     return true;
00102 
00103 }


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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:46 2009 for CMSSW by  doxygen 1.5.4