Main Page
Namespaces
Classes
Package Documentation
RecoMTD
TransientTrackingRecHit
plugins
MTDTransientTrackingRecHitBuilderESProducer.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
#include "
TrackingTools/Records/interface/TransientRecHitRecord.h
"
3
4
#include "
RecoMTD/TransientTrackingRecHit/interface/MTDTransientTrackingRecHitBuilder.h
"
5
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
FWCore/Framework/interface/ESHandle.h
"
8
9
#include "
Geometry/Records/interface/GlobalTrackingGeometryRecord.h
"
10
#include "
Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h
"
11
#include "
TrackingTools/Records/interface/TransientRecHitRecord.h
"
12
13
#include<memory>
14
15
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHitBuilder.h
"
16
17
#include "
FWCore/Framework/interface/ESProducer.h
"
18
19
namespace
edm
{
class
ParameterSet
;}
20
21
class
TransientRecHitRecord
;
22
23
class
MTDTransientTrackingRecHitBuilderESProducer
:
public
edm::ESProducer
{
24
public
:
26
MTDTransientTrackingRecHitBuilderESProducer
(
const
edm::ParameterSet
&);
27
29
~
MTDTransientTrackingRecHitBuilderESProducer
()
override
=
default
;
30
31
// Operations
32
std::unique_ptr<TransientTrackingRecHitBuilder> produce(
const
TransientRecHitRecord
&);
33
34
protected
:
35
36
private
:
37
};
38
39
using namespace
edm
;
40
using namespace
std
;
41
42
MTDTransientTrackingRecHitBuilderESProducer::MTDTransientTrackingRecHitBuilderESProducer
(
const
ParameterSet
&
parameterSet
) {
43
44
setWhatProduced(
this
,parameterSet.
getParameter
<
string
>(
"ComponentName"
));
45
}
46
47
std::unique_ptr<TransientTrackingRecHitBuilder>
48
MTDTransientTrackingRecHitBuilderESProducer::produce
(
const
TransientRecHitRecord
& iRecord){
49
50
51
ESHandle<GlobalTrackingGeometry>
trackingGeometry;
52
iRecord.
getRecord
<
GlobalTrackingGeometryRecord
>().
get
(trackingGeometry);
53
54
return
std::make_unique<MTDTransientTrackingRecHitBuilder>(trackingGeometry);
55
}
56
57
#include "
FWCore/Framework/interface/ModuleFactory.h
"
58
#include "
FWCore/Utilities/interface/typelookup.h
"
59
60
DEFINE_FWK_EVENTSETUP_MODULE
(
MTDTransientTrackingRecHitBuilderESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
GlobalTrackingGeometryRecord.h
MTDTransientTrackingRecHitBuilder.h
EventSetup.h
std
Definition:
JetResolutionObject.h:80
GlobalTrackingGeometryRecord
Definition:
GlobalTrackingGeometryRecord.h:18
typelookup.h
TransientRecHitRecord
Definition:
TransientRecHitRecord.h:14
edm::ESProducer
Definition:
ESProducer.h:99
ParameterSet.h
TransientTrackingRecHitBuilder.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle< GlobalTrackingGeometry >
ESHandle.h
TransientRecHitRecord.h
MTDTransientTrackingRecHitBuilderESProducer
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:23
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
MTDTransientTrackingRecHitBuilderESProducer::MTDTransientTrackingRecHitBuilderESProducer
MTDTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:42
edm
HLT enums.
Definition:
AlignableModifier.h:17
MTDTransientTrackingRecHitBuilderESProducer::produce
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:48
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
GlobalTrackingGeometry.h
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance)
Definition:
Provenance.cc:11
Generated for CMSSW Reference Manual by
1.8.11