test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunSummary.cc
Go to the documentation of this file.
3 
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 }
13 
14 
15 
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  }
32 
33 std::vector<std::string> RunSummary::getSubdtIn() const{
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
float m_rate
Definition: RunSummary.h:31
static RunSummary * Fake_RunSummary()
Definition: RunSummary.cc:4
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
void printAllValues() const
Definition: RunSummary.cc:16
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
std::vector< std::string > getSubdtIn() const
Definition: RunSummary.cc:33