CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes
L1TriggerScaler Class Reference

#include <L1TriggerScaler.h>

Classes

struct  Lumi
 

Public Types

typedef std::vector< Lumi >
::const_iterator 
LumiIterator
 

Public Member Functions

 L1TriggerScaler ()
 
void printAllValues () const
 
void printFormat () const
 
void printGTAlgoCounts () const
 
void printGTAlgoPrescaling () const
 
void printGTAlgoRates () const
 
void printGTPartition0DeadTime () const
 
void printGTPartition0DeadTimeRatio () const
 
void printGTPartition0TriggerCounts () const
 
void printGTPartition0TriggerRates () const
 
void printGTTechCounts () const
 
void printGTTechPrescaling () const
 
void printGTTechRates () const
 
void printLumiSegmentValues () const
 
void printRunValue () const
 
void SetRunNumber (int n)
 
virtual ~L1TriggerScaler ()
 

Public Attributes

std::vector< Lumim_run
 

Private Attributes

int m_lumisegment
 
int m_runnumber
 

Detailed Description

Definition at line 17 of file L1TriggerScaler.h.

Member Typedef Documentation

typedef std::vector<Lumi>::const_iterator L1TriggerScaler::LumiIterator

Definition at line 85 of file L1TriggerScaler.h.

Constructor & Destructor Documentation

L1TriggerScaler::L1TriggerScaler ( )

Definition at line 2 of file L1TriggerScaler.cc.

References m_run.

2  {
3  m_run.reserve(10000);
4 
5  }
std::vector< Lumi > m_run
virtual L1TriggerScaler::~L1TriggerScaler ( )
inlinevirtual

Definition at line 64 of file L1TriggerScaler.h.

64 {}

Member Function Documentation

void L1TriggerScaler::printAllValues ( ) const

Definition at line 6 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

6  {
7  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
8  std::cout << " run: " <<it->m_rn<<
9  "\n lumisegment: " << it->m_lumisegment<<
10  "\n start_time: " << it->m_start_time <<std::endl;
11 
12  for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){
13  std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;
14  }
15  for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){
16  std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;
17  }
18  for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){
19  std::cout << " m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;
20  }
21  for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){
22  std::cout << " m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;
23  }
24  for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){
25  std::cout << " m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;
26  }
27  for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){
28  std::cout << " m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;
29  }
30  for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){
31  std::cout << " m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;
32  }
33  for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){
34  std::cout << " m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;
35  }
36  for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){
37  std::cout << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;
38  }
39  }
40 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printFormat ( ) const

Definition at line 55 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

55  {
56  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
57  std::cout << " run: " <<it->m_rn<<
58  "\n lumisegment: " << it->m_lumisegment<<std::endl;
59  std::cout<< "format :" << it->m_string_format <<std::endl;
60  }
61 }
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTAlgoCounts ( ) const

Definition at line 63 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

63  {
64  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
65  std::cout << " run: " <<it->m_rn<<
66  "\n lumisegment: " << it->m_lumisegment<<std::endl;
67  for(size_t i=0; i<it->m_GTAlgoCounts.size(); i++ ){
68  std::cout << "m_GTAlgoCounts["<<i<<"] = "<< it->m_GTAlgoCounts[i]<<std::endl;
69  }
70  }
71 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTAlgoPrescaling ( ) const

Definition at line 83 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

83  {
84  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
85  std::cout << " run: " <<it->m_rn<<
86  "\n lumisegment: " << it->m_lumisegment<<std::endl;
87  for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){
88  std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;
89  }
90  }
91 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTAlgoRates ( ) const

Definition at line 73 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

73  {
74  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
75  std::cout << " run: " <<it->m_rn<<
76  "\n lumisegment: " << it->m_lumisegment<<std::endl;
77  for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){
78  std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;
79  }
80  }
81 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTPartition0DeadTime ( ) const

Definition at line 142 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

142  {
143  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
144  std::cout << " run: " <<it->m_rn<<
145  "\nlumisegment: " << it->m_lumisegment<<std::endl;
146  for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){
147  std::cout << "m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;
148  }
149  }
150 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTPartition0DeadTimeRatio ( ) const

Definition at line 152 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

152  {
153  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
154  std::cout << " run: " <<it->m_rn<<
155  "\nlumisegment: " << it->m_lumisegment<<std::endl;
156  for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){
157  std::cout << "m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;
158  }
159  }
160 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTPartition0TriggerCounts ( ) const

Definition at line 122 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

122  {
123  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
124  std::cout << " run: " <<it->m_rn<<
125  "\nlumisegment: " << it->m_lumisegment<<std::endl;
126  for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){
127  std::cout << "m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;
128  }
129  }
130 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTPartition0TriggerRates ( ) const

Definition at line 132 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

132  {
133  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
134  std::cout << " run: " <<it->m_rn<<
135  "\nlumisegment: " << it->m_lumisegment<<std::endl;
136  for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){
137  std::cout << "m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;
138  }
139  }
140 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTTechCounts ( ) const

Definition at line 92 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

92  {
93  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
94  std::cout << " run: " <<it->m_rn<<
95  "\nlumisegment: " << it->m_lumisegment<<std::endl;
96  for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){
97  std::cout << "m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;
98  }
99  }
100 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTTechPrescaling ( ) const

Definition at line 112 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

112  {
113  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
114  std::cout << " run: " <<it->m_rn<<
115  "\nlumisegment: " << it->m_lumisegment<<std::endl;
116  for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){
117  std::cout << "m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;
118  }
119  }
120 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printGTTechRates ( ) const

Definition at line 102 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

102  {
103  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
104  std::cout << " run: " <<it->m_rn<<
105  "\nlumisegment: " << it->m_lumisegment<<std::endl;
106  for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){
107  std::cout << "m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;
108  }
109  }
110 }
int i
Definition: DBlmapReader.cc:9
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printLumiSegmentValues ( ) const

Definition at line 47 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

47  {
48  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
49  std::cout << " run: " <<it->m_rn<<
50  "\n lumisegment: " << it->m_lumisegment<<
51  "\n start_time: " << it->m_start_time <<std::endl;
52  }
53 }
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::printRunValue ( ) const

Definition at line 42 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

42  {
43  LumiIterator it=m_run.begin();
44  std::cout<<it->m_rn<<std::endl;
45 }
std::vector< Lumi > m_run
tuple cout
Definition: gather_cfg.py:121
std::vector< Lumi >::const_iterator LumiIterator
void L1TriggerScaler::SetRunNumber ( int  n)
inline

Definition at line 95 of file L1TriggerScaler.h.

References m_runnumber, and n.

95  {
96  m_runnumber= n;
97  }

Member Data Documentation

int L1TriggerScaler::m_lumisegment
private

Definition at line 101 of file L1TriggerScaler.h.

std::vector<Lumi> L1TriggerScaler::m_run
int L1TriggerScaler::m_runnumber
private

Definition at line 102 of file L1TriggerScaler.h.

Referenced by SetRunNumber().