CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1GtPrescaleFactors Class Reference

#include <L1GtPrescaleFactors.h>

Public Member Functions

const std::vector< std::vector
< int > > & 
gtPrescaleFactors () const
 get the prescale factors by reference More...
 
 L1GtPrescaleFactors ()
 
 L1GtPrescaleFactors (const std::vector< std::vector< int > > &)
 
void print (std::ostream &) const
 print the prescale factors More...
 
void setGtPrescaleFactors (const std::vector< std::vector< int > > &)
 set the prescale factors More...
 
virtual ~L1GtPrescaleFactors ()
 

Private Attributes

 COND_SERIALIZABLE
 
std::vector< std::vector< int > > m_prescaleFactors
 prescale factors More...
 

Detailed Description

Description: L1 GT prescale factors.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file L1GtPrescaleFactors.h.

Constructor & Destructor Documentation

L1GtPrescaleFactors::L1GtPrescaleFactors ( )

Definition at line 28 of file L1GtPrescaleFactors.cc.

29 {
30  // empty
31 }
L1GtPrescaleFactors::L1GtPrescaleFactors ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 33 of file L1GtPrescaleFactors.cc.

References m_prescaleFactors.

34 {
35  m_prescaleFactors = factorValue;
36 }
std::vector< std::vector< int > > m_prescaleFactors
prescale factors
L1GtPrescaleFactors::~L1GtPrescaleFactors ( )
virtual

Definition at line 39 of file L1GtPrescaleFactors.cc.

40 {
41  // empty
42 }

Member Function Documentation

const std::vector<std::vector<int> >& L1GtPrescaleFactors::gtPrescaleFactors ( ) const
inline
void L1GtPrescaleFactors::print ( std::ostream &  myOstream) const

print the prescale factors

Definition at line 53 of file L1GtPrescaleFactors.cc.

References i, m_prescaleFactors, and findQualityFiles::size.

Referenced by L1GtRunSettingsViewer::analyze(), and L1GtPrescaleFactorsAndMasksTester::printL1EventSetup().

53  {
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
std::vector< std::vector< int > > m_prescaleFactors
prescale factors
tuple size
Write out results.
void L1GtPrescaleFactors::setGtPrescaleFactors ( const std::vector< std::vector< int > > &  factorValue)

set the prescale factors

Definition at line 45 of file L1GtPrescaleFactors.cc.

References m_prescaleFactors.

46 {
47 
48  m_prescaleFactors = factorValue;
49 
50 }
std::vector< std::vector< int > > m_prescaleFactors
prescale factors

Member Data Documentation

L1GtPrescaleFactors::COND_SERIALIZABLE
private

Definition at line 66 of file L1GtPrescaleFactors.h.

std::vector<std::vector<int> > L1GtPrescaleFactors::m_prescaleFactors
private

prescale factors

Definition at line 63 of file L1GtPrescaleFactors.h.

Referenced by gtPrescaleFactors(), L1GtPrescaleFactors(), print(), and setGtPrescaleFactors().