CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Friends
RunSummary Class Reference

#include <RunSummary.h>

Public Types

enum  subdet {
  PIXEL, TRACKER, ECAL, HCAL,
  DT, CSC, RPC
}
 

Public Member Functions

std::vector< std::string > getSubdtIn () const
 
void printAllValues () const
 
 RunSummary ()
 
virtual ~RunSummary ()
 

Static Public Member Functions

static RunSummaryFake_RunSummary ()
 

Public Attributes

std::string m_hltkey
 
int m_lumisections
 
std::string m_name
 
long long m_nevents
 
float m_rate
 
int m_run
 
long long m_start_time_ll
 
std::string m_start_time_str
 
long long m_stop_time_ll
 
std::string m_stop_time_str
 
std::vector< int > m_subdt_in
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 18 of file RunSummary.h.

Member Enumeration Documentation

◆ subdet

Enumerator
PIXEL 
TRACKER 
ECAL 
HCAL 
DT 
CSC 
RPC 

Definition at line 32 of file RunSummary.h.

32 { PIXEL, TRACKER, ECAL, HCAL, DT, CSC, RPC };

Constructor & Destructor Documentation

◆ RunSummary()

RunSummary::RunSummary ( )

Definition at line 2 of file RunSummary.cc.

2 {}

Referenced by Fake_RunSummary().

◆ ~RunSummary()

virtual RunSummary::~RunSummary ( )
inlinevirtual

Definition at line 35 of file RunSummary.h.

35 {};

Member Function Documentation

◆ Fake_RunSummary()

RunSummary * RunSummary::Fake_RunSummary ( )
static

Definition at line 4 of file RunSummary.cc.

4  {
5  RunSummary* sum = new RunSummary();
6  sum->m_run = -1;
7  sum->m_hltkey = "null";
8  sum->m_start_time_str = "null";
9  sum->m_stop_time_str = "null";
10  sum->m_name = "null";
11  return sum;
12 }

References m_hltkey, m_name, m_run, m_start_time_str, m_stop_time_str, and RunSummary().

◆ getSubdtIn()

std::vector< std::string > RunSummary::getSubdtIn ( ) const

Definition at line 31 of file RunSummary.cc.

31  {
32  std::vector<std::string> v;
33  for (size_t i = 0; i < m_subdt_in.size(); i++) {
34  if (m_subdt_in[i] == 0) {
35  v.push_back("PIXEL");
36  }
37  if (m_subdt_in[i] == 1) {
38  v.push_back("TRACKER");
39  }
40  if (m_subdt_in[i] == 2) {
41  v.push_back("ECAL");
42  }
43  if (m_subdt_in[i] == 3) {
44  v.push_back("HCAL");
45  }
46 
47  if (m_subdt_in[i] == 4) {
48  v.push_back("DT");
49  }
50  if (m_subdt_in[i] == 5) {
51  v.push_back("CSC");
52  }
53  if (m_subdt_in[i] == 6) {
54  v.push_back("RPC");
55  }
56  }
57  return v;
58 }

References mps_fire::i, m_subdt_in, and findQualityFiles::v.

◆ printAllValues()

void RunSummary::printAllValues ( ) const

Definition at line 14 of file RunSummary.cc.

14  {
15  std::cout << "run number: " << m_run << std::endl;
16  std::cout << "run name: " << m_name << std::endl;
17  std::cout << "run start time as timestamp: " << m_start_time_ll << std::endl;
18  std::cout << "run start time as date: " << m_start_time_str << std::endl;
19  std::cout << "run stop time as timestamp: " << m_stop_time_ll << std::endl;
20  std::cout << "run stop time as date: " << m_stop_time_str << std::endl;
21  std::cout << "lumisection in the run: " << m_lumisections << std::endl;
22  std::cout << "run hltkey: " << m_hltkey << std::endl;
23  std::cout << "run number of events according hlt: " << m_nevents << std::endl;
24  std::cout << "hlt rate: " << m_rate << std::endl;
25  std::cout << "ids of subdetectors in run: " << std::endl;
26  for (size_t i = 0; i < m_subdt_in.size(); i++) {
27  std::cout << "---> " << m_subdt_in[i] << std::endl;
28  }
29 }

References gather_cfg::cout, mps_fire::i, m_hltkey, m_lumisections, m_name, m_nevents, m_rate, m_run, m_start_time_ll, m_start_time_str, m_stop_time_ll, m_stop_time_str, and m_subdt_in.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 41 of file RunSummary.h.

◆ cond::serialization::access

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

Definition at line 41 of file RunSummary.h.

Member Data Documentation

◆ m_hltkey

std::string RunSummary::m_hltkey

Definition at line 28 of file RunSummary.h.

Referenced by Fake_RunSummary(), printAllValues(), and RunSummaryRead::readData().

◆ m_lumisections

int RunSummary::m_lumisections

Definition at line 26 of file RunSummary.h.

Referenced by printAllValues(), and RunSummaryRead::readData().

◆ m_name

std::string RunSummary::m_name

Definition at line 21 of file RunSummary.h.

Referenced by Fake_RunSummary(), printAllValues(), and RunSummaryRead::readData().

◆ m_nevents

long long RunSummary::m_nevents

Definition at line 29 of file RunSummary.h.

Referenced by printAllValues(), and RunSummaryRead::readData().

◆ m_rate

float RunSummary::m_rate

Definition at line 30 of file RunSummary.h.

Referenced by printAllValues(), and RunSummaryRead::readData().

◆ m_run

int RunSummary::m_run

Definition at line 20 of file RunSummary.h.

Referenced by Fake_RunSummary(), printAllValues(), and RunSummaryRead::readData().

◆ m_start_time_ll

long long RunSummary::m_start_time_ll

Definition at line 22 of file RunSummary.h.

Referenced by printAllValues(), and RunSummaryRead::readData().

◆ m_start_time_str

std::string RunSummary::m_start_time_str

Definition at line 23 of file RunSummary.h.

Referenced by Fake_RunSummary(), printAllValues(), and RunSummaryRead::readData().

◆ m_stop_time_ll

long long RunSummary::m_stop_time_ll

Definition at line 24 of file RunSummary.h.

Referenced by printAllValues(), and RunSummaryRead::readData().

◆ m_stop_time_str

std::string RunSummary::m_stop_time_str

Definition at line 25 of file RunSummary.h.

Referenced by Fake_RunSummary(), printAllValues(), and RunSummaryRead::readData().

◆ m_subdt_in

std::vector<int> RunSummary::m_subdt_in

Definition at line 27 of file RunSummary.h.

Referenced by getSubdtIn(), printAllValues(), and RunSummaryRead::readData().

RunSummary::DT
Definition: RunSummary.h:32
RunSummary::TRACKER
Definition: RunSummary.h:32
mps_fire.i
i
Definition: mps_fire.py:428
RunSummary
Definition: RunSummary.h:18
RunSummary::HCAL
Definition: RunSummary.h:32
RunSummary::ECAL
Definition: RunSummary.h:32
gather_cfg.cout
cout
Definition: gather_cfg.py:144
findQualityFiles.v
v
Definition: findQualityFiles.py:179
RunSummary::m_hltkey
std::string m_hltkey
Definition: RunSummary.h:28
RunSummary::RPC
Definition: RunSummary.h:32
RunSummary::m_stop_time_str
std::string m_stop_time_str
Definition: RunSummary.h:25
RunSummary::m_stop_time_ll
long long m_stop_time_ll
Definition: RunSummary.h:24
RunSummary::m_run
int m_run
Definition: RunSummary.h:20
RunSummary::CSC
Definition: RunSummary.h:32
RunSummary::m_name
std::string m_name
Definition: RunSummary.h:21
RunSummary::m_lumisections
int m_lumisections
Definition: RunSummary.h:26
RunSummary::m_nevents
long long m_nevents
Definition: RunSummary.h:29
RunSummary::PIXEL
Definition: RunSummary.h:32
RunSummary::m_subdt_in
std::vector< int > m_subdt_in
Definition: RunSummary.h:27
RunSummary::m_start_time_str
std::string m_start_time_str
Definition: RunSummary.h:23
RunSummary::m_rate
float m_rate
Definition: RunSummary.h:30
RunSummary::RunSummary
RunSummary()
Definition: RunSummary.cc:2
RunSummary::m_start_time_ll
long long m_start_time_ll
Definition: RunSummary.h:22