CMS 3D CMS Logo

L1GtPrescaleFactors.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 
22 // user include files
23 // base class
24 
25 // forward declarations
26 
27 // constructor
29  // empty
30 }
31 
32 L1GtPrescaleFactors::L1GtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
33  m_prescaleFactors = factorValue;
34 }
35 
36 // destructor
38  // empty
39 }
40 
41 // set the prescale factors
42 void L1GtPrescaleFactors::setGtPrescaleFactors(const std::vector<std::vector<int> >& factorValue) {
43  m_prescaleFactors = factorValue;
44 }
45 
46 // print the prescale factors
47 void L1GtPrescaleFactors::print(std::ostream& myOstream) const {
48  myOstream << "\nL1 GT Trigger prescale factors" << std::endl;
49 
50  for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {
51  myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
52  for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {
53  myOstream << " Bit number \t" << i << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i] << std::endl;
54  }
55  }
56 }
size
Write out results.
void setGtPrescaleFactors(const std::vector< std::vector< int > > &)
set the prescale factors
std::vector< std::vector< int > > m_prescaleFactors
prescale factors
void print(std::ostream &) const
print the prescale factors