CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TransientTrackBuilderESProducer.cc
Go to the documentation of this file.
4 #include "boost/mpl/vector.hpp"
6 
8 
9 #include <string>
10 #include <memory>
11 
12 using namespace edm;
13 
15 {
16  std::string myname = p.getParameter<std::string>("ComponentName");
17  pset_ = p;
18  setWhatProduced(this,myname);
19 }
20 
22 
23 boost::shared_ptr<TransientTrackBuilder>
25 
27  iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield );
28  edm::ESHandle<GlobalTrackingGeometry> theTrackingGeometry;
29  iRecord.getRecord<GlobalTrackingGeometryRecord>().get(theTrackingGeometry);
30 
31  _builder = boost::shared_ptr<TransientTrackBuilder>(
32  new TransientTrackBuilder(magfield.product(), theTrackingGeometry ));
33  return _builder;
34 
35 }
36 
37 
T getParameter(std::string const &) const
tuple magfield
Definition: HLT_ES_cff.py:2311
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
T const * product() const
Definition: ESHandle.h:62
boost::shared_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)