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  enum
36  {
37  N_BX = 3654,
38  N_BX_ACTIVE = 2808
39  };
40 
41 #define BX_SPACING (double)25E-9
42 
46  int runNumber);
48  Level1TriggerScalers const& s2);
50  Level1TriggerScalers const& s2,
51  int runNumber);
52  virtual ~Level1TriggerRates();
53 
54  void computeRates(Level1TriggerScalers const& t1);
55  void computeRates(Level1TriggerScalers const& t1,
56  int runNumber);
57 
58  void computeRates(Level1TriggerScalers const& t1,
59  Level1TriggerScalers const& t2);
60  void computeRates(Level1TriggerScalers const& t1,
61  Level1TriggerScalers const& t2,
62  int runNumber);
63 
65  std::string name() const { return "Level1TriggerRates"; }
66 
68  bool empty() const { return false; }
69 
71 
72  int version() const { return(version_);}
73  timespec collectionTime() { return(collectionTime_.get_timespec());}
74 
75  unsigned long long deltaNS() const { return(deltaNS_);}
76  double deltaT() const { return(deltaT_);}
77 
78  double gtTriggersRate() const
79  { return(gtTriggersRate_);}
80 
81  double gtEventsRate() const
82  { return(gtEventsRate_);}
83 
86 
89 
90  double triggersPhysicsLostRate() const
91  { return(triggersPhysicsLostRate_);}
92 
95 
98 
99  double l1AsPhysicsRate() const { return(l1AsPhysicsRate_);}
100 
101  double l1AsRandomRate() const { return(l1AsRandomRate_);}
102 
103  double l1AsTestRate() const { return(l1AsTestRate_);}
104 
105  double l1AsCalibrationRate() const { return(l1AsCalibrationRate_);}
106 
107  double deadtimePercent() const { return(deadtimePercent_);}
108 
110  { return(deadtimeBeamActivePercent_);}
111 
114 
117 
120 
123 
126 
127  timespec collectionTime() const
128  { return(collectionTime_.get_timespec());}
129 
130  timespec collectionTimeLumiSeg() const
132 
133  std::vector<double> gtAlgoCountsRate() const { return(gtAlgoCountsRate_);}
134  std::vector<double> gtTechCountsRate() const { return(gtTechCountsRate_);}
135 
137  int operator==(const Level1TriggerRates& e) const { return false; }
138 
140  int operator!=(const Level1TriggerRates& e) const { return false; }
141 
142 protected:
143 
144  int version_;
145 
147  unsigned long long deltaNS_;
148  double deltaT_;
151 
168 
169  std::vector<double> gtAlgoCountsRate_;
170  std::vector<double> gtTechCountsRate_;
171 };
172 
173 
175 std::ostream& operator<<(std::ostream& s, const Level1TriggerRates& c);
176 
177 typedef std::vector<Level1TriggerRates> Level1TriggerRatesCollection;
178 
179 #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:187
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
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