test
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 Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

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

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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.
template<class Archive >
void L1GtPrescaleFactors::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 66 of file L1GtPrescaleFactors.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 66 of file L1GtPrescaleFactors.h.

Member Data Documentation

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().