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::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
Enumerator
VERSION_ 

Definition at line 34 of file PrescalesVetosHelper.h.

Constructor & Destructor Documentation

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::PrescalesVetosHelper ( L1TGlobalPrescalesVetos w)
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

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_
void l1t::PrescalesVetosHelper::check_write ( )
inlineprivate
const L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::getReadInstance ( ) const
inline

Definition at line 69 of file PrescalesVetosHelper.h.

References read_.

69 { return read_; }
const L1TGlobalPrescalesVetos * read_
L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::getWriteInstance ( )
inline

Definition at line 70 of file PrescalesVetosHelper.h.

References write_.

Referenced by L1TGlobalPrescalesVetosESProducer::produce().

70 { return write_; }
L1TGlobalPrescalesVetos * write_
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_
PrescalesVetosHelper * PrescalesVetosHelper::readAndWriteFromEventSetup ( const L1TGlobalPrescalesVetos es)
static

Definition at line 9 of file PrescalesVetosHelper.cc.

References PrescalesVetosHelper(), and useCopy().

9  {
11  x->useCopy();
12  return x;
13 }
PrescalesVetosHelper(L1TGlobalPrescalesVetos *w)
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)
void l1t::PrescalesVetosHelper::setBxMaskDefault ( int  value)
inline
void l1t::PrescalesVetosHelper::setPrescaleFactorTable ( std::vector< std::vector< int > >  value)
inline
void l1t::PrescalesVetosHelper::setTriggerAlgoBxMask ( std::map< int, std::vector< int > >  value)
inline
void l1t::PrescalesVetosHelper::setTriggerMaskVeto ( std::vector< int >  value)
inline
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_
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_
void PrescalesVetosHelper::useCopy ( )
private

Definition at line 28 of file PrescalesVetosHelper.cc.

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

Referenced by readAndWriteFromEventSetup().

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

Member Data Documentation

const L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::read_
private
bool l1t::PrescalesVetosHelper::we_own_write_
private

Definition at line 79 of file PrescalesVetosHelper.h.

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

L1TGlobalPrescalesVetos* l1t::PrescalesVetosHelper::write_
private