CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
26 
29 class L1TriggerScalers;
30 
32 {
33  public:
34 
35  enum
36  {
37  N_BX = 3654,
38  N_BX_ACTIVE = 2808
39  };
40 
41 #define BX_SPACING (double)25E-9
42 
46  virtual ~L1TriggerRates();
47 
48  void computeRunRates(L1TriggerScalers const& t);
49  void computeRates(L1TriggerScalers const& t1,
50  L1TriggerScalers const& t2);
51 
53  std::string name() const { return "L1TriggerRates"; }
54 
56  bool empty() const { return false; }
57 
59 
60  int version() const { return(version_);}
62 
63  double deltaT() const { return(deltaT_);}
64  double deltaTActive() const { return(deltaTActive_);}
65  double deltaTRun() const { return(deltaTRun_);}
66  double deltaTRunActive() const { return(deltaTRunActive_);}
67 
68  // Instantaneous Rate accessors
69  double triggerNumberRate() const
70  { return(triggerNumberRate_);}
71 
72  double eventNumberRate() const
73  { return(eventNumberRate_);}
74 
76  { return(finalTriggersGeneratedRate_);}
79 
80  double randomTriggersRate() const
81  { return(randomTriggersRate_);}
82 
83  double calibrationTriggersRate() const
84  { return(calibrationTriggersRate_);}
85 
86  double totalTestTriggersRate() const
87  { return(totalTestTriggersRate_);}
88 
89  double orbitNumberRate() const
90  { return(orbitNumberRate_);}
91 
92  double numberResetsRate() const
93  { return(numberResetsRate_);}
94 
95  double deadTimePercent() const
96  { return(deadTimePercent_);}
97 
98  double deadTimeActivePercent() const
99  { return(deadTimeActivePercent_);}
100 
103 
106 
109 
112 
115 
118 
119  double lostFinalTriggersPercent() const
120  { return(lostFinalTriggersPercent_);}
121 
124 
125  timespec collectionTimeDetails() const
127 
128  std::vector<double> triggersRate() const { return(triggersRate_);}
129  std::vector<double> testTriggersRate() const
130  { return(testTriggersRate_);}
131 
132  // Run Rate Accessors
133  double triggerNumberRunRate() const
134  { return(triggerNumberRunRate_);}
135 
136  double eventNumberRunRate() const
137  { return(eventNumberRunRate_);}
138 
141 
144 
145  double randomTriggersRunRate() const
146  { return(randomTriggersRunRate_);}
147 
149  { return(calibrationTriggersRunRate_);}
150 
151  double totalTestTriggersRunRate() const
152  { return(totalTestTriggersRunRate_);}
153 
154  double orbitNumberRunRate() const
155  { return(orbitNumberRunRate_);}
156 
157  double numberResetsRunRate() const
158  { return(numberResetsRunRate_);}
159 
160  double deadTimeRunPercent() const
161  { return(deadTimeRunPercent_);}
162 
163  double deadTimeActiveRunPercent() const
164  { return(deadTimeActiveRunPercent_);}
165 
168 
171 
174 
177 
180 
183 
185  { return(lostFinalTriggersRunPercent_);}
186 
189 
190  std::vector<double> triggersRunRate() const
191  { return(triggersRunRate_);}
192 
193  std::vector<double> testTriggersRunRate() const
194  { return(testTriggersRunRate_);}
195 
197  int operator==(const L1TriggerRates& e) const { return false; }
198 
200  int operator!=(const L1TriggerRates& e) const { return false; }
201 
202 protected:
203 
204  int version_;
206 
207  double deltaT_;
209 
229 
230  std::vector<double> triggersRate_;
231  std::vector<double> testTriggersRate_;
232 
233  double deltaTRun_;
235 
255 
257  std::vector<double> triggersRunRate_;
258  std::vector<double> testTriggersRunRate_;
259 };
260 
261 
263 std::ostream& operator<<(std::ostream& s, const L1TriggerRates& c);
264 
265 typedef std::vector<L1TriggerRates> L1TriggerRatesCollection;
266 
267 #endif
double numberResetsRate() const
double totalTestTriggersRunRate() const
double lostFinalTriggersActivePercent() const
double deadTimeActivePrivateRunPercent_
double lostFinalTriggersActiveRunPercent_
double deadTimeActiveCalibrationPercent_
int operator!=(const L1TriggerRates &e) const
inequality operator
double finalTriggersGeneratedRate_
timespec collectionTimeDetails() const
double finalTriggersInvalidBCRunPercent() const
std::vector< double > triggersRate_
double orbitNumberRunRate_
double finalTriggersInvalidBCPercent_
std::string name() const
name method
double lostFinalTriggersRunPercent() const
double lostFinalTriggersActiveRunPercent() const
double deltaTRun() const
double deadTimeActiveThrottleRunPercent_
double eventNumberRunRate() const
double numberResetsRate_
double numberResetsRunRate_
double finalTriggersDistributedRunRate_
double finalTriggersGeneratedRunRate() const
double deadTimeActiveRunPercent_
double finalTriggersGeneratedRate() const
double randomTriggersRate_
double deadTimeActivePartitionRunPercent() const
double deadTimeActiveTimeSlotPercent() const
double deadTimeActivePercent() const
double randomTriggersRunRate_
double deadTimePercent_
TimeSpec collectionTimeSummary_
int version() const
get the data
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double deadTimeRunPercent() const
double finalTriggersDistributedRunRate() const
double deadTimePercent() const
double deadTimeActiveCalibrationRunPercent() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
double triggerNumberRate_
tuple s2
Definition: indexGen.py:106
double eventNumberRate() const
double deadTimeActivePartitionPercent() const
bool empty() const
empty method (= false)
double finalTriggersDistributedRate() const
double calibrationTriggersRunRate() const
double numberResetsRunRate() const
double deadTimeActiveThrottlePercent() const
double deadTimeRunPercent_
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
double eventNumberRate_
double deltaT() const
double lostFinalTriggersActivePercent_
double deadTimeActivePartitionRunPercent_
double triggerNumberRate() const
double finalTriggersInvalidBCRunPercent_
double deadTimeActiveTimeSlotRunPercent() const
double deadTimeActivePercent_
double finalTriggersInvalidBCPercent() const
double deadTimeActiveThrottlePercent_
double randomTriggersRunRate() const
double calibrationTriggersRate() const
double deadTimeActiveTimeSlotPercent_
double orbitNumberRate() const
double totalTestTriggersRunRate_
double deltaTRunActive() const
double deadTimeActivePartitionPercent_
double calibrationTriggersRate_
double deadTimeActiveTimeSlotRunPercent_
std::vector< double > testTriggersRate_
virtual ~L1TriggerRates()
std::vector< double > testTriggersRunRate() const
void computeRunRates(L1TriggerScalers const &t)
double lostFinalTriggersPercent_
double deadTimeActiveCalibrationRunPercent_
double triggerNumberRunRate() const
double totalTestTriggersRate() const
std::vector< double > triggersRunRate() const
double deadTimeActiveCalibrationPercent() const
void computeRates(L1TriggerScalers const &t1, L1TriggerScalers const &t2)
double triggerNumberRunRate_
double finalTriggersGeneratedRunRate_
std::vector< double > testTriggersRate() const
double deadTimeActiveRunPercent() const
double deltaTActive() const
std::vector< L1TriggerRates > L1TriggerRatesCollection
double calibrationTriggersRunRate_
double randomTriggersRate() const
double deadTimeActiveThrottleRunPercent() const
timespec collectionTimeSummary()
double deadTimeActivePrivatePercent_
double deltaTRunActive_
double lostFinalTriggersPercent() const
TimeSpec collectionTimeDetails_
double deadTimeActivePrivateRunPercent() const
double eventNumberRunRate_
std::vector< double > triggersRunRate_
double deadTimeActivePrivatePercent() const
double orbitNumberRunRate() const
double orbitNumberRate_
double totalTestTriggersRate_
int operator==(const L1TriggerRates &e) const
equality operator
std::vector< double > testTriggersRunRate_
double lostFinalTriggersRunPercent_
std::vector< double > triggersRate() const
double finalTriggersDistributedRate_