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
#include "
FWCore/Utilities/interface/ESGetToken.h
"
19
20
class
TransientRecHitRecord
;
21
22
class
MTDTransientTrackingRecHitBuilderESProducer
:
public
edm::ESProducer
{
23
public
:
25
MTDTransientTrackingRecHitBuilderESProducer
(
const
edm::ParameterSet
&);
26
28
~MTDTransientTrackingRecHitBuilderESProducer
()
override
=
default
;
29
30
// Operations
31
std::unique_ptr<TransientTrackingRecHitBuilder>
produce
(
const
TransientRecHitRecord
&);
32
33
private
:
34
const
edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>
geomToken_
;
35
};
36
37
using namespace
edm
;
38
using namespace
std
;
39
40
MTDTransientTrackingRecHitBuilderESProducer::MTDTransientTrackingRecHitBuilderESProducer
(
41
const
ParameterSet
&
parameterSet
)
42
: geomToken_(setWhatProduced(this,
parameterSet
.getParameter<
string
>(
"ComponentName"
)).consumes()) {}
43
44
std::unique_ptr<TransientTrackingRecHitBuilder>
MTDTransientTrackingRecHitBuilderESProducer::produce
(
45
const
TransientRecHitRecord
& iRecord) {
46
return
std::make_unique<MTDTransientTrackingRecHitBuilder>(iRecord.
getHandle
(
geomToken_
));
47
}
48
49
#include "
FWCore/Framework/interface/ModuleFactory.h
"
50
#include "
FWCore/Utilities/interface/typelookup.h
"
51
52
DEFINE_FWK_EVENTSETUP_MODULE
(
MTDTransientTrackingRecHitBuilderESProducer
);
ESHandle.h
MTDTransientTrackingRecHitBuilderESProducer
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:22
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:87
edm
HLT enums.
Definition:
AlignableModifier.h:19
TransientRecHitRecord.h
MTDTransientTrackingRecHitBuilderESProducer::MTDTransientTrackingRecHitBuilderESProducer
MTDTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:40
TransientRecHitRecord
Definition:
TransientRecHitRecord.h:14
ESProducer.h
typelookup.h
ESGetToken.h
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition:
Provenance.cc:11
MTDTransientTrackingRecHitBuilderESProducer::geomToken_
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:34
MTDTransientTrackingRecHitBuilderESProducer::produce
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
Definition:
MTDTransientTrackingRecHitBuilderESProducer.cc:44
GlobalTrackingGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord >
ModuleFactory.h
std
Definition:
JetResolutionObject.h:76
MTDTransientTrackingRecHitBuilderESProducer::~MTDTransientTrackingRecHitBuilderESProducer
~MTDTransientTrackingRecHitBuilderESProducer() override=default
Destructor.
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
EventSetup.h
edm::ESProducer
Definition:
ESProducer.h:104
TransientTrackingRecHitBuilder.h
ParameterSet.h
GlobalTrackingGeometry.h
MTDTransientTrackingRecHitBuilder.h
Generated for CMSSW Reference Manual by
1.8.16