CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Attributes
ConversionTrackFinder Class Referenceabstract

#include <ConversionTrackFinder.h>

Inheritance diagram for ConversionTrackFinder:
InOutConversionTrackFinder OutInConversionTrackFinder

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. More...
 
virtual std::vector< Trajectorytracks (const TrajectorySeedCollection &seeds, TrackCandidateCollection &candidate) const =0
 
virtual ~ConversionTrackFinder ()
 

Protected Attributes

edm::ParameterSet conf_
 
const TrajectoryBuildertheCkfTrajectoryBuilder_
 
TransientInitialStateEstimatortheInitialState_
 
const MeasurementTrackertheMeasurementTracker_
 
std::string theMeasurementTrackerName_
 
const MagneticFieldtheMF_
 
edm::ESHandle< PropagatorthePropagator_
 
const TrackerGeometrytheTrackerGeom_
 
KFUpdatortheUpdator_
 
bool useSplitHits_
 

Detailed Description

Id:
ConversionTrackFinder.h,v 1.11 2013/05/23 17:57:02 gartung Exp
Date:
2013/05/23 17:57:02
Revision:
1.11
Author
Nancy Marinelli, U. of Notre Dame, US

Definition at line 32 of file ConversionTrackFinder.h.

Constructor & Destructor Documentation

ConversionTrackFinder::ConversionTrackFinder ( const edm::EventSetup es,
const edm::ParameterSet config 
)

Definition at line 15 of file ConversionTrackFinder.cc.

References conf_, edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, theInitialState_, theMeasurementTrackerName_, and useSplitHits_.

16  :
17  conf_(conf),
20  theTrackerGeom_(0),
21  theUpdator_(0),
22  thePropagator_(0)
23 {
24  // std::cout << " ConversionTrackFinder base CTOR " << std::endl;
25 
26  edm::ParameterSet tise_params = conf_.getParameter<edm::ParameterSet>("TransientInitialStateEstimatorParameters") ;
27  theInitialState_ = new TransientInitialStateEstimator( es, tise_params);
28  useSplitHits_ = conf_.getParameter<bool>("useHitsSplitting");
29 
30  theMeasurementTrackerName_ = conf.getParameter<std::string>("MeasurementTrackerName");
31 
32 }
T getParameter(std::string const &) const
const TrajectoryBuilder * theCkfTrajectoryBuilder_
edm::ESHandle< Propagator > thePropagator_
TransientInitialStateEstimator * theInitialState_
std::string theMeasurementTrackerName_
tuple conf
Definition: dbtoconf.py:185
const TrackerGeometry * theTrackerGeom_
ConversionTrackFinder::~ConversionTrackFinder ( )
virtual

Definition at line 35 of file ConversionTrackFinder.cc.

References theInitialState_.

35  {
36 
37 
38  delete theInitialState_;
39 
40 }
TransientInitialStateEstimator * theInitialState_

Member Function Documentation

void ConversionTrackFinder::setEvent ( const edm::Event e)

Definition at line 66 of file ConversionTrackFinder.cc.

References theMeasurementTracker_, and MeasurementTracker::update().

Referenced by ConversionTrackCandidateProducer::produce().

66  {
68 
69 
70 
71 }
virtual void update(const edm::Event &) const =0
const MeasurementTracker * theMeasurementTracker_
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< class >::product(), TransientInitialStateEstimator::setEventSetup(), AlCaHLTBitMon_QueryRunRegistry::string, theCkfTrajectoryBuilder_, theInitialState_, theMeasurementTracker_, theMeasurementTrackerName_, thePropagator_, and theTrackerGeom_.

Referenced by ConversionTrackCandidateProducer::setEventSetup().

43  {
44 
45  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
46  es.get<CkfComponentsRecord>().get(theMeasurementTrackerName_,measurementTrackerHandle);
47  theMeasurementTracker_ = measurementTrackerHandle.product();
48 
49  // set the TrajectoryBuilder
50  std::string trajectoryBuilderName = conf_.getParameter<std::string>("TrajectoryBuilder");
51  // std::cout << " ConversionTrackFinderBase tbName" << trajectoryBuilderName << std::endl;
52  edm::ESHandle<TrajectoryBuilder> theTrajectoryBuilderHandle;
53  es.get<CkfComponentsRecord>().get(trajectoryBuilderName,theTrajectoryBuilderHandle);
54  theCkfTrajectoryBuilder_ = theTrajectoryBuilderHandle.product();
55 
56  edm::ESHandle<TrackerGeometry> trackerHandle;
57  es.get<TrackerDigiGeometryRecord>().get(trackerHandle);
58  theTrackerGeom_= trackerHandle.product();
59 
60  es.get<TrackingComponentsRecord>().get("AnyDirectionAnalyticalPropagator",
62 
64 }
T getParameter(std::string const &) const
const TrajectoryBuilder * theCkfTrajectoryBuilder_
void setEventSetup(const edm::EventSetup &es)
Call this at each event until this object will come from the EventSetup as it should.
edm::ESHandle< Propagator > thePropagator_
TransientInitialStateEstimator * theInitialState_
std::string theMeasurementTrackerName_
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
const MeasurementTracker * theMeasurementTracker_
const TrackerGeometry * theTrackerGeom_
virtual std::vector<Trajectory> ConversionTrackFinder::tracks ( const TrajectorySeedCollection seeds,
TrackCandidateCollection candidate 
) const
pure virtual

Member Data Documentation

edm::ParameterSet ConversionTrackFinder::conf_
protected
const TrajectoryBuilder* ConversionTrackFinder::theCkfTrajectoryBuilder_
protected
TransientInitialStateEstimator* ConversionTrackFinder::theInitialState_
protected
const MeasurementTracker* ConversionTrackFinder::theMeasurementTracker_
protected
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
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