#include <RecoTrackAccumulator.h>
Public Member Functions | |
virtual void | accumulate (edm::Event const &e, edm::EventSetup const &c) |
virtual void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c) |
virtual void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) |
RecoTrackAccumulator (const edm::ParameterSet &conf, edm::EDProducer &mixMod) | |
virtual | ~RecoTrackAccumulator () |
Private Attributes | |
edm::InputTag | GeneralTrackInput_ |
std::string | GeneralTrackOutput_ |
std::auto_ptr < reco::TrackCollection > | NewTrackList_ |
RecoTrackAccumulator accumulates generalTracks from the hard and the pileup events
Definition at line 40 of file RecoTrackAccumulator.h.
RecoTrackAccumulator::RecoTrackAccumulator | ( | const edm::ParameterSet & | conf, |
edm::EDProducer & | mixMod | ||
) | [explicit] |
Definition at line 4 of file RecoTrackAccumulator.cc.
References GeneralTrackInput_, GeneralTrackOutput_, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ GeneralTrackInput_ = conf.getParameter<edm::InputTag>("GeneralTrackInput"); GeneralTrackOutput_ = conf.getParameter<std::string>("GeneralTrackOutput"); mixMod.produces<reco::TrackCollection>(GeneralTrackOutput_); }
RecoTrackAccumulator::~RecoTrackAccumulator | ( | ) | [virtual] |
Definition at line 12 of file RecoTrackAccumulator.cc.
{ }
void RecoTrackAccumulator::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements DigiAccumulatorMixMod.
Definition at line 22 of file RecoTrackAccumulator.cc.
References GeneralTrackInput_, edm::Event::getByLabel(), edm::HandleBase::isValid(), NewTrackList_, and testEve_cfg::tracks.
{ edm::Handle<reco::TrackCollection> tracks; e.getByLabel(GeneralTrackInput_, tracks); if (tracks.isValid()) { for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) { NewTrackList_->push_back(*track); } } }
void RecoTrackAccumulator::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements DigiAccumulatorMixMod.
Definition at line 36 of file RecoTrackAccumulator.cc.
References GeneralTrackInput_, PileUpEventPrincipal::getByLabel(), edm::HandleBase::isValid(), NewTrackList_, and testEve_cfg::tracks.
{ edm::Handle<reco::TrackCollection> tracks; e.getByLabel(GeneralTrackInput_, tracks); if (tracks.isValid()) { for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) { NewTrackList_->push_back(*track); } } }
void RecoTrackAccumulator::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements DigiAccumulatorMixMod.
Definition at line 50 of file RecoTrackAccumulator.cc.
References GeneralTrackOutput_, NewTrackList_, and edm::Event::put().
{ e.put( NewTrackList_, GeneralTrackOutput_ ); }
void RecoTrackAccumulator::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements DigiAccumulatorMixMod.
Definition at line 16 of file RecoTrackAccumulator.cc.
References NewTrackList_.
{ NewTrackList_ = std::auto_ptr<reco::TrackCollection>(new reco::TrackCollection()); }
Definition at line 53 of file RecoTrackAccumulator.h.
Referenced by accumulate(), and RecoTrackAccumulator().
std::string RecoTrackAccumulator::GeneralTrackOutput_ [private] |
Definition at line 54 of file RecoTrackAccumulator.h.
Referenced by finalizeEvent(), and RecoTrackAccumulator().
std::auto_ptr<reco::TrackCollection> RecoTrackAccumulator::NewTrackList_ [private] |
Definition at line 52 of file RecoTrackAccumulator.h.
Referenced by accumulate(), finalizeEvent(), and initializeEvent().