#include <SiStripBaseDelayGenerator.h>
Public Member Functions | |
void | getObj (SiStripBaseDelay *&obj) |
SiStripBaseDelayGenerator (const edm::ParameterSet &, const edm::ActivityRegistry &) | |
~SiStripBaseDelayGenerator () | |
Private Member Functions | |
void | createObject () |
Fake generator for base delay values stored in the SiStripBaseDelay object.
Definition at line 14 of file SiStripBaseDelayGenerator.h.
SiStripBaseDelayGenerator::SiStripBaseDelayGenerator | ( | const edm::ParameterSet & | iConfig, |
const edm::ActivityRegistry & | aReg | ||
) | [explicit] |
Definition at line 10 of file SiStripBaseDelayGenerator.cc.
: SiStripCondObjBuilderBase<SiStripBaseDelay>::SiStripCondObjBuilderBase(iConfig) { edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::SiStripBaseDelayGenerator]"; }
SiStripBaseDelayGenerator::~SiStripBaseDelayGenerator | ( | ) |
Definition at line 16 of file SiStripBaseDelayGenerator.cc.
{ edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::~SiStripBaseDelayGenerator]"; }
void SiStripBaseDelayGenerator::createObject | ( | ) | [private] |
Definition at line 21 of file SiStripBaseDelayGenerator.cc.
References SiStripCondObjBuilderBase< SiStripBaseDelay >::_pset, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), SiStripCondObjBuilderBase< SiStripBaseDelay >::obj_, SiStripBaseDelay::put(), and matplotRender::reader.
Referenced by getObj().
{ obj_ = new SiStripBaseDelay(); // Read the full list of detIds edm::FileInPath fp_ = _pset.getParameter<edm::FileInPath>("file"); uint16_t coarseDelay = _pset.getParameter<uint32_t>("CoarseDelay"); uint16_t fineDelay = _pset.getParameter<uint32_t>("FineDelay"); SiStripDetInfoFileReader reader(fp_.fullPath()); const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > detInfos = reader.getAllData(); if( !detInfos.empty() ) { std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = detInfos.begin(); for( ; it != detInfos.end(); ++it ) { obj_->put(it->first, coarseDelay, fineDelay); } } else { edm::LogError("SiStripBaseDelayGenerator") << "Error: detInfo map is empty." << std::endl; } }
void SiStripBaseDelayGenerator::getObj | ( | SiStripBaseDelay *& | obj | ) | [inline, virtual] |
Returns the CondObj
Reimplemented from SiStripCondObjBuilderBase< SiStripBaseDelay >.
Definition at line 20 of file SiStripBaseDelayGenerator.h.
References createObject(), and SiStripCondObjBuilderBase< SiStripBaseDelay >::obj_.
{createObject(); obj=obj_;}