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
TSCBLBuilderNoMaterial.h
ESHandle.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TSCBLBuilderNoMaterialESProducer::~TSCBLBuilderNoMaterialESProducer
~TSCBLBuilderNoMaterialESProducer() override
Definition: TSCBLBuilderNoMaterialESProducer.cc:56
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
ESProducer.h
TrajectoryStateClosestToBeamLineBuilder.h
TSCBLBuilderNoMaterialESProducer
Definition: TSCBLBuilderNoMaterialESProducer.cc:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
TSCBLBuilderNoMaterialESProducer::TSCBLBuilderNoMaterialESProducer
TSCBLBuilderNoMaterialESProducer(const edm::ParameterSet &)
Definition: TSCBLBuilderNoMaterialESProducer.cc:47
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackingComponentsRecord.h
edm::es
Definition: es_Label.h:33
TSCBLBuilderNoMaterialESProducer::produce
ReturnType produce(const TrackingComponentsRecord &)
Definition: TSCBLBuilderNoMaterialESProducer.cc:66
edm::ESProducer
Definition: ESProducer.h:101
TSCBLBuilderNoMaterialESProducer::ReturnType
std::unique_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
Definition: TSCBLBuilderNoMaterialESProducer.cc:28
TrackingComponentsRecord
Definition: TrackingComponentsRecord.h:12