CMS 3D CMS Logo

Level1TriggerRates.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/Level1TriggerRates.h (W.Badgett)
3  *
4  * Various Level 1 Trigger Rates from the GT/TS
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_LEVEL1TRIGGERRATES_H
9 #define DATAFORMATS_SCALERS_LEVEL1TRIGGERRATES_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <string>
16 #include <vector>
17 
25 
29 
31 public:
32 #define BX_SPACING (double)25E-9
33 
39  virtual ~Level1TriggerRates();
40 
43 
46 
48  std::string name() const { return "Level1TriggerRates"; }
49 
51  bool empty() const { return false; }
52 
54 
55  int version() const { return (version_); }
56  timespec collectionTime() { return (collectionTime_.get_timespec()); }
57 
58  unsigned long long deltaNS() const { return (deltaNS_); }
59  double deltaT() const { return (deltaT_); }
60 
61  double gtTriggersRate() const { return (gtTriggersRate_); }
62 
63  double gtEventsRate() const { return (gtEventsRate_); }
64 
66 
68 
70 
72 
74 
75  double l1AsPhysicsRate() const { return (l1AsPhysicsRate_); }
76 
77  double l1AsRandomRate() const { return (l1AsRandomRate_); }
78 
79  double l1AsTestRate() const { return (l1AsTestRate_); }
80 
81  double l1AsCalibrationRate() const { return (l1AsCalibrationRate_); }
82 
83  double deadtimePercent() const { return (deadtimePercent_); }
84 
86 
88 
90 
92 
95  }
96 
98 
99  timespec collectionTime() const { return (collectionTime_.get_timespec()); }
100 
102 
103  std::vector<double> gtAlgoCountsRate() const { return (gtAlgoCountsRate_); }
104  std::vector<double> gtTechCountsRate() const { return (gtTechCountsRate_); }
105 
107  int operator==(const Level1TriggerRates& e) const { return false; }
108 
110  int operator!=(const Level1TriggerRates& e) const { return false; }
111 
112 protected:
113  int version_;
114 
116  unsigned long long deltaNS_;
117  double deltaT_;
120 
137 
138  std::vector<double> gtAlgoCountsRate_;
139  std::vector<double> gtTechCountsRate_;
140 };
141 
143 std::ostream& operator<<(std::ostream& s, const Level1TriggerRates& c);
144 
145 typedef std::vector<Level1TriggerRates> Level1TriggerRatesCollection;
146 
147 #endif
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
Level1TriggerRates::deadtimePercent_
double deadtimePercent_
Definition: Level1TriggerRates.h:130
Level1TriggerRates::triggersPhysicsGeneratedFDLRate
double triggersPhysicsGeneratedFDLRate() const
Definition: Level1TriggerRates.h:67
Level1TriggerRates::collectionTime
timespec collectionTime()
Definition: Level1TriggerRates.h:56
Level1TriggerRates::l1AsTestRate_
double l1AsTestRate_
Definition: Level1TriggerRates.h:128
Level1TriggerRates::collectionTime_
TimeSpec collectionTime_
Definition: Level1TriggerRates.h:115
Level1TriggerRates::collectionTimeLumiSeg
timespec collectionTimeLumiSeg()
Definition: Level1TriggerRates.h:65
Level1TriggerRates::deadtimeBeamActiveTimeSlotPercent
double deadtimeBeamActiveTimeSlotPercent() const
Definition: Level1TriggerRates.h:97
Level1TriggerRates::gtEventsRate_
double gtEventsRate_
Definition: Level1TriggerRates.h:119
Level1TriggerRates::collectionTime
timespec collectionTime() const
Definition: Level1TriggerRates.h:99
Level1TriggerRates::gtAlgoCountsRate
std::vector< double > gtAlgoCountsRate() const
Definition: Level1TriggerRates.h:103
Level1TriggerRates::computeRates
void computeRates(Level1TriggerScalers const &t1)
Definition: Level1TriggerRates.cc:57
Level1TriggerRates::deadtimeBeamActivePercent
double deadtimeBeamActivePercent() const
Definition: Level1TriggerRates.h:85
Level1TriggerRates::deltaT_
double deltaT_
Definition: Level1TriggerRates.h:117
Level1TriggerRates::deadtimeBeamActivePrivateOrbitPercent
double deadtimeBeamActivePrivateOrbitPercent() const
Definition: Level1TriggerRates.h:91
Level1TriggerRates::gtTriggersRate_
double gtTriggersRate_
Definition: Level1TriggerRates.h:118
TimeSpec::get_timespec
timespec get_timespec() const
Definition: TimeSpec.cc:4
Level1TriggerRates::deltaNS_
unsigned long long deltaNS_
Definition: Level1TriggerRates.h:116
Level1TriggerRates::version_
int version_
Definition: Level1TriggerRates.h:113
Level1TriggerRates::triggersPhysicsLostBeamInactiveRate_
double triggersPhysicsLostBeamInactiveRate_
Definition: Level1TriggerRates.h:125
Level1TriggerRates::Level1TriggerRates
Level1TriggerRates()
Definition: Level1TriggerRates.cc:11
convertSQLiteXML.runNumber
runNumber
Definition: convertSQLiteXML.py:91
Level1TriggerRates::deadtimeBeamActivePartitionControllerPercent
double deadtimeBeamActivePartitionControllerPercent() const
Definition: Level1TriggerRates.h:93
Level1TriggerRates::l1AsCalibrationRate_
double l1AsCalibrationRate_
Definition: Level1TriggerRates.h:129
Level1TriggerRates::l1AsPhysicsRate
double l1AsPhysicsRate() const
Definition: Level1TriggerRates.h:75
Level1TriggerRates::gtEventsRate
double gtEventsRate() const
Definition: Level1TriggerRates.h:63
alignCSCRings.s
s
Definition: alignCSCRings.py:92
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
Level1TriggerRates::deadtimeBeamActivePartitionControllerPercent_
double deadtimeBeamActivePartitionControllerPercent_
Definition: Level1TriggerRates.h:135
Level1TriggerRates
Definition: Level1TriggerRates.h:30
Level1TriggerRates::deadtimeBeamActivePercent_
double deadtimeBeamActivePercent_
Definition: Level1TriggerRates.h:131
Level1TriggerRates::deltaNS
unsigned long long deltaNS() const
Definition: Level1TriggerRates.h:58
Level1TriggerRates::operator==
int operator==(const Level1TriggerRates &e) const
equality operator
Definition: Level1TriggerRates.h:107
Level1TriggerRates::name
std::string name() const
name method
Definition: Level1TriggerRates.h:48
Level1TriggerRates::collectionTimeLumiSeg
timespec collectionTimeLumiSeg() const
Definition: Level1TriggerRates.h:101
Level1TriggerRates::deadtimeBeamActiveCalibrationPercent
double deadtimeBeamActiveCalibrationPercent() const
Definition: Level1TriggerRates.h:89
Level1TriggerRates::l1AsTestRate
double l1AsTestRate() const
Definition: Level1TriggerRates.h:79
Level1TriggerRates::deadtimeBeamActiveCalibrationPercent_
double deadtimeBeamActiveCalibrationPercent_
Definition: Level1TriggerRates.h:133
Level1TriggerRatesCollection
std::vector< Level1TriggerRates > Level1TriggerRatesCollection
Definition: Level1TriggerRates.h:145
Level1TriggerRates::triggersPhysicsLostBeamInactiveRate
double triggersPhysicsLostBeamInactiveRate() const
Definition: Level1TriggerRates.h:73
Level1TriggerRates::gtAlgoCountsRate_
std::vector< double > gtAlgoCountsRate_
Definition: Level1TriggerRates.h:138
Level1TriggerRates::deadtimeBeamActiveTimeSlotPercent_
double deadtimeBeamActiveTimeSlotPercent_
Definition: Level1TriggerRates.h:136
Level1TriggerRates::deadtimeBeamActiveTriggerRulesPercent_
double deadtimeBeamActiveTriggerRulesPercent_
Definition: Level1TriggerRates.h:132
Level1TriggerRates::deltaT
double deltaT() const
Definition: Level1TriggerRates.h:59
Level1TriggerRates::triggersPhysicsLostRate
double triggersPhysicsLostRate() const
Definition: Level1TriggerRates.h:69
Level1TriggerRates::~Level1TriggerRates
virtual ~Level1TriggerRates()
Definition: Level1TriggerRates.cc:55
Level1TriggerRates::version
int version() const
get the data
Definition: Level1TriggerRates.h:55
Level1TriggerRates::gtTechCountsRate
std::vector< double > gtTechCountsRate() const
Definition: Level1TriggerRates.h:104
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Level1TriggerRates::triggersPhysicsLostRate_
double triggersPhysicsLostRate_
Definition: Level1TriggerRates.h:123
Level1TriggerRates::operator!=
int operator!=(const Level1TriggerRates &e) const
inequality operator
Definition: Level1TriggerRates.h:110
Level1TriggerRates::triggersPhysicsLostBeamActiveRate
double triggersPhysicsLostBeamActiveRate() const
Definition: Level1TriggerRates.h:71
TimeSpec.h
Level1TriggerRates::gtTechCountsRate_
std::vector< double > gtTechCountsRate_
Definition: Level1TriggerRates.h:139
Level1TriggerScalers
Definition: Level1TriggerScalers.h:26
Level1TriggerRates::l1AsRandomRate
double l1AsRandomRate() const
Definition: Level1TriggerRates.h:77
Level1TriggerRates::l1AsCalibrationRate
double l1AsCalibrationRate() const
Definition: Level1TriggerRates.h:81
Level1TriggerRates::gtTriggersRate
double gtTriggersRate() const
Definition: Level1TriggerRates.h:61
Level1TriggerRates::deadtimePercent
double deadtimePercent() const
Definition: Level1TriggerRates.h:83
Level1TriggerRates::empty
bool empty() const
empty method (= false)
Definition: Level1TriggerRates.h:51
Level1TriggerRates::triggersPhysicsGeneratedFDLRate_
double triggersPhysicsGeneratedFDLRate_
Definition: Level1TriggerRates.h:122
Level1TriggerRates::l1AsPhysicsRate_
double l1AsPhysicsRate_
Definition: Level1TriggerRates.h:126
TimeSpec
Definition: TimeSpec.h:7
Level1TriggerRates::deadtimeBeamActivePrivateOrbitPercent_
double deadtimeBeamActivePrivateOrbitPercent_
Definition: Level1TriggerRates.h:134
Level1TriggerRates::l1AsRandomRate_
double l1AsRandomRate_
Definition: Level1TriggerRates.h:127
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
operator<<
std::ostream & operator<<(std::ostream &s, const Level1TriggerRates &c)
Pretty-print operator for Level1TriggerRates.
Definition: Level1TriggerRates.cc:133
Level1TriggerRates::triggersPhysicsLostBeamActiveRate_
double triggersPhysicsLostBeamActiveRate_
Definition: Level1TriggerRates.h:124
Level1TriggerRates::collectionTimeLumiSeg_
TimeSpec collectionTimeLumiSeg_
Definition: Level1TriggerRates.h:121
Level1TriggerRates::deadtimeBeamActiveTriggerRulesPercent
double deadtimeBeamActiveTriggerRulesPercent() const
Definition: Level1TriggerRates.h:87
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37