CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

TSCBLBuilderWithPropagatorESProducer Class Reference

Inheritance diagram for TSCBLBuilderWithPropagatorESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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_

Detailed Description

Definition at line 26 of file TSCBLBuilderWithPropagatorESProducer.cc.


Member Typedef Documentation

Definition at line 31 of file TSCBLBuilderWithPropagatorESProducer.cc.


Constructor & Destructor Documentation

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.)

}

Member Function Documentation

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 ;
}

Member Data Documentation