CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QuickTrackAssociatorByHitsESProducer.cc
Go to the documentation of this file.
1 #include "SimTracker/TrackAssociatorESProducer/src/QuickTrackAssociatorByHitsESProducer.hh"
2 
7 
8 QuickTrackAssociatorByHitsESProducer::QuickTrackAssociatorByHitsESProducer( const edm::ParameterSet& config )
9 {
10  // Tell the framework what's being produced
11  std::string componentName=config.getParameter<std::string>("ComponentName");
12  setWhatProduced(this,componentName);
13 
14  //now do what ever other initialization is needed
15  config_=config;
16 }
17 
18 std::auto_ptr<TrackAssociatorBase> QuickTrackAssociatorByHitsESProducer::produce( const TrackAssociatorRecord& record )
19 {
20  //using namespace edm::es;
21  edm::ESHandle<MagneticField> magneticField;
22  record.getRecord<IdealMagneticFieldRecord>().get(magneticField);
23  std::auto_ptr<TrackAssociatorBase> pTrackAssociatorBase( new QuickTrackAssociatorByHits(config_) );
24  return pTrackAssociatorBase ;
25 }
T getParameter(std::string const &) const
TrackAssociator that associates by hits a bit quicker than the normal TrackAssociatorByHits class...
JetCorrectorParameters::Record record
Definition: classes.h:7