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.

References m_run.

2 { m_run.reserve(10000); }
std::vector< Lumi > 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.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printFormat()

void L1TriggerScaler::printFormat ( ) const

Definition at line 50 of file L1TriggerScaler.cc.

References gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTAlgoCounts()

void L1TriggerScaler::printGTAlgoCounts ( ) const

Definition at line 57 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTAlgoPrescaling()

void L1TriggerScaler::printGTAlgoPrescaling ( ) const

Definition at line 75 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTAlgoRates()

void L1TriggerScaler::printGTAlgoRates ( ) const

Definition at line 66 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTPartition0DeadTime()

void L1TriggerScaler::printGTPartition0DeadTime ( ) const

Definition at line 128 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTPartition0DeadTimeRatio()

void L1TriggerScaler::printGTPartition0DeadTimeRatio ( ) const

Definition at line 137 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTPartition0TriggerCounts()

void L1TriggerScaler::printGTPartition0TriggerCounts ( ) const

Definition at line 110 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTPartition0TriggerRates()

void L1TriggerScaler::printGTPartition0TriggerRates ( ) const

Definition at line 119 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTTechCounts()

void L1TriggerScaler::printGTTechCounts ( ) const

Definition at line 83 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTTechPrescaling()

void L1TriggerScaler::printGTTechPrescaling ( ) const

Definition at line 101 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printGTTechRates()

void L1TriggerScaler::printGTTechRates ( ) const

Definition at line 92 of file L1TriggerScaler.cc.

References gather_cfg::cout, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printLumiSegmentValues()

void L1TriggerScaler::printLumiSegmentValues ( ) const

Definition at line 43 of file L1TriggerScaler.cc.

References gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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 }
std::vector< Lumi > m_run
std::vector< Lumi >::const_iterator LumiIterator

◆ printRunValue()

void L1TriggerScaler::printRunValue ( ) const

Definition at line 38 of file L1TriggerScaler.cc.

References gather_cfg::cout, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_run.

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

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

◆ 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.

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().