test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TSCBLBuilderWithPropagatorESProducer.cc
Go to the documentation of this file.
1 //
2 // Original Author: Matt Rudolph
3 // Created: Sat Mar 28 20:13:08 CET 2009
4 //
5 //
6 
7 
8 // system include files
9 #include <memory>
10 #include "boost/shared_ptr.hpp"
11 
12 // user include files
16 
20 
21 
22 //
23 // class decleration
24 //
25 
27  public:
30 
31  typedef boost::shared_ptr<TrajectoryStateClosestToBeamLineBuilder> ReturnType;
32 
34  private:
35  // ----------member data ---------------------------
37 };
38 
39 //
40 // constants, enums and typedefs
41 //
42 
43 //
44 // static data member definitions
45 //
46 
47 //
48 // constructors and destructor
49 //
51 {
52  //the following line is needed to tell the framework what
53  // data is being produced
54  std::string myName = p.getParameter<std::string>("ComponentName");
55  pset_ = p;
56  setWhatProduced(this,myName);
57 
58  //now do what ever other initialization is needed
59 }
60 
61 
63 {
64 
65  // do anything here that needs to be done at desctruction time
66  // (e.g. close files, deallocate resources etc.)
67 
68 }
69 
70 
71 //
72 // member functions
73 //
74 
75 // ------------ method called to produce the data ------------
78 {
79  using namespace edm::es;
80  std::string propname = pset_.getParameter<std::string>("Propagator");
81 
83  iRecord.get(propname, theProp);
84 
85  const Propagator * pro = theProp.product();
86 
88 
89 
90  return pTSCBLBuilderWithPropagator ;
91 }
92 
93 //define this as a plug-in
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void get(HolderT &iHolder) const
boost::shared_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
ReturnType produce(const TrackingComponentsRecord &)