CMS 3D CMS Logo

Public Member Functions | Private Attributes

CkfDebugTrajectoryBuilderESProducer Class Reference

#include <CkfDebugTrajectoryBuilderESProducer.h>

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

List of all members.

Public Member Functions

 CkfDebugTrajectoryBuilderESProducer (const edm::ParameterSet &p)
boost::shared_ptr
< TrajectoryBuilder
produce (const CkfComponentsRecord &)
virtual ~CkfDebugTrajectoryBuilderESProducer ()

Private Attributes

boost::shared_ptr
< TrajectoryBuilder
_trajectoryBuilder
edm::ParameterSet pset_

Detailed Description

Definition at line 10 of file CkfDebugTrajectoryBuilderESProducer.h.


Constructor & Destructor Documentation

CkfDebugTrajectoryBuilderESProducer::CkfDebugTrajectoryBuilderESProducer ( const edm::ParameterSet p)

Definition at line 25 of file CkfDebugTrajectoryBuilderESProducer.cc.

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

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

Definition at line 32 of file CkfDebugTrajectoryBuilderESProducer.cc.

{}

Member Function Documentation

boost::shared_ptr< TrajectoryBuilder > CkfDebugTrajectoryBuilderESProducer::produce ( const CkfComponentsRecord iRecord)

Definition at line 35 of file CkfDebugTrajectoryBuilderESProducer.cc.

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

{ 
  std::string updatorName            = pset_.getParameter<std::string>("updator");   
  std::string propagatorAlongName    = pset_.getParameter<std::string>("propagatorAlong");
  std::string propagatorOppositeName = pset_.getParameter<std::string>("propagatorOpposite");   
  std::string estimatorName          = pset_.getParameter<std::string>("estimator"); 
  std::string recHitBuilderName      = pset_.getParameter<std::string>("TTRHBuilder");     

  edm::ESHandle<TrajectoryStateUpdator> updatorHandle;
  edm::ESHandle<Propagator>             propagatorAlongHandle;
  edm::ESHandle<Propagator>             propagatorOppositeHandle;
  edm::ESHandle<Chi2MeasurementEstimatorBase>   estimatorHandle;
  edm::ESHandle<TransientTrackingRecHitBuilder> recHitBuilderHandle;
  edm::ESHandle<MeasurementTracker>             measurementTrackerHandle;

  iRecord.getRecord<TrackingComponentsRecord>().get(updatorName,updatorHandle);
  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorAlongName,propagatorAlongHandle);
  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorOppositeName,propagatorOppositeHandle);
  iRecord.getRecord<TrackingComponentsRecord>().get(estimatorName,estimatorHandle);  
  iRecord.getRecord<TransientRecHitRecord>().get(recHitBuilderName,recHitBuilderHandle);  
  iRecord.get(measurementTrackerHandle);  
  
  _trajectoryBuilder  = 
    boost::shared_ptr<TrajectoryBuilder>(new CkfDebugTrajectoryBuilder(pset_,
                                                                       updatorHandle.product(),
                                                                       propagatorAlongHandle.product(),
                                                                       propagatorOppositeHandle.product(),
                                                                       estimatorHandle.product(),
                                                                       recHitBuilderHandle.product(),
                                                                       measurementTrackerHandle.product()) );  
  //  CkfDebugger dbg( es, theMeasurementTracker);
  //   _trajectoryBuilder->setDebugger( dbg);
  return _trajectoryBuilder;
}

Member Data Documentation

Definition at line 16 of file CkfDebugTrajectoryBuilderESProducer.h.

Definition at line 17 of file CkfDebugTrajectoryBuilderESProducer.h.