CMS 3D CMS Logo

Public Member Functions | Private Attributes

TransientTrackBuilderESProducer Class Reference

#include <TransientTrackBuilderESProducer.h>

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

List of all members.

Public Member Functions

boost::shared_ptr
< TransientTrackBuilder
produce (const TransientTrackRecord &)
 TransientTrackBuilderESProducer (const edm::ParameterSet &p)
virtual ~TransientTrackBuilderESProducer ()

Private Attributes

boost::shared_ptr
< TransientTrackBuilder
_builder
edm::ParameterSet pset_

Detailed Description

Definition at line 13 of file TransientTrackBuilderESProducer.h.


Constructor & Destructor Documentation

TransientTrackBuilderESProducer::TransientTrackBuilderESProducer ( const edm::ParameterSet p)

Definition at line 14 of file TransientTrackBuilderESProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.

{
  std::string myname = p.getParameter<std::string>("ComponentName");
  pset_ = p;
  setWhatProduced(this,myname);
}
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer ( ) [virtual]

Definition at line 21 of file TransientTrackBuilderESProducer.cc.

{}

Member Function Documentation

boost::shared_ptr< TransientTrackBuilder > TransientTrackBuilderESProducer::produce ( const TransientTrackRecord iRecord)

Definition at line 24 of file TransientTrackBuilderESProducer.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HLT_ES_cff::magfield, and edm::ESHandle< T >::product().

                                                                            { 

  edm::ESHandle<MagneticField> magfield;
  iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield );     
  edm::ESHandle<GlobalTrackingGeometry> theTrackingGeometry;
  iRecord.getRecord<GlobalTrackingGeometryRecord>().get(theTrackingGeometry); 

  _builder  = boost::shared_ptr<TransientTrackBuilder>(
        new TransientTrackBuilder(magfield.product(), theTrackingGeometry ));
  return _builder;

}

Member Data Documentation

Definition at line 19 of file TransientTrackBuilderESProducer.h.

Definition at line 20 of file TransientTrackBuilderESProducer.h.