CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/CondFormats/RunInfo/src/RunSummary.cc

Go to the documentation of this file.
00001 #include "CondFormats/RunInfo/interface/RunSummary.h"
00002 RunSummary::RunSummary(){}
00003 
00004 RunSummary * RunSummary::Fake_RunSummary(){
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 }
00013 
00014 
00015 
00016 void RunSummary::printAllValues() const{
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   }
00032 
00033 std::vector<std::string> RunSummary::getSubdtIn() const{
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 }