00001 #ifndef GlobalTriggerAnalyzer_L1GtTrigReportEntry_h 00002 #define GlobalTriggerAnalyzer_L1GtTrigReportEntry_h 00003 00020 // system include files 00021 #include <string> 00022 00023 // class declaration 00024 00025 class L1GtTrigReportEntry 00026 { 00027 00028 public: 00029 00031 explicit L1GtTrigReportEntry(const std::string& menuName, const std::string& algName, 00032 const int prescaleFactor, const int triggerMask, const int daqPartition); 00033 00035 virtual ~L1GtTrigReportEntry(); 00036 00037 public: 00038 00040 L1GtTrigReportEntry& operator=(const L1GtTrigReportEntry&); 00041 00043 bool operator==(const L1GtTrigReportEntry&) const; 00044 00046 bool operator!=(const L1GtTrigReportEntry&) const; 00047 00048 00049 public: 00050 00052 inline const std::string gtTriggerMenuName() const { 00053 return m_triggerMenuName; 00054 } 00055 00057 inline const std::string gtAlgoName() const { 00058 return m_algoName; 00059 } 00060 00062 inline const int gtPrescaleFactor() const { 00063 return m_prescaleFactor; 00064 } 00065 00067 inline const unsigned int gtTriggerMask() const { 00068 return m_triggerMask; 00069 } 00070 00072 inline const unsigned int gtDaqPartition() const { 00073 return m_daqPartition; 00074 } 00075 00077 inline const int gtNrEventsAccept() const { 00078 return m_nrEventsAccept; 00079 } 00080 00082 inline const int gtNrEventsReject() const { 00083 return m_nrEventsReject; 00084 } 00085 00087 inline const int gtNrEventsAcceptBeforeMask() const { 00088 return m_nrEventsAcceptBeforeMask; 00089 } 00090 00092 inline const int gtNrEventsRejectBeforeMask() const { 00093 return m_nrEventsRejectBeforeMask; 00094 } 00095 00096 00098 inline const int gtNrEventsError() const { 00099 return m_nrEventsError; 00100 } 00101 00102 public: 00103 00105 void addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask); 00106 00108 void addErrorEntry(); 00109 00110 private: 00111 00113 std::string m_triggerMenuName; 00114 00116 std::string m_algoName; 00117 00119 int m_prescaleFactor; 00120 00122 unsigned int m_triggerMask; 00123 00125 int m_daqPartition; 00126 00128 00130 int m_nrEventsAccept; 00131 00133 int m_nrEventsReject; 00134 00136 int m_nrEventsAcceptBeforeMask; 00137 00139 int m_nrEventsRejectBeforeMask; 00140 00142 int m_nrEventsError; 00143 00144 }; 00145 00146 #endif /*GlobalTriggerAnalyzer_L1GtTrigReportEntry_h*/