CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes

L1TriggerScaler Class Reference

#include <L1TriggerScaler.h>

List of all members.

Classes

struct  Lumi

Public Types

typedef std::vector< Lumi >
::const_iterator 
LumiIterator

Public Member Functions

 L1TriggerScaler ()
void printAllValues () const
void printFormat () const
void printGTAlgoCounts () const
void printGTAlgoPrescaling () const
void printGTAlgoRates () const
void printGTPartition0DeadTime () const
void printGTPartition0DeadTimeRatio () const
void printGTPartition0TriggerCounts () const
void printGTPartition0TriggerRates () const
void printGTTechCounts () const
void printGTTechPrescaling () const
void printGTTechRates () const
void printLumiSegmentValues () const
void printRunValue () const
void SetRunNumber (int n)
virtual ~L1TriggerScaler ()

Public Attributes

std::vector< Lumim_run

Private Attributes

int m_lumisegment
int m_runnumber

Detailed Description

Definition at line 17 of file L1TriggerScaler.h.


Member Typedef Documentation

typedef std::vector<Lumi>::const_iterator L1TriggerScaler::LumiIterator

Definition at line 85 of file L1TriggerScaler.h.


Constructor & Destructor Documentation

L1TriggerScaler::L1TriggerScaler ( )

Definition at line 2 of file L1TriggerScaler.cc.

References m_run.

                                {
   m_run.reserve(10000); 
  
 }
virtual L1TriggerScaler::~L1TriggerScaler ( ) [inline, virtual]

Definition at line 64 of file L1TriggerScaler.h.

{}

Member Function Documentation

void L1TriggerScaler::printAllValues ( ) const

Definition at line 6 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                          {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<
      "\n start_time: "  << it->m_start_time <<std::endl;    

    for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){ 
      std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;  
    }
    for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){ 
      std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){ 
      std::cout << " m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){ 
      std::cout << " m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){ 
      std::cout << " m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){ 
      std::cout << " m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){ 
      std::cout << " m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;  
    } 
    for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){ 
      std::cout << " m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;  
    }
    for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){ 
      std::cout << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;  
    } 
  }
} 
void L1TriggerScaler::printFormat ( ) const

Definition at line 55 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

                                       {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
    std::cout<< "format :" << it->m_string_format <<std::endl;
  } 
}
void L1TriggerScaler::printGTAlgoCounts ( ) const

Definition at line 63 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                              {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTAlgoCounts.size(); i++ ){ 
      std::cout << "m_GTAlgoCounts["<<i<<"] = "<< it->m_GTAlgoCounts[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTAlgoPrescaling ( ) const

Definition at line 83 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                  {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTAlgoPrescaling.size(); i++ ){ 
      std::cout << "m_GTAlgoPrescaling["<<i<<"] = "<< it->m_GTAlgoPrescaling[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTAlgoRates ( ) const

Definition at line 73 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                             {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTAlgoRates.size(); i++ ){ 
      std::cout << "m_GTAlgoRates["<<i<<"] = "<< it->m_GTAlgoRates[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTPartition0DeadTime ( ) const

Definition at line 142 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                      {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTPartition0DeadTime.size(); i++ ){ 
      std::cout << "m_GTPartition0DeadTime["<<i<<"] = "<< it->m_GTPartition0DeadTime[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTPartition0DeadTimeRatio ( ) const

Definition at line 152 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                           {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTPartition0DeadTimeRatio.size(); i++ ){ 
      std::cout << "m_GTPartition0DeadTimeRatio["<<i<<"] = "<< it->m_GTPartition0DeadTimeRatio[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTPartition0TriggerCounts ( ) const

Definition at line 122 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                           {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTPartition0TriggerCounts.size(); i++ ){ 
      std::cout << "m_GTPartition0TriggerCounts["<<i<<"] = "<< it->m_GTPartition0TriggerCounts[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTPartition0TriggerRates ( ) const

Definition at line 132 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                          {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTPartition0TriggerRates.size(); i++ ){ 
      std::cout << "m_GTPartition0TriggerRates["<<i<<"] = "<< it->m_GTPartition0TriggerRates[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTTechCounts ( ) const

Definition at line 92 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                              {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTTechCounts.size(); i++ ){ 
      std::cout << "m_GTTechCounts["<<i<<"] = "<< it->m_GTTechCounts[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTTechPrescaling ( ) const

Definition at line 112 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                                  {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTTechPrescaling.size(); i++ ){ 
      std::cout << "m_GTTechPrescaling["<<i<<"] = "<< it->m_GTTechPrescaling[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printGTTechRates ( ) const

Definition at line 102 of file L1TriggerScaler.cc.

References gather_cfg::cout, i, and m_run.

                                             {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\nlumisegment: "  << it->m_lumisegment<<std::endl;  
    for(size_t i=0; i<it->m_GTTechRates.size(); i++ ){ 
      std::cout << "m_GTTechRates["<<i<<"] = "<< it->m_GTTechRates[i]<<std::endl;  
    }
  }
}
void L1TriggerScaler::printLumiSegmentValues ( ) const

Definition at line 47 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

                                                   {
  for(LumiIterator it=m_run.begin(); it!=m_run.end(); ++it){
    std::cout << "  run:  " <<it->m_rn<<
      "\n lumisegment: "  << it->m_lumisegment<<
    "\n start_time: "  << it->m_start_time <<std::endl;   
 }
}
void L1TriggerScaler::printRunValue ( ) const

Definition at line 42 of file L1TriggerScaler.cc.

References gather_cfg::cout, and m_run.

                                         {
  LumiIterator it=m_run.begin();
  std::cout<<it->m_rn<<std::endl;
}
void L1TriggerScaler::SetRunNumber ( int  n) [inline]

Definition at line 95 of file L1TriggerScaler.h.

References m_runnumber, and n.

                         {
    m_runnumber= n;
  }

Member Data Documentation

Definition at line 101 of file L1TriggerScaler.h.

Definition at line 102 of file L1TriggerScaler.h.

Referenced by SetRunNumber().