Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
GeometryESProducer
plugins
TrackerRecoGeometryESProducer.cc
Go to the documentation of this file.
1
#include "
RecoTracker/GeometryESProducer/plugins/TrackerRecoGeometryESProducer.h
"
2
#include "
Geometry/TrackerNumberingBuilder/interface/GeometricDet.h
"
3
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
4
#include "
Geometry/Records/interface/IdealGeometryRecord.h
"
5
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
6
#include "
RecoTracker/TkDetLayers/interface/GeometricSearchTrackerBuilder.h
"
7
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
#include "
FWCore/Framework/interface/ModuleFactory.h
"
11
#include "
FWCore/Framework/interface/ESProducer.h
"
12
13
14
#include <memory>
15
#include <string>
16
17
using namespace
edm;
18
19
TrackerRecoGeometryESProducer::TrackerRecoGeometryESProducer
(
const
edm::ParameterSet
&
p
)
20
{
21
setWhatProduced(
this
);
22
// 08-Oct-2007 - Patrick Janot
23
// Allow several reco geometries to be created, corresponding to the labelled
24
// TrackerDigiGeometry's - that must created beforehand. Useful to handle an
25
// aligned and a misaligned geometry in the same job.
26
// The default parameter ("") makes this change transparent to the user
27
// See FastSimulation/Configuration/data/ for examples of cfi's.
28
geoLabel = p.
getUntrackedParameter
<std::string>(
"trackerGeometryLabel"
,
""
);
29
}
30
31
TrackerRecoGeometryESProducer::~TrackerRecoGeometryESProducer
() {}
32
33
boost::shared_ptr<GeometricSearchTracker>
34
TrackerRecoGeometryESProducer::produce
(
const
TrackerRecoGeometryRecord
& iRecord){
35
36
37
edm::ESHandle<TrackerGeometry>
tG;
38
iRecord.
getRecord
<
TrackerDigiGeometryRecord
>().
get
( geoLabel, tG );
39
GeometricSearchTrackerBuilder
builder;
40
_tracker = boost::shared_ptr<GeometricSearchTracker>(builder.
build
( tG->trackerDet(), &(*tG) ));
41
return
_tracker;
42
}
43
44
45
DEFINE_FWK_EVENTSETUP_MODULE
(
TrackerRecoGeometryESProducer
);
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
TrackerDigiGeometryRecord.h
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:12
TrackerRecoGeometryESProducer::produce
boost::shared_ptr< GeometricSearchTracker > produce(const TrackerRecoGeometryRecord &)
Definition:
TrackerRecoGeometryESProducer.cc:34
EventSetup.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
GeometricSearchTrackerBuilder
Definition:
GeometricSearchTrackerBuilder.h:13
GeometricDet.h
edm::ESHandle< TrackerGeometry >
ESHandle.h
GeometricSearchTrackerBuilder::build
GeometricSearchTracker * build(const GeometricDet *theGeometricTracker, const TrackerGeometry *theGeomDetGeometry)
Definition:
GeometricSearchTrackerBuilder.cc:22
GeometricSearchTrackerBuilder.h
TrackerRecoGeometryESProducer::~TrackerRecoGeometryESProducer
virtual ~TrackerRecoGeometryESProducer()
Definition:
TrackerRecoGeometryESProducer.cc:31
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:48
L1TEmulatorMonitor_cff.p
tuple p
Definition:
L1TEmulatorMonitor_cff.py:48
ESProducer.h
IdealGeometryRecord.h
TrackerRecoGeometryESProducer::TrackerRecoGeometryESProducer
TrackerRecoGeometryESProducer(const edm::ParameterSet &p)
Definition:
TrackerRecoGeometryESProducer.cc:19
TrackerGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:32
ModuleFactory.h
TrackerRecoGeometryESProducer
Definition:
TrackerRecoGeometryESProducer.h:11
TrackerDigiGeometryRecord
Definition:
TrackerDigiGeometryRecord.h:32
TrackerRecoGeometryESProducer.h
Generated for CMSSW Reference Manual by
1.8.5