8 |
|
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h" |
9 |
|
#include "RecoTracker/Record/interface/TrackerRecoGeometryRecord.h" |
10 |
|
#include "TrackingTools/Records/interface/TransientTrackRecord.h" |
11 |
– |
|
12 |
– |
|
11 |
|
#include "FWCore/Framework/interface/ESHandle.h" |
14 |
– |
|
12 |
|
#include <string> |
13 |
|
#include <memory> |
14 |
|
|
15 |
|
using namespace mitedm; |
16 |
|
using namespace edm; |
17 |
|
|
18 |
< |
HitDropperESProducer::HitDropperESProducer(const edm::ParameterSet & p) |
18 |
> |
//-------------------------------------------------------------------------------------------------- |
19 |
> |
HitDropperESProducer::HitDropperESProducer(const edm::ParameterSet &p) |
20 |
|
{ |
21 |
+ |
// Constructor. |
22 |
+ |
|
23 |
|
std::string myname = p.getParameter<std::string>("ComponentName"); |
24 |
|
pset_ = p; |
25 |
|
setWhatProduced(this,myname); |
26 |
|
} |
27 |
|
|
28 |
< |
HitDropperESProducer::~HitDropperESProducer() {} |
28 |
> |
//-------------------------------------------------------------------------------------------------- |
29 |
> |
HitDropperESProducer::~HitDropperESProducer() |
30 |
> |
{ |
31 |
> |
// Destructor. |
32 |
> |
} |
33 |
|
|
34 |
< |
boost::shared_ptr<HitDropper> |
35 |
< |
HitDropperESProducer::produce(const HitDropperRecord & iRecord){ |
34 |
> |
//-------------------------------------------------------------------------------------------------- |
35 |
> |
boost::shared_ptr<HitDropper> HitDropperESProducer::produce(const HitDropperRecord &iRecord) |
36 |
> |
{ |
37 |
> |
// Create hit dropper object. |
38 |
|
|
39 |
|
//get tracker geometry |
40 |
|
edm::ESHandle<TrackerGeometry> hTracker; |
51 |
|
iRecord.getRecord<TrackerRecoGeometryRecord>().get(hTrackerSearch); |
52 |
|
const GeometricSearchTracker *trackerSearch = hTrackerSearch.product(); |
53 |
|
|
54 |
< |
_dropper = boost::shared_ptr<HitDropper>( |
55 |
< |
new HitDropper(trackerGeo, builder, trackerSearch)); |
50 |
< |
|
51 |
< |
return _dropper; |
52 |
< |
|
54 |
> |
dropper_ = boost::shared_ptr<HitDropper>(new HitDropper(trackerGeo, builder, trackerSearch)); |
55 |
> |
return dropper_; |
56 |
|
} |