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_
const MagneticFieldtheMF_
const TrackerGeometrytheTrackerGeom_
KFUpdatortheUpdator_

Detailed Description

Id:
ConversionTrackFinder.h,v 1.8 2008/05/08 20:40:44 nancy Exp
Date:
2008/05/08 20:40:44
Revision:
1.8
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 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_;

}

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 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]

Member Data Documentation

Definition at line 59 of file ConversionTrackFinder.h.

Definition at line 65 of file ConversionTrackFinder.h.

Referenced by setEventSetup().

Definition at line 66 of file ConversionTrackFinder.h.