Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:22

0001 /**
0002  * \class L1GtPrescaleFactors
0003  * 
0004  * 
0005  * Description: L1 GT prescale factors.  
0006  *
0007  * Implementation:
0008  *    <TODO: enter implementation details>
0009  *   
0010  * \author: Vasile Mihai Ghete - HEPHY Vienna
0011  * 
0012  * $Date$
0013  * $Revision$
0014  *
0015  */
0016 
0017 // this class header
0018 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
0019 
0020 // system include files
0021 
0022 // user include files
0023 //   base class
0024 
0025 // forward declarations
0026 
0027 // constructor
0028 L1GtPrescaleFactors::L1GtPrescaleFactors() {
0029   // empty
0030 }
0031 
0032 L1GtPrescaleFactors::L1GtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
0033   m_prescaleFactors = factorValue;
0034 }
0035 
0036 // destructor
0037 L1GtPrescaleFactors::~L1GtPrescaleFactors() {
0038   // empty
0039 }
0040 
0041 // set the prescale factors
0042 void L1GtPrescaleFactors::setGtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
0043   m_prescaleFactors = factorValue;
0044 }
0045 
0046 // print the prescale factors
0047 void L1GtPrescaleFactors::print(std::ostream& myOstream) const {
0048   myOstream << "\nL1 GT Trigger prescale factors" << std::endl;
0049 
0050   for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {
0051     myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
0052     for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {
0053       myOstream << "  Bit number \t" << i << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i] << std::endl;
0054     }
0055   }
0056 }