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 
8 // system include files
9 #include <memory>
10 
11 // user include files
15 
19 
20 
21 //
22 // class decleration
23 //
24 
26  public:
29 
30  typedef std::unique_ptr<TrajectoryStateClosestToBeamLineBuilder> ReturnType;
31 
32  ReturnType produce(const TrackingComponentsRecord&);
33  private:
34  // ----------member data ---------------------------
35 };
36 
37 //
38 // constants, enums and typedefs
39 //
40 
41 //
42 // static data member definitions
43 //
44 
45 //
46 // constructors and destructor
47 //
49 {
50  //the following line is needed to tell the framework what
51  // data is being produced
52  std::string myName = p.getParameter<std::string>("ComponentName");
53  setWhatProduced(this,myName);
54 
55  //now do what ever other initialization is needed
56 }
57 
58 
60 {
61 
62  // do anything here that needs to be done at desctruction time
63  // (e.g. close files, deallocate resources etc.)
64 
65 }
66 
67 
68 //
69 // member functions
70 //
71 
72 // ------------ method called to produce the data ------------
75 {
76  using namespace edm::es;
77  auto pTSCBLBuilderNoMaterial = std::make_unique<TSCBLBuilderNoMaterial>() ;
78 
79 
80  return pTSCBLBuilderNoMaterial ;
81 }
82 
83 //define this as a plug-in
T getParameter(std::string const &) const
std::unique_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const TrackingComponentsRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TSCBLBuilderNoMaterialESProducer(const edm::ParameterSet &)