CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int m_lumisegment
 
int m_runnumber
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 18 of file L1TriggerScaler.h.

Member Typedef Documentation

◆ LumiIterator

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

Definition at line 83 of file L1TriggerScaler.h.

Constructor & Destructor Documentation

◆ L1TriggerScaler()

L1TriggerScaler::L1TriggerScaler ( )

Definition at line 2 of file L1TriggerScaler.cc.

2 { m_run.reserve(10000); }

References m_run.

◆ ~L1TriggerScaler()

virtual L1TriggerScaler::~L1TriggerScaler ( )
inlinevirtual

Definition at line 63 of file L1TriggerScaler.h.

63 {}

Member Function Documentation

◆ printAllValues()

void L1TriggerScaler::printAllValues ( ) const

Definition at line 3 of file L1TriggerScaler.cc.

3  {
4  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
5  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment
6  << "\n start_time: " << it->m_start_time << std::endl;
7 
8  for (size_t i = 0; i < it->m_GTAlgoRates.size(); i++) {
9  std::cout << "m_GTAlgoRates[" << i << "] = " << it->m_GTAlgoRates[i] << std::endl;
10  }
11  for (size_t i = 0; i < it->m_GTAlgoPrescaling.size(); i++) {
12  std::cout << "m_GTAlgoPrescaling[" << i << "] = " << it->m_GTAlgoPrescaling[i] << std::endl;
13  }
14  for (size_t i = 0; i < it->m_GTTechCounts.size(); i++) {
15  std::cout << " m_GTTechCounts[" << i << "] = " << it->m_GTTechCounts[i] << std::endl;
16  }
17  for (size_t i = 0; i < it->m_GTTechRates.size(); i++) {
18  std::cout << " m_GTTechRates[" << i << "] = " << it->m_GTTechRates[i] << std::endl;
19  }
20  for (size_t i = 0; i < it->m_GTTechPrescaling.size(); i++) {
21  std::cout << " m_GTTechPrescaling[" << i << "] = " << it->m_GTTechPrescaling[i] << std::endl;
22  }
23  for (size_t i = 0; i < it->m_GTPartition0TriggerCounts.size(); i++) {
24  std::cout << " m_GTPartition0TriggerCounts[" << i << "] = " << it->m_GTPartition0TriggerCounts[i] << std::endl;
25  }
26  for (size_t i = 0; i < it->m_GTPartition0TriggerRates.size(); i++) {
27  std::cout << " m_GTPartition0TriggerRates[" << i << "] = " << it->m_GTPartition0TriggerRates[i] << std::endl;
28  }
29  for (size_t i = 0; i < it->m_GTPartition0DeadTime.size(); i++) {
30  std::cout << " m_GTPartition0DeadTime[" << i << "] = " << it->m_GTPartition0DeadTime[i] << std::endl;
31  }
32  for (size_t i = 0; i < it->m_GTPartition0DeadTimeRatio.size(); i++) {
33  std::cout << " m_GTPartition0DeadTimeRatio[" << i << "] = " << it->m_GTPartition0DeadTimeRatio[i] << std::endl;
34  }
35  }
36 }

References gather_cfg::cout, mps_fire::i, and m_run.

◆ printFormat()

void L1TriggerScaler::printFormat ( ) const

Definition at line 50 of file L1TriggerScaler.cc.

50  {
51  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
52  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment << std::endl;
53  std::cout << "format :" << it->m_string_format << std::endl;
54  }
55 }

References gather_cfg::cout, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTAlgoCounts()

void L1TriggerScaler::printGTAlgoCounts ( ) const

Definition at line 57 of file L1TriggerScaler.cc.

57  {
58  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
59  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment << std::endl;
60  for (size_t i = 0; i < it->m_GTAlgoCounts.size(); i++) {
61  std::cout << "m_GTAlgoCounts[" << i << "] = " << it->m_GTAlgoCounts[i] << std::endl;
62  }
63  }
64 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTAlgoPrescaling()

void L1TriggerScaler::printGTAlgoPrescaling ( ) const

Definition at line 75 of file L1TriggerScaler.cc.

75  {
76  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
77  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment << std::endl;
78  for (size_t i = 0; i < it->m_GTAlgoPrescaling.size(); i++) {
79  std::cout << "m_GTAlgoPrescaling[" << i << "] = " << it->m_GTAlgoPrescaling[i] << std::endl;
80  }
81  }
82 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTAlgoRates()

void L1TriggerScaler::printGTAlgoRates ( ) const

Definition at line 66 of file L1TriggerScaler.cc.

66  {
67  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
68  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment << std::endl;
69  for (size_t i = 0; i < it->m_GTAlgoRates.size(); i++) {
70  std::cout << "m_GTAlgoRates[" << i << "] = " << it->m_GTAlgoRates[i] << std::endl;
71  }
72  }
73 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTPartition0DeadTime()

void L1TriggerScaler::printGTPartition0DeadTime ( ) const

Definition at line 128 of file L1TriggerScaler.cc.

128  {
129  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
130  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
131  for (size_t i = 0; i < it->m_GTPartition0DeadTime.size(); i++) {
132  std::cout << "m_GTPartition0DeadTime[" << i << "] = " << it->m_GTPartition0DeadTime[i] << std::endl;
133  }
134  }
135 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTPartition0DeadTimeRatio()

void L1TriggerScaler::printGTPartition0DeadTimeRatio ( ) const

Definition at line 137 of file L1TriggerScaler.cc.

137  {
138  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
139  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
140  for (size_t i = 0; i < it->m_GTPartition0DeadTimeRatio.size(); i++) {
141  std::cout << "m_GTPartition0DeadTimeRatio[" << i << "] = " << it->m_GTPartition0DeadTimeRatio[i] << std::endl;
142  }
143  }
144 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTPartition0TriggerCounts()

void L1TriggerScaler::printGTPartition0TriggerCounts ( ) const

Definition at line 110 of file L1TriggerScaler.cc.

110  {
111  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
112  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
113  for (size_t i = 0; i < it->m_GTPartition0TriggerCounts.size(); i++) {
114  std::cout << "m_GTPartition0TriggerCounts[" << i << "] = " << it->m_GTPartition0TriggerCounts[i] << std::endl;
115  }
116  }
117 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTPartition0TriggerRates()

void L1TriggerScaler::printGTPartition0TriggerRates ( ) const

Definition at line 119 of file L1TriggerScaler.cc.

119  {
120  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
121  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
122  for (size_t i = 0; i < it->m_GTPartition0TriggerRates.size(); i++) {
123  std::cout << "m_GTPartition0TriggerRates[" << i << "] = " << it->m_GTPartition0TriggerRates[i] << std::endl;
124  }
125  }
126 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTTechCounts()

void L1TriggerScaler::printGTTechCounts ( ) const

Definition at line 83 of file L1TriggerScaler.cc.

83  {
84  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
85  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
86  for (size_t i = 0; i < it->m_GTTechCounts.size(); i++) {
87  std::cout << "m_GTTechCounts[" << i << "] = " << it->m_GTTechCounts[i] << std::endl;
88  }
89  }
90 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTTechPrescaling()

void L1TriggerScaler::printGTTechPrescaling ( ) const

Definition at line 101 of file L1TriggerScaler.cc.

101  {
102  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
103  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
104  for (size_t i = 0; i < it->m_GTTechPrescaling.size(); i++) {
105  std::cout << "m_GTTechPrescaling[" << i << "] = " << it->m_GTTechPrescaling[i] << std::endl;
106  }
107  }
108 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printGTTechRates()

void L1TriggerScaler::printGTTechRates ( ) const

Definition at line 92 of file L1TriggerScaler.cc.

92  {
93  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
94  std::cout << " run: " << it->m_rn << "\nlumisegment: " << it->m_lumisegment << std::endl;
95  for (size_t i = 0; i < it->m_GTTechRates.size(); i++) {
96  std::cout << "m_GTTechRates[" << i << "] = " << it->m_GTTechRates[i] << std::endl;
97  }
98  }
99 }

References gather_cfg::cout, mps_fire::i, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printLumiSegmentValues()

void L1TriggerScaler::printLumiSegmentValues ( ) const

Definition at line 43 of file L1TriggerScaler.cc.

43  {
44  for (LumiIterator it = m_run.begin(); it != m_run.end(); ++it) {
45  std::cout << " run: " << it->m_rn << "\n lumisegment: " << it->m_lumisegment
46  << "\n start_time: " << it->m_start_time << std::endl;
47  }
48 }

References gather_cfg::cout, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ printRunValue()

void L1TriggerScaler::printRunValue ( ) const

Definition at line 38 of file L1TriggerScaler.cc.

38  {
39  LumiIterator it = m_run.begin();
40  std::cout << it->m_rn << std::endl;
41 }

References gather_cfg::cout, and m_run.

Referenced by edmtest::L1TriggerScalerESAnalyzer::analyze().

◆ serialize()

template<class Archive >
void L1TriggerScaler::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ SetRunNumber()

void L1TriggerScaler::SetRunNumber ( int  n)
inline

Definition at line 85 of file L1TriggerScaler.h.

85 { m_runnumber = n; }

References m_runnumber, and dqmiodumpmetadata::n.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 93 of file L1TriggerScaler.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 93 of file L1TriggerScaler.h.

Member Data Documentation

◆ m_lumisegment

int L1TriggerScaler::m_lumisegment
private

Definition at line 88 of file L1TriggerScaler.h.

◆ m_run

std::vector<Lumi> L1TriggerScaler::m_run

◆ m_runnumber

int L1TriggerScaler::m_runnumber
private

Definition at line 89 of file L1TriggerScaler.h.

Referenced by SetRunNumber().

mps_fire.i
i
Definition: mps_fire.py:355
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1TriggerScaler::m_runnumber
int m_runnumber
Definition: L1TriggerScaler.h:89
L1TriggerScaler::m_run
std::vector< Lumi > m_run
Definition: L1TriggerScaler.h:65
L1TriggerScaler::LumiIterator
std::vector< Lumi >::const_iterator LumiIterator
Definition: L1TriggerScaler.h:83