CMS 3D CMS Logo

Classes | Public Member Functions | Protected Attributes

ConversionTrackFinder Class Reference

#include <ConversionTrackFinder.h>

Inheritance diagram for ConversionTrackFinder:
InOutConversionTrackFinder OutInConversionTrackFinder

List of all members.

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< 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_.

                                                                           :  
  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_;

}

Member Function Documentation

void ConversionTrackFinder::setEvent ( const edm::Event 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(), AlCaHLTBitMon_QueryRunRegistry::string, 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]

Member Data Documentation

Definition at line 61 of file ConversionTrackFinder.h.

Referenced by ConversionTrackFinder(), and setEventSetup().

Definition at line 59 of file ConversionTrackFinder.h.

Definition at line 66 of file ConversionTrackFinder.h.

Referenced by setEventSetup().

Definition at line 67 of file ConversionTrackFinder.h.