test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
26 
30 
32 {
33  public:
34 
35 #define BX_SPACING (double)25E-9
36 
40  int runNumber);
42  Level1TriggerScalers const& s2);
44  Level1TriggerScalers const& s2,
45  int runNumber);
46  virtual ~Level1TriggerRates();
47 
48  void computeRates(Level1TriggerScalers const& t1);
49  void computeRates(Level1TriggerScalers const& t1,
50  int runNumber);
51 
52  void computeRates(Level1TriggerScalers const& t1,
53  Level1TriggerScalers const& t2);
54  void computeRates(Level1TriggerScalers const& t1,
55  Level1TriggerScalers const& t2,
56  int runNumber);
57 
59  std::string name() const { return "Level1TriggerRates"; }
60 
62  bool empty() const { return false; }
63 
65 
66  int version() const { return(version_);}
67  timespec collectionTime() { return(collectionTime_.get_timespec());}
68 
69  unsigned long long deltaNS() const { return(deltaNS_);}
70  double deltaT() const { return(deltaT_);}
71 
72  double gtTriggersRate() const
73  { return(gtTriggersRate_);}
74 
75  double gtEventsRate() const
76  { return(gtEventsRate_);}
77 
80 
83 
84  double triggersPhysicsLostRate() const
85  { return(triggersPhysicsLostRate_);}
86 
89 
92 
93  double l1AsPhysicsRate() const { return(l1AsPhysicsRate_);}
94 
95  double l1AsRandomRate() const { return(l1AsRandomRate_);}
96 
97  double l1AsTestRate() const { return(l1AsTestRate_);}
98 
99  double l1AsCalibrationRate() const { return(l1AsCalibrationRate_);}
100 
101  double deadtimePercent() const { return(deadtimePercent_);}
102 
104  { return(deadtimeBeamActivePercent_);}
105 
108 
111 
114 
117 
120 
121  timespec collectionTime() const
122  { return(collectionTime_.get_timespec());}
123 
124  timespec collectionTimeLumiSeg() const
126 
127  std::vector<double> gtAlgoCountsRate() const { return(gtAlgoCountsRate_);}
128  std::vector<double> gtTechCountsRate() const { return(gtTechCountsRate_);}
129 
131  int operator==(const Level1TriggerRates& e) const { return false; }
132 
134  int operator!=(const Level1TriggerRates& e) const { return false; }
135 
136 protected:
137 
138  int version_;
139 
141  unsigned long long deltaNS_;
142  double deltaT_;
145 
162 
163  std::vector<double> gtAlgoCountsRate_;
164  std::vector<double> gtTechCountsRate_;
165 };
166 
167 
169 std::ostream& operator<<(std::ostream& s, const Level1TriggerRates& c);
170 
171 typedef std::vector<Level1TriggerRates> Level1TriggerRatesCollection;
172 
173 #endif
timespec collectionTime() const
double deadtimeBeamActiveTimeSlotPercent_
int operator==(const Level1TriggerRates &e) const
equality operator
double l1AsTestRate() const
double deadtimeBeamActivePartitionControllerPercent() const
double triggersPhysicsGeneratedFDLRate() const
timespec collectionTimeLumiSeg() const
unsigned long long deltaNS_
std::vector< Level1TriggerRates > Level1TriggerRatesCollection
int operator!=(const Level1TriggerRates &e) const
inequality operator
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
double l1AsRandomRate() const
double triggersPhysicsLostBeamActiveRate() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
tuple s2
Definition: indexGen.py:106
double gtTriggersRate() const
std::vector< double > gtAlgoCountsRate() const
double triggersPhysicsLostBeamInactiveRate_
double triggersPhysicsLostBeamActiveRate_
double deadtimeBeamActiveCalibrationPercent_
int version() const
get the data
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
std::vector< double > gtAlgoCountsRate_
double triggersPhysicsLostBeamInactiveRate() const
double deadtimeBeamActivePercent() const
double deadtimeBeamActiveTriggerRulesPercent_
double deadtimeBeamActiveTriggerRulesPercent() const
double deadtimeBeamActivePrivateOrbitPercent() const
bool empty() const
empty method (= false)
unsigned long long deltaNS() const
timespec collectionTimeLumiSeg()
double deadtimeBeamActiveTimeSlotPercent() const
double gtEventsRate() const
void computeRates(Level1TriggerScalers const &t1)
std::string name() const
name method
std::vector< double > gtTechCountsRate_
double triggersPhysicsGeneratedFDLRate_
double deadtimeBeamActivePrivateOrbitPercent_
double deadtimePercent() const
double triggersPhysicsLostRate() const
double deadtimeBeamActiveCalibrationPercent() const
std::vector< double > gtTechCountsRate() const
double l1AsCalibrationRate() const
double deadtimeBeamActivePartitionControllerPercent_
double l1AsPhysicsRate() const
double deltaT() const