Revision: | 1.2 |
Committed: | Thu Apr 19 14:49:07 2007 UTC (18 years ago) by tboccali |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | CMSSW_1_6_8_pre1, CMSSW_1_6_7, CMSSW_1_6_6, CMSSW_1_6_5, CMSSW_1_6_5_pre1, CMSSW_1_6_4, CMSSW_1_7_0_pre5, CMSSW_1_6_3, CMSSW_1_6_1, CMSSW_1_7_0_pre4, CMSSW_1_7_0_pre3, CMSSW_1_7_0_pre2, CMSSW_1_6_0, CMSSW_1_6_0_pre14, CMSSW_1_7_0_pre1, CMSSW_1_6_0_DAQ3, CMSSW_1_6_0_pre13, CMSSW_1_6_0_pre12, CMSSW_1_6_0_pre11, CMSSW_1_6_0_pre10, CMSSW_1_6_0_pre9, CMSSW_1_6_0_pre8, CMSSW_1_5_4, CMSSW_1_6_0_pre7, CMSSW_1_5_3, CMSSW_1_6_0_pre6, CMSSW_1_6_0_DAQ1, CMSSW_1_6_0_pre5, CMSSW_1_6_0_pre4, CMSSW_1_5_2, CMSSW_1_6_0_pre3, CMSSW_1_6_0_pre2, CMSSW_1_6_0_pre1, CMSSW_1_5_1, CMSSW_1_5_0, CMSSW_1_5_0_pre6, CMSSW_1_5_0_pre5, CMSSW_1_5_0_pre4, CMSSW_1_5_0_pre3, CMSSW_1_5_0_pre2, CMSSW_1_5_0_pre1, V01-00-01 |
Branch point for: | FAMOS_1_6_0 |
Changes since 1.1: | +1 -1 lines |
Log Message: | fix plugin |
# | User | Rev | Content |
---|---|---|---|
1 | tboccali | 1.2 | #include "RecoTracker/GeometryESProducer/plugins/TrackerRecoGeometryESProducer.h" |
2 | mangano | 1.1 | #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 | |||
16 | using namespace edm; | ||
17 | |||
18 | TrackerRecoGeometryESProducer::TrackerRecoGeometryESProducer(const edm::ParameterSet & p) | ||
19 | { | ||
20 | setWhatProduced(this); | ||
21 | } | ||
22 | |||
23 | TrackerRecoGeometryESProducer::~TrackerRecoGeometryESProducer() {} | ||
24 | |||
25 | boost::shared_ptr<GeometricSearchTracker> | ||
26 | TrackerRecoGeometryESProducer::produce(const TrackerRecoGeometryRecord & iRecord){ | ||
27 | // | ||
28 | // get the DDCompactView first | ||
29 | // | ||
30 | edm::ESHandle<GeometricDet> gD; | ||
31 | edm::ESHandle<TrackerGeometry> tG; | ||
32 | iRecord.getRecord<IdealGeometryRecord>().get( gD ); | ||
33 | iRecord.getRecord<TrackerDigiGeometryRecord>().get(tG ); | ||
34 | GeometricSearchTrackerBuilder builder; | ||
35 | _tracker = boost::shared_ptr<GeometricSearchTracker>(builder.build( &(*gD), &(*tG) )); | ||
36 | return _tracker; | ||
37 | } | ||
38 | |||
39 | |||
40 | DEFINE_FWK_EVENTSETUP_MODULE(TrackerRecoGeometryESProducer); |