CMS 3D CMS Logo

CosmicParametersDefinerForTPESProducer.cc
Go to the documentation of this file.
5 
6 // system include files
7 #include <memory>
8 
12 
15 
17  // the following line is needed to tell the framework what
18  // data is being produced
19  std::string myName = iConfig.getParameter<std::string>("ComponentName");
20  setWhatProduced(this, myName);
21 
22  // now do what ever other initialization is needed
23  // conf_=iConfig;
24 }
25 
27  // do anything here that needs to be done at desctruction time
28  // (e.g. close files, deallocate resources etc.)
29 }
30 
31 //
32 // member functions
33 //
34 
35 // ------------ method called to produce the data ------------
37  const TrackAssociatorRecord &iRecord) {
38  return std::make_unique<CosmicParametersDefinerForTP>();
39 }
40 
41 // define this as a plug-in
CosmicParametersDefinerForTPESProducer::produce
std::unique_ptr< CosmicParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition: CosmicParametersDefinerForTPESProducer.cc:36
ESHandle.h
CosmicParametersDefinerForTPESProducer.h
CosmicParametersDefinerForTPESProducer
Definition: CosmicParametersDefinerForTPESProducer.h:12
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
ESProducer.h
CosmicParametersDefinerForTPESProducer::CosmicParametersDefinerForTPESProducer
CosmicParametersDefinerForTPESProducer(const edm::ParameterSet &p)
Definition: CosmicParametersDefinerForTPESProducer.cc:16
CosmicParametersDefinerForTPESProducer::ReturnType
std::unique_ptr< CosmicParametersDefinerForTP > ReturnType
Definition: CosmicParametersDefinerForTPESProducer.h:13
TrackAssociatorRecord
Definition: TrackAssociatorRecord.h:18
CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer
~CosmicParametersDefinerForTPESProducer() override
Definition: CosmicParametersDefinerForTPESProducer.cc:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
TrackAssociatorRecord.h
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParameterSet.h