CMS 3D CMS Logo

RunSummary Class Reference

#include <CondFormats/RunInfo/interface/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< intm_subdt_in


Detailed Description

Definition at line 16 of file RunSummary.h.


Member Enumeration Documentation

enum RunSummary::subdet

Enumerator:
PIXEL 
TRACKER 
ECAL 
HCAL 
DT 
CSC 
RPC 

Definition at line 31 of file RunSummary.h.

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


Constructor & Destructor Documentation

RunSummary::RunSummary (  ) 

Definition at line 2 of file RunSummary.cc.

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

00002 {}

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

Definition at line 34 of file RunSummary.h.

00034 {};


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, RunSummary(), and sum().

Referenced by RunSummaryHandler::getNewObjects().

00004                                         {
00005   RunSummary * sum = new RunSummary();
00006   sum->m_run=-1;
00007   sum->m_hltkey="null";
00008   sum->m_start_time_str="null";
00009   sum->m_stop_time_str="null";
00010   sum->m_name="null";
00011   return sum; 
00012 }

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

Definition at line 33 of file RunSummary.cc.

References i, m_subdt_in, and v.

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

00033                                                  {
00034   std::vector<std::string> v; 
00035   for (size_t i =0; i<m_subdt_in.size(); i++){
00036     if (m_subdt_in[i]==0) {
00037       v.push_back("PIXEL");
00038     }
00039     if (m_subdt_in[i]==1) {
00040       v.push_back("TRACKER");
00041     }
00042     if (m_subdt_in[i]==2) {
00043       v.push_back("ECAL");
00044     }
00045     if (m_subdt_in[i]==3) {
00046       v.push_back("HCAL");
00047     }
00048     
00049     if (m_subdt_in[i]==4) {
00050       v.push_back("DT");
00051     }  
00052     if (m_subdt_in[i]==5) {
00053       v.push_back("CSC");
00054     }   
00055     if (m_subdt_in[i]==6) {
00056       v.push_back("RPC");
00057     }  
00058   }
00059   return v;
00060 }

void RunSummary::printAllValues (  )  const

Definition at line 16 of file RunSummary.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), 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.

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

00016                                      {
00017     std::cout<<"run number: " <<m_run << std::endl;
00018     std::cout<<"run name: " <<m_name << std::endl;
00019     std::cout<<"run start time as timestamp: "<<m_start_time_ll<<std::endl;
00020     std::cout<<"run start time as date: "<<m_start_time_str<<std::endl;
00021     std::cout<<"run stop time as timestamp: "<<m_stop_time_ll<< std::endl;
00022     std::cout<<"run stop time as date: "<<m_stop_time_str<<std::endl;
00023     std::cout<<"lumisection in the run: "<<m_lumisections<<std::endl;
00024     std::cout<<"run hltkey: "<<m_hltkey<<std::endl;
00025     std::cout<<"run number of events according hlt: "<<m_nevents<<std::endl;
00026     std::cout<<"hlt rate: "<<m_rate<<std::endl;
00027     std::cout<<"ids of subdetectors in run: "<<std::endl;
00028 for (size_t i =0; i<m_subdt_in.size(); i++){
00029   std::cout<<"---> "<<m_subdt_in[i]<<std::endl;
00030   }
00031   }


Member Data Documentation

std::string RunSummary::m_hltkey

Definition at line 27 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

int RunSummary::m_lumisections

Definition at line 25 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_name

Definition at line 20 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_nevents

Definition at line 28 of file RunSummary.h.

Referenced by printAllValues().

float RunSummary::m_rate

Definition at line 29 of file RunSummary.h.

Referenced by printAllValues().

int RunSummary::m_run

Definition at line 19 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_start_time_ll

Definition at line 21 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_start_time_str

Definition at line 22 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

long long RunSummary::m_stop_time_ll

Definition at line 23 of file RunSummary.h.

Referenced by printAllValues().

std::string RunSummary::m_stop_time_str

Definition at line 24 of file RunSummary.h.

Referenced by Fake_RunSummary(), and printAllValues().

std::vector<int> RunSummary::m_subdt_in

Definition at line 26 of file RunSummary.h.

Referenced by getSubdtIn(), and printAllValues().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:14 2009 for CMSSW by  doxygen 1.5.4