CMS 3D CMS Logo

L1TriggerRates.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/L1TriggerRates.h (W.Badgett)
3  *
4  * Various Level 1 Trigger Rates from the GT/TS
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_L1TRIGGERRATES_H
9 #define DATAFORMATS_SCALERS_L1TRIGGERRATES_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <string>
16 #include <vector>
17 
25 
28 class L1TriggerScalers;
29 
31 public:
32  enum { N_BX = 3654, N_BX_ACTIVE = 2808 };
33 
34 #define BX_SPACING (double)25E-9
35 
38  L1TriggerRates(L1TriggerScalers const& s1, L1TriggerScalers const& s2);
39  virtual ~L1TriggerRates();
40 
41  void computeRunRates(L1TriggerScalers const& t);
42  void computeRates(L1TriggerScalers const& t1, L1TriggerScalers const& t2);
43 
45  std::string name() const { return "L1TriggerRates"; }
46 
48  bool empty() const { return false; }
49 
51 
52  int version() const { return (version_); }
54 
55  double deltaT() const { return (deltaT_); }
56  double deltaTActive() const { return (deltaTActive_); }
57  double deltaTRun() const { return (deltaTRun_); }
58  double deltaTRunActive() const { return (deltaTRunActive_); }
59 
60  // Instantaneous Rate accessors
61  double triggerNumberRate() const { return (triggerNumberRate_); }
62 
63  double eventNumberRate() const { return (eventNumberRate_); }
64 
67 
68  double randomTriggersRate() const { return (randomTriggersRate_); }
69 
71 
72  double totalTestTriggersRate() const { return (totalTestTriggersRate_); }
73 
74  double orbitNumberRate() const { return (orbitNumberRate_); }
75 
76  double numberResetsRate() const { return (numberResetsRate_); }
77 
78  double deadTimePercent() const { return (deadTimePercent_); }
79 
80  double deadTimeActivePercent() const { return (deadTimeActivePercent_); }
81 
83 
85 
87 
89 
91 
93 
95 
97 
99 
100  std::vector<double> triggersRate() const { return (triggersRate_); }
101  std::vector<double> testTriggersRate() const { return (testTriggersRate_); }
102 
103  // Run Rate Accessors
104  double triggerNumberRunRate() const { return (triggerNumberRunRate_); }
105 
106  double eventNumberRunRate() const { return (eventNumberRunRate_); }
107 
109 
111 
112  double randomTriggersRunRate() const { return (randomTriggersRunRate_); }
113 
115 
117 
118  double orbitNumberRunRate() const { return (orbitNumberRunRate_); }
119 
120  double numberResetsRunRate() const { return (numberResetsRunRate_); }
121 
122  double deadTimeRunPercent() const { return (deadTimeRunPercent_); }
123 
125 
127 
129 
131 
133 
135 
137 
139 
141 
142  std::vector<double> triggersRunRate() const { return (triggersRunRate_); }
143 
144  std::vector<double> testTriggersRunRate() const { return (testTriggersRunRate_); }
145 
147  int operator==(const L1TriggerRates& e) const { return false; }
148 
150  int operator!=(const L1TriggerRates& e) const { return false; }
151 
152 protected:
153  int version_;
155 
156  double deltaT_;
158 
178 
179  std::vector<double> triggersRate_;
180  std::vector<double> testTriggersRate_;
181 
182  double deltaTRun_;
184 
204 
206  std::vector<double> triggersRunRate_;
207  std::vector<double> testTriggersRunRate_;
208 };
209 
211 std::ostream& operator<<(std::ostream& s, const L1TriggerRates& c);
212 
213 typedef std::vector<L1TriggerRates> L1TriggerRatesCollection;
214 
215 #endif
double deadTimeActivePrivateRunPercent_
std::vector< double > triggersRate() const
double lostFinalTriggersActiveRunPercent_
double randomTriggersRunRate() const
double deadTimeActivePercent() const
double deadTimeActiveCalibrationPercent_
double finalTriggersGeneratedRate_
double finalTriggersDistributedRate() const
bool empty() const
empty method (= false)
double randomTriggersRate() const
std::vector< double > triggersRate_
double orbitNumberRunRate_
std::vector< double > testTriggersRunRate() const
double finalTriggersInvalidBCPercent_
double totalTestTriggersRate() const
double deltaTActive() const
double finalTriggersGeneratedRunRate() const
double deadTimeActiveThrottlePercent() const
double deadTimeActiveThrottleRunPercent_
double deadTimeActiveCalibrationRunPercent() const
double numberResetsRate_
double numberResetsRunRate_
double finalTriggersDistributedRunRate_
double deadTimeActiveRunPercent_
double deadTimePercent() const
double randomTriggersRate_
double deadTimeActivePartitionPercent() const
double randomTriggersRunRate_
double deadTimePercent_
double deadTimeActiveTimeSlotRunPercent() const
double deadTimeRunPercent() const
TimeSpec collectionTimeSummary_
double deadTimeActiveThrottleRunPercent() const
int version() const
get the data
double deadTimeActivePrivatePercent() const
double triggerNumberRate_
double calibrationTriggersRunRate() const
std::string name() const
name method
int operator!=(const L1TriggerRates &e) const
inequality operator
double finalTriggersInvalidBCRunPercent() const
double deadTimeRunPercent_
double lostFinalTriggersPercent() const
double eventNumberRate_
double lostFinalTriggersActivePercent() const
double deltaTRun() const
double lostFinalTriggersActivePercent_
double numberResetsRunRate() const
double deadTimeActivePartitionRunPercent_
double finalTriggersInvalidBCRunPercent_
double eventNumberRate() const
double deadTimeActivePercent_
double deadTimeActiveThrottlePercent_
double deadTimeActiveTimeSlotPercent_
std::ostream & operator<<(std::ostream &s, const L1TriggerRates &c)
Pretty-print operator for L1TriggerRates.
double orbitNumberRunRate() const
double totalTestTriggersRunRate_
double lostFinalTriggersRunPercent() const
double deadTimeActivePartitionPercent_
double calibrationTriggersRate_
double deadTimeActiveTimeSlotRunPercent_
std::vector< double > testTriggersRate_
virtual ~L1TriggerRates()
double triggerNumberRunRate() const
void computeRunRates(L1TriggerScalers const &t)
double lostFinalTriggersPercent_
double deadTimeActiveCalibrationRunPercent_
void computeRates(L1TriggerScalers const &t1, L1TriggerScalers const &t2)
double triggerNumberRunRate_
std::vector< double > triggersRunRate() const
double deltaT() const
double finalTriggersGeneratedRunRate_
double lostFinalTriggersActiveRunPercent() const
double deltaTRunActive() const
double deadTimeActiveTimeSlotPercent() const
std::vector< L1TriggerRates > L1TriggerRatesCollection
timespec get_timespec() const
Definition: TimeSpec.cc:4
double totalTestTriggersRunRate() const
double calibrationTriggersRunRate_
double finalTriggersDistributedRunRate() const
double numberResetsRate() const
double calibrationTriggersRate() const
int operator==(const L1TriggerRates &e) const
equality operator
timespec collectionTimeSummary()
double deadTimeActivePrivatePercent_
double deltaTRunActive_
double deadTimeActivePrivateRunPercent() const
double triggerNumberRate() const
TimeSpec collectionTimeDetails_
double eventNumberRunRate_
double finalTriggersInvalidBCPercent() const
double orbitNumberRate() const
double deadTimeActivePartitionRunPercent() const
std::vector< double > triggersRunRate_
double finalTriggersGeneratedRate() const
double orbitNumberRate_
double deadTimeActiveRunPercent() const
double totalTestTriggersRate_
timespec collectionTimeDetails() const
double deadTimeActiveCalibrationPercent() const
std::vector< double > testTriggersRate() const
double eventNumberRunRate() const
std::vector< double > testTriggersRunRate_
double lostFinalTriggersRunPercent_
double finalTriggersDistributedRate_