CMS 3D CMS Logo

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
L1TriggerScaler::Lumi::m_runnumber
int m_runnumber
Definition: L1TriggerScaler.h:25
L1TriggerScaler::Lumi::m_GTTechCounts
std::vector< int > m_GTTechCounts
Definition: L1TriggerScaler.h:44
L1TriggerScaler::printGTAlgoPrescaling
void printGTAlgoPrescaling() const
Definition: L1TriggerScaler.cc:75
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
L1TriggerScaler::printGTPartition0TriggerRates
void printGTPartition0TriggerRates() const
Definition: L1TriggerScaler.cc:119
L1TriggerScaler::printGTTechCounts
void printGTTechCounts() const
Definition: L1TriggerScaler.cc:83
L1TriggerScaler::Lumi::m_GTPartition0DeadTime
std::vector< int > m_GTPartition0DeadTime
Definition: L1TriggerScaler.h:54
L1TriggerScaler::L1TriggerScaler
L1TriggerScaler()
Definition: L1TriggerScaler.cc:2
L1TriggerScaler::printGTTechPrescaling
void printGTTechPrescaling() const
Definition: L1TriggerScaler.cc:101
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1TriggerScaler::Lumi::m_rn
long m_rn
Definition: L1TriggerScaler.h:31
L1TriggerScaler::Lumi::m_GTAlgoPrescaling
std::vector< int > m_GTAlgoPrescaling
Definition: L1TriggerScaler.h:42
L1TriggerScaler::printFormat
void printFormat() const
Definition: L1TriggerScaler.cc:50
L1TriggerScaler::Lumi::m_GTTechRates
std::vector< float > m_GTTechRates
Definition: L1TriggerScaler.h:46
L1TriggerScaler::printLumiSegmentValues
void printLumiSegmentValues() const
Definition: L1TriggerScaler.cc:43
L1TriggerScaler::printAllValues
void printAllValues() const
Definition: L1TriggerScaler.cc:3
L1TriggerScaler::Lumi::m_GTTechPrescaling
std::vector< int > m_GTTechPrescaling
Definition: L1TriggerScaler.h:48
L1TriggerScaler::printGTAlgoCounts
void printGTAlgoCounts() const
Definition: L1TriggerScaler.cc:57
L1TriggerScaler::Lumi::~Lumi
~Lumi()
Definition: L1TriggerScaler.h:24
L1TriggerScaler::printRunValue
void printRunValue() const
Definition: L1TriggerScaler.cc:38
L1TriggerScaler::m_runnumber
int m_runnumber
Definition: L1TriggerScaler.h:89
L1TriggerScaler::printGTPartition0DeadTime
void printGTPartition0DeadTime() const
Definition: L1TriggerScaler.cc:128
L1TriggerScaler
Definition: L1TriggerScaler.h:18
L1TriggerScaler::Lumi::m_string_format
std::string m_string_format
Definition: L1TriggerScaler.h:30
L1TriggerScaler::printGTPartition0TriggerCounts
void printGTPartition0TriggerCounts() const
Definition: L1TriggerScaler.cc:110
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TriggerScaler::m_run
std::vector< Lumi > m_run
Definition: L1TriggerScaler.h:65
L1TriggerScaler::Lumi::m_GTAlgoRates
std::vector< float > m_GTAlgoRates
Definition: L1TriggerScaler.h:40
L1TriggerScaler::Lumi::m_lumisegment
int m_lumisegment
Definition: L1TriggerScaler.h:32
Serializable.h
L1TriggerScaler::printGTAlgoRates
void printGTAlgoRates() const
Definition: L1TriggerScaler.cc:66
L1TriggerScaler::Lumi
Definition: L1TriggerScaler.h:22
L1TriggerScaler::Lumi::m_GTAlgoCounts
std::vector< int > m_GTAlgoCounts
Definition: L1TriggerScaler.h:37
L1TriggerScaler::Lumi::m_GTPartition0TriggerRates
std::vector< float > m_GTPartition0TriggerRates
Definition: L1TriggerScaler.h:52
L1TriggerScaler::LumiIterator
std::vector< Lumi >::const_iterator LumiIterator
Definition: L1TriggerScaler.h:83
L1TriggerScaler::Lumi::Lumi
Lumi()
Definition: L1TriggerScaler.h:23
L1TriggerScaler::Lumi::m_lumi_id
long long m_lumi_id
Definition: L1TriggerScaler.h:26
L1TriggerScaler::printGTPartition0DeadTimeRatio
void printGTPartition0DeadTimeRatio() const
Definition: L1TriggerScaler.cc:137
L1TriggerScaler::Lumi::m_GTPartition0DeadTimeRatio
std::vector< float > m_GTPartition0DeadTimeRatio
Definition: L1TriggerScaler.h:56
L1TriggerScaler::Lumi::m_start_time
std::string m_start_time
Definition: L1TriggerScaler.h:27
L1TriggerScaler::Lumi::m_date
std::string m_date
Definition: L1TriggerScaler.h:35
L1TriggerScaler::printGTTechRates
void printGTTechRates() const
Definition: L1TriggerScaler.cc:92
L1TriggerScaler::~L1TriggerScaler
virtual ~L1TriggerScaler()
Definition: L1TriggerScaler.h:63
L1TriggerScaler::m_lumisegment
int m_lumisegment
Definition: L1TriggerScaler.h:88
L1TriggerScaler::Lumi::m_GTPartition0TriggerCounts
std::vector< int > m_GTPartition0TriggerCounts
Definition: L1TriggerScaler.h:50
L1TriggerScaler::SetRunNumber
void SetRunNumber(int n)
Definition: L1TriggerScaler.h:85