CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
l1t::PrescalesVetosFractHelper Class Reference

#include <PrescalesVetosFractHelper.h>

Public Types

enum  { VERSION_ = 1 }
 

Public Member Functions

int bxMaskDefault () const
 
const
L1TGlobalPrescalesVetosFract
getReadInstance () const
 
L1TGlobalPrescalesVetosFractgetWriteInstance ()
 
 PrescalesVetosFractHelper (L1TGlobalPrescalesVetosFract *w)
 
const std::vector< std::vector
< double > > & 
prescaleTable () const
 
void setBxMaskDefault (int value)
 
void setPrescaleFactorTable (std::vector< std::vector< double > > value)
 
void setTriggerAlgoBxMask (std::map< int, std::vector< int > > value)
 
void setTriggerMaskVeto (std::vector< int > value)
 
const std::map< int,
std::vector< int > > & 
triggerAlgoBxMask () const
 
const std::vector< int > & triggerMaskVeto () const
 
 ~PrescalesVetosFractHelper ()
 

Static Public Member Functions

static PrescalesVetosFractHelperreadAndWriteFromEventSetup (const L1TGlobalPrescalesVetosFract *es)
 
static const
PrescalesVetosFractHelper
readFromEventSetup (const L1TGlobalPrescalesVetosFract *es)
 

Private Member Functions

void check_write ()
 
 PrescalesVetosFractHelper (const L1TGlobalPrescalesVetosFract *es)
 
void useCopy ()
 

Private Attributes

const
L1TGlobalPrescalesVetosFract
read_
 
bool we_own_write_
 
L1TGlobalPrescalesVetosFractwrite_
 

Detailed Description

Definition at line 32 of file PrescalesVetosFractHelper.h.

Member Enumeration Documentation

anonymous enum
Enumerator
VERSION_ 

Definition at line 34 of file PrescalesVetosFractHelper.h.

Constructor & Destructor Documentation

PrescalesVetosFractHelper::~PrescalesVetosFractHelper ( )

Definition at line 35 of file PrescalesVetosFractHelper.cc.

References we_own_write_, and write_.

35  {
36  if (we_own_write_ && write_)
37  delete write_;
38 }
L1TGlobalPrescalesVetosFract * write_
PrescalesVetosFractHelper::PrescalesVetosFractHelper ( L1TGlobalPrescalesVetosFract w)
PrescalesVetosFractHelper::PrescalesVetosFractHelper ( const L1TGlobalPrescalesVetosFract es)
private

Definition at line 24 of file PrescalesVetosFractHelper.cc.

References read_, and write_.

24  {
25  read_ = es;
26  write_ = nullptr;
27 }
L1TGlobalPrescalesVetosFract * write_
const L1TGlobalPrescalesVetosFract * read_

Member Function Documentation

int l1t::PrescalesVetosFractHelper::bxMaskDefault ( ) const
inline
void l1t::PrescalesVetosFractHelper::check_write ( )
inlineprivate
const L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::getReadInstance ( ) const
inline

Definition at line 69 of file PrescalesVetosFractHelper.h.

References read_.

69 { return read_; }
const L1TGlobalPrescalesVetosFract * read_
L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::getWriteInstance ( )
inline
const std::vector<std::vector<double> >& l1t::PrescalesVetosFractHelper::prescaleTable ( ) const
inline

Definition at line 51 of file PrescalesVetosFractHelper.h.

References L1TGlobalPrescalesVetosFract::prescale_table_, and read_.

Referenced by L1TGlobalProducer::produce().

51 { return read_->prescale_table_; };
std::vector< std::vector< double > > prescale_table_
const L1TGlobalPrescalesVetosFract * read_
PrescalesVetosFractHelper * PrescalesVetosFractHelper::readAndWriteFromEventSetup ( const L1TGlobalPrescalesVetosFract es)
static
const PrescalesVetosFractHelper * PrescalesVetosFractHelper::readFromEventSetup ( const L1TGlobalPrescalesVetosFract es)
static

Definition at line 5 of file PrescalesVetosFractHelper.cc.

References PrescalesVetosFractHelper().

Referenced by l1t::L1TGlobalUtil::retrieveL1Setup().

5  {
6  return new PrescalesVetosFractHelper(es);
7 }
PrescalesVetosFractHelper(L1TGlobalPrescalesVetosFract *w)
void l1t::PrescalesVetosFractHelper::setBxMaskDefault ( int  value)
inline
void l1t::PrescalesVetosFractHelper::setPrescaleFactorTable ( std::vector< std::vector< double > >  value)
inline
void l1t::PrescalesVetosFractHelper::setTriggerAlgoBxMask ( std::map< int, std::vector< int > >  value)
inline
void l1t::PrescalesVetosFractHelper::setTriggerMaskVeto ( std::vector< int >  value)
inline
const std::map<int, std::vector<int> >& l1t::PrescalesVetosFractHelper::triggerAlgoBxMask ( ) const
inline

Definition at line 62 of file PrescalesVetosFractHelper.h.

References L1TGlobalPrescalesVetosFract::bxmask_map_, and read_.

62 { return read_->bxmask_map_; };
std::map< int, std::vector< int > > bxmask_map_
const L1TGlobalPrescalesVetosFract * read_
const std::vector<int>& l1t::PrescalesVetosFractHelper::triggerMaskVeto ( ) const
inline

Definition at line 56 of file PrescalesVetosFractHelper.h.

References read_, and L1TGlobalPrescalesVetosFract::veto_.

Referenced by L1TGlobalProducer::produce().

56 { return read_->veto_; };
const L1TGlobalPrescalesVetosFract * read_
void PrescalesVetosFractHelper::useCopy ( )
private

Member Data Documentation

const L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::read_
private
bool l1t::PrescalesVetosFractHelper::we_own_write_
private
L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::write_
private