CMS 3D CMS Logo

Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

RunSummary Class Reference

#include <RunSummary.h>

List of all members.

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

Detailed Description

Definition at line 16 of file RunSummary.h.


Member Enumeration Documentation

Enumerator:
PIXEL 
TRACKER 
ECAL 
HCAL 
DT 
CSC 
RPC 

Definition at line 31 of file RunSummary.h.


Constructor & Destructor Documentation

RunSummary::RunSummary ( )

Definition at line 2 of file RunSummary.cc.

Referenced by Fake_RunSummary().

{}
virtual RunSummary::~RunSummary ( ) [inline, virtual]

Definition at line 34 of file RunSummary.h.

{};

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

                                        {
  RunSummary * sum = new RunSummary();
  sum->m_run=-1;
  sum->m_hltkey="null";
  sum->m_start_time_str="null";
  sum->m_stop_time_str="null";
  sum->m_name="null";
  return sum; 
}
std::vector< std::string > RunSummary::getSubdtIn ( ) const

Definition at line 33 of file RunSummary.cc.

References i, m_subdt_in, and v.

                                                 {
  std::vector<std::string> v; 
  for (size_t i =0; i<m_subdt_in.size(); i++){
    if (m_subdt_in[i]==0) {
      v.push_back("PIXEL");
    }
    if (m_subdt_in[i]==1) {
      v.push_back("TRACKER");
    }
    if (m_subdt_in[i]==2) {
      v.push_back("ECAL");
    }
    if (m_subdt_in[i]==3) {
      v.push_back("HCAL");
    }
    
    if (m_subdt_in[i]==4) {
      v.push_back("DT");
    }  
    if (m_subdt_in[i]==5) {
      v.push_back("CSC");
    }   
    if (m_subdt_in[i]==6) {
      v.push_back("RPC");
    }  
  }
  return v;
}
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.

                                     {
    std::cout<<"run number: " <<m_run << std::endl;
    std::cout<<"run name: " <<m_name << std::endl;
    std::cout<<"run start time as timestamp: "<<m_start_time_ll<<std::endl;
    std::cout<<"run start time as date: "<<m_start_time_str<<std::endl;
    std::cout<<"run stop time as timestamp: "<<m_stop_time_ll<< std::endl;
    std::cout<<"run stop time as date: "<<m_stop_time_str<<std::endl;
    std::cout<<"lumisection in the run: "<<m_lumisections<<std::endl;
    std::cout<<"run hltkey: "<<m_hltkey<<std::endl;
    std::cout<<"run number of events according hlt: "<<m_nevents<<std::endl;
    std::cout<<"hlt rate: "<<m_rate<<std::endl;
    std::cout<<"ids of subdetectors in run: "<<std::endl;
for (size_t i =0; i<m_subdt_in.size(); i++){
  std::cout<<"---> "<<m_subdt_in[i]<<std::endl;
  }
  }

Member Data Documentation

std::string RunSummary::m_hltkey

Definition at line 27 of file RunSummary.h.

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

Definition at line 25 of file RunSummary.h.

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

std::string RunSummary::m_name

Definition at line 20 of file RunSummary.h.

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

Definition at line 28 of file RunSummary.h.

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

Definition at line 29 of file RunSummary.h.

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

Definition at line 19 of file RunSummary.h.

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

Definition at line 21 of file RunSummary.h.

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

Definition at line 22 of file RunSummary.h.

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

Definition at line 23 of file RunSummary.h.

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

Definition at line 24 of file RunSummary.h.

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

std::vector<int> RunSummary::m_subdt_in

Definition at line 26 of file RunSummary.h.

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