18 |
|
using namespace mitedm; |
19 |
|
using namespace edm; |
20 |
|
|
21 |
< |
HitDropperESProducer::HitDropperESProducer(const edm::ParameterSet & p) |
21 |
> |
//-------------------------------------------------------------------------------------------------- |
22 |
> |
HitDropperESProducer::HitDropperESProducer(const edm::ParameterSet &p) |
23 |
|
{ |
24 |
+ |
// Constructor. |
25 |
+ |
|
26 |
|
std::string myname = p.getParameter<std::string>("ComponentName"); |
27 |
|
pset_ = p; |
28 |
|
setWhatProduced(this,myname); |
29 |
|
} |
30 |
|
|
31 |
< |
HitDropperESProducer::~HitDropperESProducer() {} |
31 |
> |
//-------------------------------------------------------------------------------------------------- |
32 |
> |
HitDropperESProducer::~HitDropperESProducer() |
33 |
> |
{ |
34 |
> |
// Destructor. |
35 |
> |
} |
36 |
|
|
37 |
+ |
//-------------------------------------------------------------------------------------------------- |
38 |
|
boost::shared_ptr<HitDropper> |
39 |
< |
HitDropperESProducer::produce(const HitDropperRecord & iRecord){ |
39 |
> |
HitDropperESProducer::produce(const HitDropperRecord &iRecord) |
40 |
> |
{ |
41 |
> |
// Create hit dropper object. |
42 |
|
|
43 |
|
//get tracker geometry |
44 |
|
edm::ESHandle<TrackerGeometry> hTracker; |
56 |
|
const GeometricSearchTracker *trackerSearch = hTrackerSearch.product(); |
57 |
|
|
58 |
|
_dropper = boost::shared_ptr<HitDropper>( |
59 |
< |
new HitDropper(trackerGeo, builder, trackerSearch)); |
59 |
> |
new HitDropper(trackerGeo, builder, trackerSearch)); |
60 |
|
|
61 |
|
return _dropper; |
52 |
– |
|
62 |
|
} |