CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
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 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
const edm::EventSetup & c
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:167
double deadTimeRunPercent() const
double finalTriggersDistributedRunRate() const
double deadTimePercent() const
double deadTimeActiveCalibrationRunPercent() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
double triggerNumberRate_
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_
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_