CMS 3D CMS Logo

TSCBLBuilderNoMaterialESProducer.cc
Go to the documentation of this file.
1 //
2 // Original Author: Boris Mangano
3 // Created: Sat Mar 28 20:13:08 CET 2009
4 //
5 //
6 
7 // system include files
8 #include <memory>
9 
10 // user include files
14 
18 
19 //
20 // class decleration
21 //
22 
24 public:
27 
28  typedef std::unique_ptr<TrajectoryStateClosestToBeamLineBuilder> ReturnType;
29 
31 
32 private:
33  // ----------member data ---------------------------
34 };
35 
36 //
37 // constants, enums and typedefs
38 //
39 
40 //
41 // static data member definitions
42 //
43 
44 //
45 // constructors and destructor
46 //
48  //the following line is needed to tell the framework what
49  // data is being produced
50  std::string myName = p.getParameter<std::string>("ComponentName");
51  setWhatProduced(this, myName);
52 
53  //now do what ever other initialization is needed
54 }
55 
57  // do anything here that needs to be done at desctruction time
58  // (e.g. close files, deallocate resources etc.)
59 }
60 
61 //
62 // member functions
63 //
64 
65 // ------------ method called to produce the data ------------
67  const TrackingComponentsRecord& iRecord) {
68  using namespace edm::es;
69  auto pTSCBLBuilderNoMaterial = std::make_unique<TSCBLBuilderNoMaterial>();
70 
71  return pTSCBLBuilderNoMaterial;
72 }
73 
74 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
std::unique_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
ReturnType produce(const TrackingComponentsRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
TSCBLBuilderNoMaterialESProducer(const edm::ParameterSet &)