CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
25 
29 
31 public:
32 #define BX_SPACING (double)25E-9
33 
39  virtual ~Level1TriggerRates();
40 
41  void computeRates(Level1TriggerScalers const& t1);
42  void computeRates(Level1TriggerScalers const& t1, int runNumber);
43 
44  void computeRates(Level1TriggerScalers const& t1, Level1TriggerScalers const& t2);
45  void computeRates(Level1TriggerScalers const& t1, Level1TriggerScalers const& t2, int runNumber);
46 
48  std::string name() const { return "Level1TriggerRates"; }
49 
51  bool empty() const { return false; }
52 
54 
55  int version() const { return (version_); }
56  timespec collectionTime() { return (collectionTime_.get_timespec()); }
57 
58  unsigned long long deltaNS() const { return (deltaNS_); }
59  double deltaT() const { return (deltaT_); }
60 
61  double gtTriggersRate() const { return (gtTriggersRate_); }
62 
63  double gtEventsRate() const { return (gtEventsRate_); }
64 
66 
68 
70 
72 
74 
75  double l1AsPhysicsRate() const { return (l1AsPhysicsRate_); }
76 
77  double l1AsRandomRate() const { return (l1AsRandomRate_); }
78 
79  double l1AsTestRate() const { return (l1AsTestRate_); }
80 
81  double l1AsCalibrationRate() const { return (l1AsCalibrationRate_); }
82 
83  double deadtimePercent() const { return (deadtimePercent_); }
84 
86 
88 
90 
92 
95  }
96 
98 
99  timespec collectionTime() const { return (collectionTime_.get_timespec()); }
100 
102 
103  std::vector<double> gtAlgoCountsRate() const { return (gtAlgoCountsRate_); }
104  std::vector<double> gtTechCountsRate() const { return (gtTechCountsRate_); }
105 
107  int operator==(const Level1TriggerRates& e) const { return false; }
108 
110  int operator!=(const Level1TriggerRates& e) const { return false; }
111 
112 protected:
113  int version_;
114 
116  unsigned long long deltaNS_;
117  double deltaT_;
120 
137 
138  std::vector<double> gtAlgoCountsRate_;
139  std::vector<double> gtTechCountsRate_;
140 };
141 
143 std::ostream& operator<<(std::ostream& s, const Level1TriggerRates& c);
144 
145 typedef std::vector<Level1TriggerRates> Level1TriggerRatesCollection;
146 
147 #endif
timespec collectionTime() const
double deadtimeBeamActiveTimeSlotPercent_
int operator==(const Level1TriggerRates &e) const
equality operator
double l1AsTestRate() const
const edm::EventSetup & c
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:167
double l1AsRandomRate() const
double triggersPhysicsLostBeamActiveRate() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
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