CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CondFormats/RunInfo/src/L1TriggerScaler.cc

Go to the documentation of this file.
00001 #include "CondFormats/RunInfo/interface/L1TriggerScaler.h"
00002 L1TriggerScaler::L1TriggerScaler(){
00003    m_run.reserve(10000); 
00004   
00005  }
00006 void L1TriggerScaler::printAllValues() const{
00007   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00008     std::cout << "  run:  " <<it->m_rn<<
00009       "\n lumisegment: "  << it->m_lumisegment<<
00010       "\n start_time: "  << it->m_start_time <<std::endl;    
00011 
00012     for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){ 
00013       std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;  
00014     }
00015     for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){ 
00016       std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;  
00017     } 
00018     for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){ 
00019       std::cout << " m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;  
00020     } 
00021     for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){ 
00022       std::cout << " m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;  
00023     } 
00024     for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){ 
00025       std::cout << " m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;  
00026     } 
00027     for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){ 
00028       std::cout << " m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;  
00029     } 
00030     for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){ 
00031       std::cout << " m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;  
00032     } 
00033     for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){ 
00034       std::cout << " m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;  
00035     }
00036     for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){ 
00037       std::cout << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;  
00038     } 
00039   }
00040 } 
00041 
00042 void L1TriggerScaler::printRunValue() const{
00043   LumiIterator it=m_run.begin();
00044   std::cout<<it->m_rn<<std::endl;
00045 }
00046 
00047 void  L1TriggerScaler::printLumiSegmentValues() const{
00048   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00049     std::cout << "  run:  " <<it->m_rn<<
00050       "\n lumisegment: "  << it->m_lumisegment<<
00051     "\n start_time: "  << it->m_start_time <<std::endl;   
00052  }
00053 }
00054 
00055 void L1TriggerScaler::printFormat() const{
00056   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00057     std::cout << "  run:  " <<it->m_rn<<
00058       "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
00059     std::cout<< "format :" << it->m_string_format <<std::endl;
00060   } 
00061 }
00062 
00063 void  L1TriggerScaler::printGTAlgoCounts() const{
00064   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00065     std::cout << "  run:  " <<it->m_rn<<
00066       "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
00067     for(size_t i=0; i<it->m_GTAlgoCounts.size(); i++ ){ 
00068       std::cout << "m_GTAlgoCounts["<<i<<"] = "<< it->m_GTAlgoCounts[i]<<std::endl;  
00069     }
00070   }
00071 }
00072 
00073 void  L1TriggerScaler::printGTAlgoRates() const{
00074   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00075     std::cout << "  run:  " <<it->m_rn<<
00076       "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
00077     for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){ 
00078       std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;  
00079     }
00080   }
00081 }
00082 
00083 void  L1TriggerScaler::printGTAlgoPrescaling() const{
00084   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00085     std::cout << "  run:  " <<it->m_rn<<
00086       "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
00087     for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){ 
00088       std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;  
00089     }
00090   }
00091 }
00092 void  L1TriggerScaler::printGTTechCounts() const{
00093   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00094     std::cout << "  run:  " <<it->m_rn<<
00095       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00096     for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){ 
00097       std::cout << "m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;  
00098     }
00099   }
00100 }
00101 
00102 void  L1TriggerScaler::printGTTechRates() const{
00103   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00104     std::cout << "  run:  " <<it->m_rn<<
00105       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00106     for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){ 
00107       std::cout << "m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;  
00108     }
00109   }
00110 }
00111 
00112 void  L1TriggerScaler::printGTTechPrescaling() const{
00113   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00114     std::cout << "  run:  " <<it->m_rn<<
00115       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00116     for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){ 
00117       std::cout << "m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;  
00118     }
00119   }
00120 }
00121 
00122 void  L1TriggerScaler::printGTPartition0TriggerCounts() const{
00123   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00124     std::cout << "  run:  " <<it->m_rn<<
00125       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00126     for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){ 
00127       std::cout << "m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;  
00128     }
00129   }
00130 }
00131 
00132 void  L1TriggerScaler::printGTPartition0TriggerRates() const{
00133   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00134     std::cout << "  run:  " <<it->m_rn<<
00135       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00136     for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){ 
00137       std::cout << "m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;  
00138     }
00139   }
00140 }
00141  
00142 void  L1TriggerScaler::printGTPartition0DeadTime() const{
00143   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00144     std::cout << "  run:  " <<it->m_rn<<
00145       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00146     for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){ 
00147       std::cout << "m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;  
00148     }
00149   }
00150 }
00151 
00152 void  L1TriggerScaler::printGTPartition0DeadTimeRatio() const{
00153   for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
00154     std::cout << "  run:  " <<it->m_rn<<
00155       "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
00156     for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){ 
00157       std::cout << "m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;  
00158     }
00159   }
00160 }