src
TrackingTools
PatternTools
plugins
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
11
#include "
FWCore/Framework/interface/ModuleFactory.h
"
12
#include "
FWCore/Framework/interface/ESProducer.h
"
13
#include "
FWCore/Framework/interface/ESHandle.h
"
14
15
#include "
TrackingTools/PatternTools/interface/TrajectoryStateClosestToBeamLineBuilder.h
"
16
#include "
TrackingTools/PatternTools/interface/TSCBLBuilderNoMaterial.h
"
17
#include "
TrackingTools/Records/interface/TrackingComponentsRecord.h
"
18
19
//
20
// class decleration
21
//
22
23
class
TSCBLBuilderNoMaterialESProducer
:
public
edm::ESProducer
{
24
public
:
25
TSCBLBuilderNoMaterialESProducer
(
const
edm::ParameterSet
&);
26
~TSCBLBuilderNoMaterialESProducer
()
override
;
27
28
typedef
std::unique_ptr<TrajectoryStateClosestToBeamLineBuilder>
ReturnType
;
29
30
ReturnType
produce
(
const
TrackingComponentsRecord
&);
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
//
47
TSCBLBuilderNoMaterialESProducer::TSCBLBuilderNoMaterialESProducer
(
const
edm::ParameterSet
&
p
) {
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
56
TSCBLBuilderNoMaterialESProducer::~TSCBLBuilderNoMaterialESProducer
() {
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 ------------
66
TSCBLBuilderNoMaterialESProducer::ReturnType
TSCBLBuilderNoMaterialESProducer::produce
(
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
75
DEFINE_FWK_EVENTSETUP_MODULE
(
TSCBLBuilderNoMaterialESProducer
);
TrackingComponentsRecord.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:166
ModuleFactory.h
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:12
TSCBLBuilderNoMaterialESProducer::ReturnType
std::unique_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
Definition:
TSCBLBuilderNoMaterialESProducer.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ESProducer.h
edm::ESProducer
Definition:
ESProducer.h:104
edm::es
Definition:
es_Label.h:33
TSCBLBuilderNoMaterialESProducer::produce
ReturnType produce(const TrackingComponentsRecord &)
Definition:
TSCBLBuilderNoMaterialESProducer.cc:66
ESHandle.h
TSCBLBuilderNoMaterial.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:61
TSCBLBuilderNoMaterialESProducer::TSCBLBuilderNoMaterialESProducer
TSCBLBuilderNoMaterialESProducer(const edm::ParameterSet &)
Definition:
TSCBLBuilderNoMaterialESProducer.cc:47
TSCBLBuilderNoMaterialESProducer::~TSCBLBuilderNoMaterialESProducer
~TSCBLBuilderNoMaterialESProducer() override
Definition:
TSCBLBuilderNoMaterialESProducer.cc:56
edm::ParameterSet
Definition:
ParameterSet.h:48
TrajectoryStateClosestToBeamLineBuilder.h
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
TSCBLBuilderNoMaterialESProducer
Definition:
TSCBLBuilderNoMaterialESProducer.cc:23
Generated for CMSSW Reference Manual by
1.8.14