CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
30  // empty
31 }
32 
33 L1GtPrescaleFactors::L1GtPrescaleFactors(const std::vector<std::vector<int> >& factorValue)
34 {
35  m_prescaleFactors = factorValue;
36 }
37 
38 // destructor
40 {
41  // empty
42 }
43 
44 // set the prescale factors
45 void L1GtPrescaleFactors::setGtPrescaleFactors(const std::vector<std::vector<int> >& factorValue)
46 {
47 
48  m_prescaleFactors = factorValue;
49 
50 }
51 
52 // print the prescale factors
53 void L1GtPrescaleFactors::print(std::ostream& myOstream) const {
54  myOstream << "\nL1 GT Trigger prescale factors" << std::endl;
55 
56  for (unsigned iSet = 0; iSet < m_prescaleFactors.size(); iSet++) {
57 
58  myOstream << "\n\n Set index " << iSet << "\n " << std::endl;
59  for (unsigned i = 0; i < (m_prescaleFactors[iSet]).size(); i++) {
60 
61  myOstream
62  << " Bit number \t" << i
63  << ":\t prescale factor: " << (m_prescaleFactors[iSet])[i]
64  << std::endl;
65  }
66  }
67 
68 }
int i
Definition: DBlmapReader.cc:9
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
tuple size
Write out results.