CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTrackAccumulator.cc
Go to the documentation of this file.
1 #include "RecoTrackAccumulator.h"
3 
5 
6  GeneralTrackInput_ = conf.getParameter<edm::InputTag>("GeneralTrackInput");
7  GeneralTrackOutput_ = conf.getParameter<std::string>("GeneralTrackOutput");
8 
10 }
11 
13 
14 }
15 
17 
18  NewTrackList_ = std::auto_ptr<reco::TrackCollection>(new reco::TrackCollection());
19 
20 }
21 
23 
24 
26  e.getByLabel(GeneralTrackInput_, tracks);
27 
28  if (tracks.isValid()) {
29  for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
30  NewTrackList_->push_back(*track);
31  }
32  }
33 
34 }
35 
37 
38 
40  e.getByLabel(GeneralTrackInput_, tracks);
41 
42  if (tracks.isValid()) {
43  for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
44  NewTrackList_->push_back(*track);
45  }
46  }
47 
48 }
49 
51 
53 
54 }
55 
56 
T getParameter(std::string const &) const
edm::InputTag GeneralTrackInput_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
std::auto_ptr< reco::TrackCollection > NewTrackList_
RecoTrackAccumulator(const edm::ParameterSet &conf, edm::EDProducer &mixMod)
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
tuple conf
Definition: dbtoconf.py:185
tuple tracks
Definition: testEve_cfg.py:39
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c)
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const