CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Enumerator
PIXEL 
TRACKER 
ECAL 
HCAL 
DT 
CSC 
RPC 

Definition at line 33 of file RunSummary.h.

Constructor & Destructor Documentation

RunSummary::RunSummary ( )

Definition at line 2 of file RunSummary.cc.

Referenced by Fake_RunSummary().

2 {}
virtual RunSummary::~RunSummary ( )
inlinevirtual

Definition at line 36 of file RunSummary.h.

36 {};

Member Function Documentation

RunSummary * RunSummary::Fake_RunSummary ( )
static

Definition at line 4 of file RunSummary.cc.

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

Referenced by RunSummaryHandler::getNewObjects().

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 }
std::string m_stop_time_str
Definition: RunSummary.h:26
std::string m_hltkey
Definition: RunSummary.h:29
std::string m_name
Definition: RunSummary.h:22
std::string m_start_time_str
Definition: RunSummary.h:24
std::vector< std::string > RunSummary::getSubdtIn ( ) const

Definition at line 33 of file RunSummary.cc.

References i, m_subdt_in, and findQualityFiles::v.

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

Definition at line 16 of file RunSummary.cc.

References gather_cfg::cout, 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.

16  {
17  std::cout<<"run number: " <<m_run << std::endl;
18  std::cout<<"run name: " <<m_name << std::endl;
19  std::cout<<"run start time as timestamp: "<<m_start_time_ll<<std::endl;
20  std::cout<<"run start time as date: "<<m_start_time_str<<std::endl;
21  std::cout<<"run stop time as timestamp: "<<m_stop_time_ll<< std::endl;
22  std::cout<<"run stop time as date: "<<m_stop_time_str<<std::endl;
23  std::cout<<"lumisection in the run: "<<m_lumisections<<std::endl;
24  std::cout<<"run hltkey: "<<m_hltkey<<std::endl;
25  std::cout<<"run number of events according hlt: "<<m_nevents<<std::endl;
26  std::cout<<"hlt rate: "<<m_rate<<std::endl;
27  std::cout<<"ids of subdetectors in run: "<<std::endl;
28 for (size_t i =0; i<m_subdt_in.size(); i++){
29  std::cout<<"---> "<<m_subdt_in[i]<<std::endl;
30  }
31  }
int i
Definition: DBlmapReader.cc:9
float m_rate
Definition: RunSummary.h:31
std::vector< int > m_subdt_in
Definition: RunSummary.h:28
std::string m_stop_time_str
Definition: RunSummary.h:26
long long m_stop_time_ll
Definition: RunSummary.h:25
std::string m_hltkey
Definition: RunSummary.h:29
long long m_nevents
Definition: RunSummary.h:30
int m_lumisections
Definition: RunSummary.h:27
long long m_start_time_ll
Definition: RunSummary.h:23
std::string m_name
Definition: RunSummary.h:22
tuple cout
Definition: gather_cfg.py:145
std::string m_start_time_str
Definition: RunSummary.h:24
template<class Archive >
void RunSummary::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 43 of file RunSummary.h.

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

Definition at line 43 of file RunSummary.h.

Member Data Documentation

std::string RunSummary::m_hltkey

Definition at line 29 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

int RunSummary::m_lumisections

Definition at line 27 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_name

Definition at line 22 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_nevents

Definition at line 30 of file RunSummary.h.

Referenced by printAllValues().

float RunSummary::m_rate

Definition at line 31 of file RunSummary.h.

Referenced by printAllValues().

int RunSummary::m_run

Definition at line 21 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_start_time_ll

Definition at line 23 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_start_time_str

Definition at line 24 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_stop_time_ll

Definition at line 25 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_stop_time_str

Definition at line 26 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

std::vector<int> RunSummary::m_subdt_in

Definition at line 28 of file RunSummary.h.

Referenced by getSubdtIn(), and printAllValues().