CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
18 
20 public:
21  // a struct with the information for each lumi
22 
23  struct Lumi{
24  Lumi(){}
25  ~Lumi(){}
27  long long m_lumi_id;
29  // std::string m_date_str;
30  //std::string m_string_value;
32  long m_rn;
34  // std::string m_version;
35  //std::string m_context;
37 
38 
39 
40 
41  std::vector<int> m_GTAlgoCounts;
42  // m_GTAlgoCounts.reserve(128);
43 
44  std::vector<float> m_GTAlgoRates;
45 
46  std::vector<int> m_GTAlgoPrescaling;
47 
48  std::vector<int> m_GTTechCounts;
49 
50  std::vector<float> m_GTTechRates;
51 
52  std::vector<int> m_GTTechPrescaling;
53 
54  std::vector<int> m_GTPartition0TriggerCounts;
55 
56  std::vector<float> m_GTPartition0TriggerRates;
57 
58  std::vector<int> m_GTPartition0DeadTime;
59 
60  std::vector<float> m_GTPartition0DeadTimeRatio;
61 
62 
64 };
65 
66 // the fondamental object is a vector of struct Lumi
68  virtual ~L1TriggerScaler(){}
69  // fondamental object
70  std::vector<Lumi> m_run;
71 
72 
73  // printing everything
74  void printAllValues() const;
75  void printRunValue()const;
76  void printLumiSegmentValues() const;
77  void printFormat() const;
78  void printGTAlgoCounts() const;
79  void printGTAlgoRates() const;
80  void printGTAlgoPrescaling() const;
81  void printGTTechCounts() const;
82  void printGTTechRates() const;
83  void printGTTechPrescaling() const;
84  void printGTPartition0TriggerCounts() const;
85  void printGTPartition0TriggerRates() const;
86  void printGTPartition0DeadTime() const;
87  void printGTPartition0DeadTimeRatio() const;
88 
89  typedef std::vector<Lumi>::const_iterator LumiIterator;
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 void SetRunNumber(int n) {
100  m_runnumber= n;
101  }
102 
103 
104  private:
107  // std::string m_string_value;
108  //std::vector<int> m_GTAlgoCounts;
109 
111 };
112 
113 #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
void printGTPartition0TriggerRates() const
std::vector< float > m_GTPartition0TriggerRates
void printGTTechRates() const
virtual ~L1TriggerScaler()
std::vector< int > m_GTAlgoPrescaling
std::vector< Lumi >::const_iterator LumiIterator