CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
l1t::PrescalesVetosHelper Class Reference

#include <PrescalesVetosHelper.h>

Public Types

enum  { VERSION_ = 1 }
 

Public Member Functions

int bxMaskDefault () const
 
const L1TGlobalPrescalesVetosgetReadInstance () const
 
L1TGlobalPrescalesVetosgetWriteInstance ()
 
 PrescalesVetosHelper (L1TGlobalPrescalesVetos *w)
 
const std::vector< std::vector< int > > & prescaleTable () const
 
void setBxMaskDefault (int value)
 
void setPrescaleFactorTable (std::vector< std::vector< int > > 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
 
 ~PrescalesVetosHelper ()
 

Static Public Member Functions

static PrescalesVetosHelperreadAndWriteFromEventSetup (const L1TGlobalPrescalesVetos *es)
 
static const PrescalesVetosHelperreadFromEventSetup (const L1TGlobalPrescalesVetos *es)
 

Private Member Functions

void check_write ()
 
 PrescalesVetosHelper (const L1TGlobalPrescalesVetos *es)
 
void useCopy ()
 

Private Attributes

const L1TGlobalPrescalesVetosread_
 
bool we_own_write_
 
L1TGlobalPrescalesVetoswrite_
 

Detailed Description

Definition at line 32 of file PrescalesVetosHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VERSION_ 

Definition at line 34 of file PrescalesVetosHelper.h.

Constructor & Destructor Documentation

◆ ~PrescalesVetosHelper()

PrescalesVetosHelper::~PrescalesVetosHelper ( )

Definition at line 34 of file PrescalesVetosHelper.cc.

References we_own_write_, and write_.

34  {
35  if (we_own_write_ && write_)
36  delete write_;
37 }
L1TGlobalPrescalesVetos * write_

◆ PrescalesVetosHelper() [1/2]

PrescalesVetosHelper::PrescalesVetosHelper ( L1TGlobalPrescalesVetos w)

◆ PrescalesVetosHelper() [2/2]

PrescalesVetosHelper::PrescalesVetosHelper ( const L1TGlobalPrescalesVetos es)
private

Definition at line 23 of file PrescalesVetosHelper.cc.

References read_, and write_.

23  {
24  read_ = es;
25  write_ = nullptr;
26 }
L1TGlobalPrescalesVetos * write_
const L1TGlobalPrescalesVetos * read_

Member Function Documentation

◆ bxMaskDefault()

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

Definition at line 45 of file PrescalesVetosHelper.h.

References L1TGlobalPrescalesVetos::bxmask_default_, and read_.

45 { return read_->bxmask_default_; };
const L1TGlobalPrescalesVetos * read_

◆ check_write()

void l1t::PrescalesVetosHelper::check_write ( )
inlineprivate

◆ getReadInstance()

const L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::getReadInstance ( ) const
inline

Definition at line 69 of file PrescalesVetosHelper.h.

References read_.

69 { return read_; }
const L1TGlobalPrescalesVetos * read_

◆ getWriteInstance()

L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::getWriteInstance ( )
inline

Definition at line 70 of file PrescalesVetosHelper.h.

References write_.

Referenced by L1TGlobalPrescalesVetosESProducer::produce().

70 { return write_; }
L1TGlobalPrescalesVetos * write_

◆ prescaleTable()

const std::vector<std::vector<int> >& l1t::PrescalesVetosHelper::prescaleTable ( ) const
inline

Definition at line 51 of file PrescalesVetosHelper.h.

References L1TGlobalPrescalesVetos::prescale_table_, and read_.

51 { return read_->prescale_table_; };
std::vector< std::vector< int > > prescale_table_
const L1TGlobalPrescalesVetos * read_

◆ readAndWriteFromEventSetup()

PrescalesVetosHelper * PrescalesVetosHelper::readAndWriteFromEventSetup ( const L1TGlobalPrescalesVetos es)
static

Definition at line 9 of file PrescalesVetosHelper.cc.

References PrescalesVetosHelper(), and x.

9  {
11  x->useCopy();
12  return x;
13 }
PrescalesVetosHelper(L1TGlobalPrescalesVetos *w)

◆ readFromEventSetup()

const PrescalesVetosHelper * PrescalesVetosHelper::readFromEventSetup ( const L1TGlobalPrescalesVetos es)
static

Definition at line 5 of file PrescalesVetosHelper.cc.

References PrescalesVetosHelper().

5  {
6  return new PrescalesVetosHelper(es);
7 }
PrescalesVetosHelper(L1TGlobalPrescalesVetos *w)

◆ setBxMaskDefault()

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

◆ setPrescaleFactorTable()

void l1t::PrescalesVetosHelper::setPrescaleFactorTable ( std::vector< std::vector< int > >  value)
inline

◆ setTriggerAlgoBxMask()

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

◆ setTriggerMaskVeto()

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

◆ triggerAlgoBxMask()

const std::map<int, std::vector<int> >& l1t::PrescalesVetosHelper::triggerAlgoBxMask ( ) const
inline

Definition at line 62 of file PrescalesVetosHelper.h.

References L1TGlobalPrescalesVetos::bxmask_map_, and read_.

62 { return read_->bxmask_map_; };
std::map< int, std::vector< int > > bxmask_map_
const L1TGlobalPrescalesVetos * read_

◆ triggerMaskVeto()

const std::vector<int>& l1t::PrescalesVetosHelper::triggerMaskVeto ( ) const
inline

Definition at line 56 of file PrescalesVetosHelper.h.

References read_, and L1TGlobalPrescalesVetos::veto_.

56 { return read_->veto_; };
const L1TGlobalPrescalesVetos * read_

◆ useCopy()

void PrescalesVetosHelper::useCopy ( )
private

Definition at line 28 of file PrescalesVetosHelper.cc.

References PrescalesVetos_cff::L1TGlobalPrescalesVetos, read_, we_own_write_, and write_.

28  {
30  we_own_write_ = true;
31  read_ = write_;
32 }
L1TGlobalPrescalesVetos * write_
const L1TGlobalPrescalesVetos * read_

Member Data Documentation

◆ read_

const L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::read_
private

◆ we_own_write_

bool l1t::PrescalesVetosHelper::we_own_write_
private

Definition at line 79 of file PrescalesVetosHelper.h.

Referenced by PrescalesVetosHelper(), useCopy(), and ~PrescalesVetosHelper().

◆ write_

L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::write_
private