Main Page
Namespaces
Classes
Package Documentation
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
8
// system include files
9
#include <memory>
10
11
// user include files
12
#include "
FWCore/Framework/interface/ModuleFactory.h
"
13
#include "
FWCore/Framework/interface/ESProducer.h
"
14
#include "
FWCore/Framework/interface/ESHandle.h
"
15
16
#include "
TrackingTools/PatternTools/interface/TrajectoryStateClosestToBeamLineBuilder.h
"
17
#include "
TrackingTools/PatternTools/interface/TSCBLBuilderNoMaterial.h
"
18
#include "
TrackingTools/Records/interface/TrackingComponentsRecord.h
"
19
20
21
//
22
// class decleration
23
//
24
25
class
TSCBLBuilderNoMaterialESProducer
:
public
edm::ESProducer
{
26
public
:
27
TSCBLBuilderNoMaterialESProducer
(
const
edm::ParameterSet
&);
28
~TSCBLBuilderNoMaterialESProducer
()
override
;
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
//
48
TSCBLBuilderNoMaterialESProducer::TSCBLBuilderNoMaterialESProducer
(
const
edm::ParameterSet
&
p
)
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
59
TSCBLBuilderNoMaterialESProducer::~TSCBLBuilderNoMaterialESProducer
()
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 ------------
73
TSCBLBuilderNoMaterialESProducer::ReturnType
74
TSCBLBuilderNoMaterialESProducer::produce
(
const
TrackingComponentsRecord
& iRecord)
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
84
DEFINE_FWK_EVENTSETUP_MODULE
(
TSCBLBuilderNoMaterialESProducer
);
TrackingComponentsRecord.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:13
TSCBLBuilderNoMaterialESProducer::ReturnType
std::unique_ptr< TrajectoryStateClosestToBeamLineBuilder > ReturnType
Definition:
TSCBLBuilderNoMaterialESProducer.cc:30
edm::ESProducer
Definition:
ESProducer.h:99
edm::es
Definition:
es_Label.h:33
TSCBLBuilderNoMaterialESProducer::produce
ReturnType produce(const TrackingComponentsRecord &)
Definition:
TSCBLBuilderNoMaterialESProducer.cc:74
ESHandle.h
TSCBLBuilderNoMaterial.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
TSCBLBuilderNoMaterialESProducer::TSCBLBuilderNoMaterialESProducer
TSCBLBuilderNoMaterialESProducer(const edm::ParameterSet &)
Definition:
TSCBLBuilderNoMaterialESProducer.cc:48
TSCBLBuilderNoMaterialESProducer::~TSCBLBuilderNoMaterialESProducer
~TSCBLBuilderNoMaterialESProducer() override
Definition:
TSCBLBuilderNoMaterialESProducer.cc:59
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
TrajectoryStateClosestToBeamLineBuilder.h
TSCBLBuilderNoMaterialESProducer
Definition:
TSCBLBuilderNoMaterialESProducer.cc:25
Generated for CMSSW Reference Manual by
1.8.11