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 
4 #include <iostream>
5 #include<vector>
6 
7 /*
8  * \class L1TriggerScaler
9  *
10  * hosting L1TriggerScaler information
11  *
12  * \author Michele de Gruttola (degrutto) - INFN Naples / CERN (August-21-2008)
13  *
14 */
15 
16 
18 public:
19  // a struct with the information for each lumi
20 
21  struct Lumi{
22  Lumi(){}
23  ~Lumi(){}
25  long long m_lumi_id;
26  std::string m_start_time;
27  // std::string m_date_str;
28  //std::string m_string_value;
29  std::string m_string_format;
30  long m_rn;
32  // std::string m_version;
33  //std::string m_context;
34  std::string m_date;
35 
36 
37 
38 
39  std::vector<int> m_GTAlgoCounts;
40  // m_GTAlgoCounts.reserve(128);
41 
42  std::vector<float> m_GTAlgoRates;
43 
44  std::vector<int> m_GTAlgoPrescaling;
45 
46  std::vector<int> m_GTTechCounts;
47 
48  std::vector<float> m_GTTechRates;
49 
50  std::vector<int> m_GTTechPrescaling;
51 
52  std::vector<int> m_GTPartition0TriggerCounts;
53 
54  std::vector<float> m_GTPartition0TriggerRates;
55 
56  std::vector<int> m_GTPartition0DeadTime;
57 
58  std::vector<float> m_GTPartition0DeadTimeRatio;
59 
60  };
61 
62 // the fondamental object is a vector of struct Lumi
64  virtual ~L1TriggerScaler(){}
65  // fondamental object
66  std::vector<Lumi> m_run;
67 
68 
69  // printing everything
70  void printAllValues() const;
71  void printRunValue()const;
72  void printLumiSegmentValues() const;
73  void printFormat() const;
74  void printGTAlgoCounts() const;
75  void printGTAlgoRates() const;
76  void printGTAlgoPrescaling() const;
77  void printGTTechCounts() const;
78  void printGTTechRates() const;
79  void printGTTechPrescaling() const;
80  void printGTPartition0TriggerCounts() const;
81  void printGTPartition0TriggerRates() const;
82  void printGTPartition0DeadTime() const;
83  void printGTPartition0DeadTimeRatio() const;
84 
85  typedef std::vector<Lumi>::const_iterator LumiIterator;
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 void SetRunNumber(int n) {
96  m_runnumber= n;
97  }
98 
99 
100  private:
103  // std::string m_string_value;
104  //std::vector<int> m_GTAlgoCounts;
105 };
106 
107 #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