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
double deadtimeBeamActiveTimeSlotPercent_
double deadtimeBeamActiveTimeSlotPercent() const
double l1AsTestRate() const
double triggersPhysicsLostRate() const
double deadtimeBeamActiveTriggerRulesPercent() const
int operator!=(const Level1TriggerRates &e) const
inequality operator
double triggersPhysicsGeneratedFDLRate() const
unsigned long long deltaNS_
double deadtimeBeamActivePartitionControllerPercent() const
std::ostream & operator<<(std::ostream &s, const Level1TriggerRates &c)
Pretty-print operator for Level1TriggerRates.
int version() const
get the data
std::vector< Level1TriggerRates > Level1TriggerRatesCollection
double l1AsRandomRate() const
double deadtimePercent() const
int operator==(const Level1TriggerRates &e) const
equality operator
double l1AsCalibrationRate() const
double triggersPhysicsLostBeamInactiveRate_
double triggersPhysicsLostBeamActiveRate_
double deadtimeBeamActiveCalibrationPercent_
double gtTriggersRate() const
bool empty() const
empty method (= false)
std::vector< double > gtAlgoCountsRate_
double deltaT() const
double deadtimeBeamActiveTriggerRulesPercent_
std::vector< double > gtAlgoCountsRate() const
timespec collectionTimeLumiSeg()
timespec collectionTime() const
double deadtimeBeamActivePrivateOrbitPercent() const
double deadtimeBeamActivePercent() const
void computeRates(Level1TriggerScalers const &t1)
std::vector< double > gtTechCountsRate_
double triggersPhysicsGeneratedFDLRate_
timespec get_timespec() const
Definition: TimeSpec.cc:4
double deadtimeBeamActivePrivateOrbitPercent_
std::vector< double > gtTechCountsRate() const
unsigned long long deltaNS() const
double triggersPhysicsLostBeamActiveRate() const
double l1AsPhysicsRate() const
double gtEventsRate() const
std::string name() const
name method
double deadtimeBeamActivePartitionControllerPercent_
double triggersPhysicsLostBeamInactiveRate() const
double deadtimeBeamActiveCalibrationPercent() const
timespec collectionTimeLumiSeg() const