CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1TriggerScaler.h
Go to the documentation of this file.
1 #ifndef L1TriggerScaler_h
2 #define L1TriggerScaler_h
3 
5 
6 #include <iostream>
7 #include <vector>
8 
9 /*
10  * \class L1TriggerScaler
11  *
12  * hosting L1TriggerScaler information
13  *
14  * \author Michele de Gruttola (degrutto) - INFN Naples / CERN (August-21-2008)
15  *
16 */
17 
19 public:
20  // a struct with the information for each lumi
21 
22  struct Lumi {
23  Lumi() {}
24  ~Lumi() {}
26  long long m_lumi_id;
28  // std::string m_date_str;
29  //std::string m_string_value;
31  long m_rn;
33  // std::string m_version;
34  //std::string m_context;
36 
37  std::vector<int> m_GTAlgoCounts;
38  // m_GTAlgoCounts.reserve(128);
39 
40  std::vector<float> m_GTAlgoRates;
41 
42  std::vector<int> m_GTAlgoPrescaling;
43 
44  std::vector<int> m_GTTechCounts;
45 
46  std::vector<float> m_GTTechRates;
47 
48  std::vector<int> m_GTTechPrescaling;
49 
50  std::vector<int> m_GTPartition0TriggerCounts;
51 
52  std::vector<float> m_GTPartition0TriggerRates;
53 
54  std::vector<int> m_GTPartition0DeadTime;
55 
56  std::vector<float> m_GTPartition0DeadTimeRatio;
57 
59  };
60 
61  // the fondamental object is a vector of struct Lumi
63  virtual ~L1TriggerScaler() {}
64  // fondamental object
65  std::vector<Lumi> m_run;
66 
67  // printing everything
68  void printAllValues() const;
69  void printRunValue() const;
70  void printLumiSegmentValues() const;
71  void printFormat() const;
72  void printGTAlgoCounts() const;
73  void printGTAlgoRates() const;
74  void printGTAlgoPrescaling() const;
75  void printGTTechCounts() const;
76  void printGTTechRates() const;
77  void printGTTechPrescaling() const;
78  void printGTPartition0TriggerCounts() const;
79  void printGTPartition0TriggerRates() const;
80  void printGTPartition0DeadTime() const;
81  void printGTPartition0DeadTimeRatio() const;
82 
83  typedef std::vector<Lumi>::const_iterator LumiIterator;
84 
85  void SetRunNumber(int n) { m_runnumber = n; }
86 
87 private:
90  // std::string m_string_value;
91  //std::vector<int> m_GTAlgoCounts;
92 
94 };
95 
96 #endif
void printRunValue() const
void printGTTechCounts() const
std::vector< float > m_GTAlgoRates
std::vector< int > m_GTTechCounts
void SetRunNumber(int n)
std::vector< float > m_GTTechRates
std::vector< int > m_GTAlgoCounts
std::vector< int > m_GTTechPrescaling
std::vector< float > m_GTPartition0DeadTimeRatio
std::vector< Lumi > m_run
void printGTPartition0DeadTime() const
std::vector< int > m_GTPartition0DeadTime
void printGTAlgoRates() const
void printAllValues() const
void printGTTechPrescaling() const
std::string m_string_format
std::vector< int > m_GTPartition0TriggerCounts
void printGTAlgoPrescaling() const
void printLumiSegmentValues() const
void printGTAlgoCounts() const
void printFormat() const
void printGTPartition0TriggerCounts() const
void printGTPartition0DeadTimeRatio() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void printGTPartition0TriggerRates() const
std::vector< float > m_GTPartition0TriggerRates
void printGTTechRates() const
virtual ~L1TriggerScaler()
std::vector< int > m_GTAlgoPrescaling
std::vector< Lumi >::const_iterator LumiIterator