CMS 3D CMS Logo

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 L1TGlobalPrescalesVetosFractgetReadInstance () 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 PrescalesVetosFractHelperreadFromEventSetup (const L1TGlobalPrescalesVetosFract *es)
 

Private Member Functions

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

Private Attributes

const L1TGlobalPrescalesVetosFractread_
 
bool we_own_write_
 
L1TGlobalPrescalesVetosFractwrite_
 

Detailed Description

Definition at line 32 of file PrescalesVetosFractHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VERSION_ 

Definition at line 34 of file PrescalesVetosFractHelper.h.

Constructor & Destructor Documentation

◆ ~PrescalesVetosFractHelper()

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() [1/2]

PrescalesVetosFractHelper::PrescalesVetosFractHelper ( L1TGlobalPrescalesVetosFract w)

◆ PrescalesVetosFractHelper() [2/2]

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

◆ bxMaskDefault()

int l1t::PrescalesVetosFractHelper::bxMaskDefault ( ) const
inline

◆ check_write()

void l1t::PrescalesVetosFractHelper::check_write ( )
inlineprivate

◆ getReadInstance()

const L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::getReadInstance ( ) const
inline

Definition at line 69 of file PrescalesVetosFractHelper.h.

References read_.

69 { return read_; }
const L1TGlobalPrescalesVetosFract * read_

◆ getWriteInstance()

L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::getWriteInstance ( )
inline

◆ prescaleTable()

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_

◆ readAndWriteFromEventSetup()

PrescalesVetosFractHelper * PrescalesVetosFractHelper::readAndWriteFromEventSetup ( const L1TGlobalPrescalesVetosFract es)
static

Definition at line 9 of file PrescalesVetosFractHelper.cc.

References PrescalesVetosFractHelper(), and x.

10  {
12  x->useCopy();
13  return x;
14 }
PrescalesVetosFractHelper(L1TGlobalPrescalesVetosFract *w)

◆ readFromEventSetup()

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)

◆ setBxMaskDefault()

void l1t::PrescalesVetosFractHelper::setBxMaskDefault ( int  value)
inline

◆ setPrescaleFactorTable()

void l1t::PrescalesVetosFractHelper::setPrescaleFactorTable ( std::vector< std::vector< double > >  value)
inline

◆ setTriggerAlgoBxMask()

void l1t::PrescalesVetosFractHelper::setTriggerAlgoBxMask ( std::map< int, std::vector< int > >  value)
inline

◆ setTriggerMaskVeto()

void l1t::PrescalesVetosFractHelper::setTriggerMaskVeto ( std::vector< int >  value)
inline

◆ triggerAlgoBxMask()

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_

◆ triggerMaskVeto()

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_

◆ useCopy()

void PrescalesVetosFractHelper::useCopy ( )
private

Member Data Documentation

◆ read_

const L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::read_
private

◆ we_own_write_

bool l1t::PrescalesVetosFractHelper::we_own_write_
private

◆ write_

L1TGlobalPrescalesVetosFract* l1t::PrescalesVetosFractHelper::write_
private