#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_ |
std::string | theMeasurementTrackerName_ |
const MagneticField * | theMF_ |
edm::ESHandle< Propagator > | thePropagator_ |
const TrackerGeometry * | theTrackerGeom_ |
KFUpdator * | theUpdator_ |
bool | useSplitHits_ |
Definition at line 32 of file ConversionTrackFinder.h.
ConversionTrackFinder::ConversionTrackFinder | ( | const edm::EventSetup & | es, |
const edm::ParameterSet & | config | ||
) |
Definition at line 15 of file ConversionTrackFinder.cc.
References conf_, edm::ParameterSet::getParameter(), theInitialState_, theMeasurementTrackerName_, and useSplitHits_.
: conf_(conf), theCkfTrajectoryBuilder_(0), theInitialState_(0), theTrackerGeom_(0), theUpdator_(0), thePropagator_(0) { // std::cout << " ConversionTrackFinder base CTOR " << std::endl; edm::ParameterSet tise_params = conf_.getParameter<edm::ParameterSet>("TransientInitialStateEstimatorParameters") ; theInitialState_ = new TransientInitialStateEstimator( es, tise_params); useSplitHits_ = conf_.getParameter<bool>("useHitsSplitting"); theMeasurementTrackerName_ = conf.getParameter<std::string>("MeasurementTrackerName"); }
ConversionTrackFinder::~ConversionTrackFinder | ( | ) | [virtual] |
Definition at line 35 of file ConversionTrackFinder.cc.
References theInitialState_.
{ delete theInitialState_; }
void ConversionTrackFinder::setEvent | ( | const edm::Event & | e | ) |
Definition at line 66 of file ConversionTrackFinder.cc.
References theMeasurementTracker_, and MeasurementTracker::update().
Referenced by ConversionTrackCandidateProducer::produce().
{ theMeasurementTracker_->update( e ); }
void ConversionTrackFinder::setEventSetup | ( | const edm::EventSetup & | es | ) |
Initialize EventSetup objects at each event.
Definition at line 43 of file ConversionTrackFinder.cc.
References conf_, edm::EventSetup::get(), edm::ParameterSet::getParameter(), edm::ESHandle< T >::product(), TransientInitialStateEstimator::setEventSetup(), theCkfTrajectoryBuilder_, theInitialState_, theMeasurementTracker_, theMeasurementTrackerName_, thePropagator_, and theTrackerGeom_.
Referenced by ConversionTrackCandidateProducer::setEventSetup().
{ edm::ESHandle<MeasurementTracker> measurementTrackerHandle; es.get<CkfComponentsRecord>().get(theMeasurementTrackerName_,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(); es.get<TrackingComponentsRecord>().get("AnyDirectionAnalyticalPropagator", thePropagator_); 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 63 of file ConversionTrackFinder.h.
Referenced by setEventSetup(), InOutConversionTrackFinder::tracks(), and OutInConversionTrackFinder::tracks().
Definition at line 65 of file ConversionTrackFinder.h.
Referenced by ConversionTrackFinder(), setEventSetup(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), and ~ConversionTrackFinder().
const MeasurementTracker* ConversionTrackFinder::theMeasurementTracker_ [protected] |
Definition at line 62 of file ConversionTrackFinder.h.
Referenced by setEvent(), setEventSetup(), and OutInConversionTrackFinder::tracks().
std::string ConversionTrackFinder::theMeasurementTrackerName_ [protected] |
Definition at line 61 of file ConversionTrackFinder.h.
Referenced by ConversionTrackFinder(), and setEventSetup().
const MagneticField* ConversionTrackFinder::theMF_ [protected] |
Definition at line 59 of file ConversionTrackFinder.h.
edm::ESHandle<Propagator> ConversionTrackFinder::thePropagator_ [protected] |
Definition at line 69 of file ConversionTrackFinder.h.
Referenced by setEventSetup(), InOutConversionTrackFinder::tracks(), and OutInConversionTrackFinder::tracks().
const TrackerGeometry* ConversionTrackFinder::theTrackerGeom_ [protected] |
Definition at line 66 of file ConversionTrackFinder.h.
Referenced by setEventSetup().
KFUpdator* ConversionTrackFinder::theUpdator_ [protected] |
Definition at line 67 of file ConversionTrackFinder.h.
bool ConversionTrackFinder::useSplitHits_ [protected] |
Definition at line 71 of file ConversionTrackFinder.h.
Referenced by ConversionTrackFinder(), InOutConversionTrackFinder::tracks(), and OutInConversionTrackFinder::tracks().