#include <ConversionTrackFinder.h>
Classes | |
struct | ExtractChi2 |
struct | ExtractNumOfHits |
Public Member Functions | |
ConversionTrackFinder (const edm::EventSetup &es, const edm::ParameterSet &config) | |
void | setEvent (const edm::Event &e) |
void | setEventSetup (const edm::EventSetup &es) |
Initialize EventSetup objects at each event. | |
virtual std::vector< Trajectory > | tracks (const TrajectorySeedCollection seeds, TrackCandidateCollection &candidate) const =0 |
virtual | ~ConversionTrackFinder () |
Protected Attributes | |
edm::ParameterSet | conf_ |
const TrajectoryBuilder * | theCkfTrajectoryBuilder_ |
TransientInitialStateEstimator * | theInitialState_ |
const MeasurementTracker * | theMeasurementTracker_ |
const MagneticField * | theMF_ |
const TrackerGeometry * | theTrackerGeom_ |
KFUpdator * | theUpdator_ |
Definition at line 32 of file ConversionTrackFinder.h.
ConversionTrackFinder::ConversionTrackFinder | ( | const edm::EventSetup & | es, |
const edm::ParameterSet & | config | ||
) |
Definition at line 23 of file ConversionTrackFinder.cc.
References conf_, edm::ParameterSet::getParameter(), and theInitialState_.
: conf_(conf), theCkfTrajectoryBuilder_(0), theInitialState_(0), theTrackerGeom_(0), theUpdator_(0) { // std::cout << " ConversionTrackFinder base CTOR " << std::endl; edm::ParameterSet tise_params = conf_.getParameter<edm::ParameterSet>("TransientInitialStateEstimatorParameters") ; theInitialState_ = new TransientInitialStateEstimator( es, tise_params); }
ConversionTrackFinder::~ConversionTrackFinder | ( | ) | [virtual] |
Definition at line 41 of file ConversionTrackFinder.cc.
References theInitialState_.
{ delete theInitialState_; }
void ConversionTrackFinder::setEvent | ( | const edm::Event & | e | ) |
Definition at line 69 of file ConversionTrackFinder.cc.
References theMeasurementTracker_, and MeasurementTracker::update().
Referenced by SoftConversionTrackCandidateProducer::produce(), and ConversionTrackCandidateProducer::produce().
{ theMeasurementTracker_->update( e ); }
void ConversionTrackFinder::setEventSetup | ( | const edm::EventSetup & | es | ) |
Initialize EventSetup objects at each event.
Definition at line 49 of file ConversionTrackFinder.cc.
References conf_, edm::EventSetup::get(), edm::ParameterSet::getParameter(), edm::ESHandle< T >::product(), TransientInitialStateEstimator::setEventSetup(), theCkfTrajectoryBuilder_, theInitialState_, theMeasurementTracker_, and theTrackerGeom_.
Referenced by SoftConversionTrackCandidateProducer::setEventSetup(), and ConversionTrackCandidateProducer::setEventSetup().
{ edm::ESHandle<MeasurementTracker> measurementTrackerHandle; es.get<CkfComponentsRecord>().get(measurementTrackerHandle); theMeasurementTracker_ = measurementTrackerHandle.product(); // set the TrajectoryBuilder std::string trajectoryBuilderName = conf_.getParameter<std::string>("TrajectoryBuilder"); // std::cout << " ConversionTrackFinderBase tbName" << trajectoryBuilderName << std::endl; edm::ESHandle<TrajectoryBuilder> theTrajectoryBuilderHandle; es.get<CkfComponentsRecord>().get(trajectoryBuilderName,theTrajectoryBuilderHandle); theCkfTrajectoryBuilder_ = theTrajectoryBuilderHandle.product(); edm::ESHandle<TrackerGeometry> trackerHandle; es.get<TrackerDigiGeometryRecord>().get(trackerHandle); theTrackerGeom_= trackerHandle.product(); theInitialState_->setEventSetup( es ); }
virtual std::vector<Trajectory> ConversionTrackFinder::tracks | ( | const TrajectorySeedCollection | seeds, |
TrackCandidateCollection & | candidate | ||
) | const [pure virtual] |
Implemented in InOutConversionTrackFinder, and OutInConversionTrackFinder.
edm::ParameterSet ConversionTrackFinder::conf_ [protected] |
Definition at line 58 of file ConversionTrackFinder.h.
Referenced by ConversionTrackFinder(), InOutConversionTrackFinder::InOutConversionTrackFinder(), OutInConversionTrackFinder::OutInConversionTrackFinder(), and setEventSetup().
const TrajectoryBuilder* ConversionTrackFinder::theCkfTrajectoryBuilder_ [protected] |
Definition at line 62 of file ConversionTrackFinder.h.
Referenced by setEventSetup(), InOutConversionTrackFinder::tracks(), and OutInConversionTrackFinder::tracks().
Definition at line 64 of file ConversionTrackFinder.h.
Referenced by ConversionTrackFinder(), setEventSetup(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), and ~ConversionTrackFinder().
const MeasurementTracker* ConversionTrackFinder::theMeasurementTracker_ [protected] |
Definition at line 61 of file ConversionTrackFinder.h.
Referenced by setEvent(), setEventSetup(), and OutInConversionTrackFinder::tracks().
const MagneticField* ConversionTrackFinder::theMF_ [protected] |
Definition at line 59 of file ConversionTrackFinder.h.
const TrackerGeometry* ConversionTrackFinder::theTrackerGeom_ [protected] |
Definition at line 65 of file ConversionTrackFinder.h.
Referenced by setEventSetup().
KFUpdator* ConversionTrackFinder::theUpdator_ [protected] |
Definition at line 66 of file ConversionTrackFinder.h.