Abstract base class for producer of SiStripFedCabling record. More...
#include <SiStripFedCablingESProducer.h>
Public Member Functions | |
virtual std::auto_ptr < SiStripFedCabling > | produce (const SiStripFedCablingRcd &) |
SiStripFedCablingESProducer (const edm::ParameterSet &) | |
virtual | ~SiStripFedCablingESProducer () |
Static Public Member Functions | |
static uint16_t | ccuAddr (const uint16_t &nth_module) |
static uint16_t | ccuChan (const uint16_t &nth_module) |
static uint16_t | fecCrate (const uint16_t &nth_module) |
static uint16_t | fecRing (const uint16_t &nth_module) |
static uint16_t | fecSlot (const uint16_t &nth_module) |
Private Member Functions | |
virtual SiStripFedCabling * | make (const SiStripFedCablingRcd &)=0 |
const SiStripFedCablingESProducer & | operator= (const SiStripFedCablingESProducer &) |
SiStripFedCablingESProducer (const SiStripFedCablingESProducer &) |
Abstract base class for producer of SiStripFedCabling record.
Definition at line 17 of file SiStripFedCablingESProducer.h.
SiStripFedCablingESProducer::SiStripFedCablingESProducer | ( | const edm::ParameterSet & | pset | ) |
Definition at line 12 of file SiStripFedCablingESProducer.cc.
References produce().
{ setWhatProduced( this, &SiStripFedCablingESProducer::produce ); }
SiStripFedCablingESProducer::~SiStripFedCablingESProducer | ( | ) | [virtual] |
Definition at line 18 of file SiStripFedCablingESProducer.cc.
{}
SiStripFedCablingESProducer::SiStripFedCablingESProducer | ( | const SiStripFedCablingESProducer & | ) | [private] |
uint16_t SiStripFedCablingESProducer::ccuAddr | ( | const uint16_t & | nth_module | ) | [inline, static] |
Definition at line 50 of file SiStripFedCablingESProducer.h.
Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), and SiStripFedCablingFakeESSource::make().
{ return (module/8) % 8 + 1; }
uint16_t SiStripFedCablingESProducer::ccuChan | ( | const uint16_t & | nth_module | ) | [inline, static] |
Definition at line 51 of file SiStripFedCablingESProducer.h.
Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), and SiStripFedCablingFakeESSource::make().
{ return (module/1) % 8 + 16; }
uint16_t SiStripFedCablingESProducer::fecCrate | ( | const uint16_t & | nth_module | ) | [inline, static] |
Definition at line 47 of file SiStripFedCablingESProducer.h.
Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), and SiStripFedCablingFakeESSource::make().
{ return (module/(8*8*8*11)) % 4 + 1; }
uint16_t SiStripFedCablingESProducer::fecRing | ( | const uint16_t & | nth_module | ) | [inline, static] |
Definition at line 49 of file SiStripFedCablingESProducer.h.
Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), and SiStripFedCablingFakeESSource::make().
{ return (module/(8*8)) % 8 + 1; }
uint16_t SiStripFedCablingESProducer::fecSlot | ( | const uint16_t & | nth_module | ) | [inline, static] |
Definition at line 48 of file SiStripFedCablingESProducer.h.
Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), and SiStripFedCablingFakeESSource::make().
{ return (module/(8*8*8)) % 11 + 2; }
virtual SiStripFedCabling* SiStripFedCablingESProducer::make | ( | const SiStripFedCablingRcd & | ) | [private, pure virtual] |
Implemented in SiStripFedCablingFakeESSource, and SiStripFedCablingBuilderFromDb.
const SiStripFedCablingESProducer& SiStripFedCablingESProducer::operator= | ( | const SiStripFedCablingESProducer & | ) | [private] |
std::auto_ptr< SiStripFedCabling > SiStripFedCablingESProducer::produce | ( | const SiStripFedCablingRcd & | rcd | ) | [virtual] |
Calls pure virtual make() method, to force concrete implementation.
Definition at line 22 of file SiStripFedCablingESProducer.cc.
References reco::modules::make(), sistrip::mlCabling_, and cond::rpcobtemp::temp.
Referenced by SiStripFedCablingESProducer().
{ SiStripFedCabling* temp = make( rcd ); if ( !temp ) { edm::LogWarning(mlCabling_) << "[SiStripFedCablingESProducer::" << __func__ << "]" << " Null pointer to SiStripFedCabling object!"; } std::auto_ptr<SiStripFedCabling> ptr( temp ); return ptr; }