File indexing completed on 2024-04-06 12:20:01
0001 #ifndef GlobalTriggerAnalyzer_L1GtTrigReportEntry_h
0002 #define GlobalTriggerAnalyzer_L1GtTrigReportEntry_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <string>
0020
0021
0022
0023 class L1GtTrigReportEntry {
0024 public:
0025
0026 explicit L1GtTrigReportEntry(const std::string& menuName,
0027 const std::string& algName,
0028 const int prescaleFactor,
0029 const int triggerMask,
0030 const int daqPartition);
0031
0032
0033 virtual ~L1GtTrigReportEntry();
0034
0035 public:
0036
0037 L1GtTrigReportEntry& operator=(const L1GtTrigReportEntry&);
0038
0039
0040 bool operator==(const L1GtTrigReportEntry&) const;
0041
0042
0043 bool operator!=(const L1GtTrigReportEntry&) const;
0044
0045 public:
0046
0047 inline const std::string gtTriggerMenuName() const { return m_triggerMenuName; }
0048
0049
0050 inline const std::string gtAlgoName() const { return m_algoName; }
0051
0052
0053 inline const int gtPrescaleFactor() const { return m_prescaleFactor; }
0054
0055
0056 inline const unsigned int gtTriggerMask() const { return m_triggerMask; }
0057
0058
0059 inline const unsigned int gtDaqPartition() const { return m_daqPartition; }
0060
0061
0062 inline const int gtNrEventsAccept() const { return m_nrEventsAccept; }
0063
0064
0065 inline const int gtNrEventsReject() const { return m_nrEventsReject; }
0066
0067
0068 inline const int gtNrEventsAcceptBeforeMask() const { return m_nrEventsAcceptBeforeMask; }
0069
0070
0071 inline const int gtNrEventsRejectBeforeMask() const { return m_nrEventsRejectBeforeMask; }
0072
0073
0074 inline const int gtNrEventsError() const { return m_nrEventsError; }
0075
0076 public:
0077
0078 void addValidEntry(const bool algResultAfterMask, const bool algResultBeforeMask);
0079
0080
0081 void addErrorEntry();
0082
0083 private:
0084
0085 std::string m_triggerMenuName;
0086
0087
0088 std::string m_algoName;
0089
0090
0091 int m_prescaleFactor;
0092
0093
0094 unsigned int m_triggerMask;
0095
0096
0097 int m_daqPartition;
0098
0099
0100
0101
0102 int m_nrEventsAccept;
0103
0104
0105 int m_nrEventsReject;
0106
0107
0108 int m_nrEventsAcceptBeforeMask;
0109
0110
0111 int m_nrEventsRejectBeforeMask;
0112
0113
0114 int m_nrEventsError;
0115 };
0116
0117 #endif