#include <RingMakerESProducer.h>
Public Types | |
typedef std::auto_ptr< Rings > | ReturnType |
Public Member Functions | |
ReturnType | produce (const RingRecord &) |
RingMakerESProducer (const edm::ParameterSet &) | |
~RingMakerESProducer () | |
Private Attributes | |
std::string | configuration_ |
std::string | detIdsDumpFileName_ |
bool | dumpDetIds_ |
std::string | fileName_ |
Rings * | rings_ |
bool | writeOut_ |
Definition at line 33 of file RingMakerESProducer.h.
typedef std::auto_ptr<Rings> RingMakerESProducer::ReturnType |
Definition at line 40 of file RingMakerESProducer.h.
RingMakerESProducer::RingMakerESProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 24 of file RingMakerESProducer.cc.
References configuration_, detIdsDumpFileName_, dumpDetIds_, fileName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), rings_, edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, and writeOut_.
{ std::string componentName = iConfig.getParameter<std::string>("ComponentName"); setWhatProduced(this, componentName); writeOut_ = iConfig.getUntrackedParameter<bool>("WriteOutRingsToAsciiFile",false); fileName_ = iConfig.getUntrackedParameter<std::string>("RingAsciiFileName",""); dumpDetIds_ = iConfig.getUntrackedParameter<bool>("DumpDetIds",false); detIdsDumpFileName_ = iConfig.getUntrackedParameter<std::string>("DetIdsDumpFileName",""); configuration_ = iConfig.getUntrackedParameter<std::string>("Configuration","FULL"); rings_ = 0; }
RingMakerESProducer::~RingMakerESProducer | ( | ) |
Definition at line 40 of file RingMakerESProducer.cc.
{ // if ( rings_ != 0) { // delete rings_; // } }
RingMakerESProducer::ReturnType RingMakerESProducer::produce | ( | const RingRecord & | iRecord | ) |
Definition at line 50 of file RingMakerESProducer.cc.
References configuration_, detIdsDumpFileName_, Rings::dump(), dumpDetIds_, RingMaker::dumpDetIdsIntoFile(), fileName_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), RingMaker::getRings(), edm::ESHandle< T >::product(), rings_, patCandidatesForDimuonsSequences_cff::tracker, and writeOut_.
{ // get geometry edm::ESHandle<TrackerGeometry> trackingGeometryHandle; iRecord.getRecord<TrackerDigiGeometryRecord>().get(trackingGeometryHandle); const TrackerGeometry *tracker = trackingGeometryHandle.product(); RingMaker maker(tracker,configuration_); if ( dumpDetIds_ ) { maker.dumpDetIdsIntoFile(detIdsDumpFileName_); } rings_ = maker.getRings(); ReturnType pRings(rings_) ; if ( writeOut_ ) { rings_->dump(fileName_); } return pRings ; }
std::string RingMakerESProducer::configuration_ [private] |
Definition at line 50 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().
std::string RingMakerESProducer::detIdsDumpFileName_ [private] |
Definition at line 49 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().
bool RingMakerESProducer::dumpDetIds_ [private] |
Definition at line 48 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().
std::string RingMakerESProducer::fileName_ [private] |
Definition at line 47 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().
Rings* RingMakerESProducer::rings_ [private] |
Definition at line 51 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().
bool RingMakerESProducer::writeOut_ [private] |
Definition at line 46 of file RingMakerESProducer.h.
Referenced by produce(), and RingMakerESProducer().