Revision: | 1.1 |
Committed: | Sun Oct 9 14:08:57 2011 UTC (13 years, 7 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, HEAD |
Branch point for: | Mit_025c_branch |
Log Message: | add dummy track producer |
# | User | Rev | Content |
---|---|---|---|
1 | bendavid | 1.1 | // $Id: VertexZProducer.cc,v 1.2 2011/04/23 19:13:13 bendavid Exp $ |
2 | |||
3 | #include "MitEdm/Producers/interface/DummyTrackProducer.h" | ||
4 | #include "DataFormats/TrackReco/interface/Track.h" | ||
5 | #include "DataFormats/TrackReco/interface/TrackFwd.h" | ||
6 | #include "FWCore/Framework/interface/MakerMacros.h" | ||
7 | |||
8 | using namespace std; | ||
9 | using namespace edm; | ||
10 | |||
11 | |||
12 | //-------------------------------------------------------------------------------------------------- | ||
13 | DummyTrackProducer::DummyTrackProducer(const ParameterSet ¶meters) | ||
14 | { | ||
15 | // Constructor. | ||
16 | |||
17 | produces<reco::TrackCollection>(); | ||
18 | |||
19 | } | ||
20 | |||
21 | //-------------------------------------------------------------------------------------------------- | ||
22 | DummyTrackProducer::~DummyTrackProducer() | ||
23 | { | ||
24 | // Destructor. | ||
25 | } | ||
26 | |||
27 | //-------------------------------------------------------------------------------------------------- | ||
28 | void DummyTrackProducer::produce(Event &iEvent, const EventSetup &iSetup) | ||
29 | { | ||
30 | // Produce empty track collection. | ||
31 | |||
32 | // Create the output collection | ||
33 | auto_ptr<reco::TrackCollection> pD(new reco::TrackCollection()); | ||
34 | iEvent.put(pD); | ||
35 | |||
36 | } | ||
37 | |||
38 | |||
39 | // define this as a plug-in | ||
40 | DEFINE_FWK_MODULE(DummyTrackProducer); | ||
41 |