Public Types | |
typedef boost::shared_ptr < TrajectoryStateClosestToBeamLineBuilder > | ReturnType |
Public Member Functions | |
ReturnType | produce (const TrackingComponentsRecord &) |
TSCBLBuilderWithPropagatorESProducer (const edm::ParameterSet &) | |
~TSCBLBuilderWithPropagatorESProducer () | |
Private Attributes | |
edm::ParameterSet | pset_ |
Definition at line 26 of file TSCBLBuilderWithPropagatorESProducer.cc.
typedef boost::shared_ptr<TrajectoryStateClosestToBeamLineBuilder> TSCBLBuilderWithPropagatorESProducer::ReturnType |
Definition at line 31 of file TSCBLBuilderWithPropagatorESProducer.cc.
TSCBLBuilderWithPropagatorESProducer::TSCBLBuilderWithPropagatorESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 50 of file TSCBLBuilderWithPropagatorESProducer.cc.
References edm::ParameterSet::getParameter(), AlCaHLTBitMon_ParallelJobs::p, pset_, and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced std::string myName = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myName); //now do what ever other initialization is needed }
TSCBLBuilderWithPropagatorESProducer::~TSCBLBuilderWithPropagatorESProducer | ( | ) |
Definition at line 62 of file TSCBLBuilderWithPropagatorESProducer.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
TSCBLBuilderWithPropagatorESProducer::ReturnType TSCBLBuilderWithPropagatorESProducer::produce | ( | const TrackingComponentsRecord & | iRecord | ) |
Definition at line 77 of file TSCBLBuilderWithPropagatorESProducer.cc.
References edm::eventsetup::EventSetupRecord::get(), edm::ParameterSet::getParameter(), pset_, and TSCBLBuilderWithPropagator_cfi::TSCBLBuilderWithPropagator.
{ using namespace edm::es; std::string propname = pset_.getParameter<std::string>("Propagator"); edm::ESHandle<Propagator> theProp; iRecord.get(propname, theProp); const Propagator * pro = theProp.product(); TSCBLBuilderWithPropagatorESProducer::ReturnType pTSCBLBuilderWithPropagator(new TSCBLBuilderWithPropagator(*pro)) ; return pTSCBLBuilderWithPropagator ; }
Definition at line 36 of file TSCBLBuilderWithPropagatorESProducer.cc.
Referenced by produce(), and TSCBLBuilderWithPropagatorESProducer().