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