#include <TrackCollectionCloner.h>
Public Member Functions | |
void | operator() (Tokens const &tokens, std::vector< unsigned int > const &selected) |
process one event More... | |
Producer (edm::Event &ievt, TrackCollectionCloner const &cloner) | |
~Producer () | |
Public Attributes | |
bool | copyExtras_ |
copy only the tracks, not extras and rechits (for AOD) More... | |
bool | copyTrajectories_ |
copy also trajectories and trajectory->track associations More... | |
edm::Event & | evt |
the event More... | |
std::unique_ptr< TrackingRecHitCollection > | selHits_ |
std::unique_ptr< reco::TrackExtraCollection > | selTrackExtras_ |
std::unique_ptr< reco::TrackCollection > | selTracks_ |
std::unique_ptr< std::vector< Trajectory > > | selTrajs_ |
std::unique_ptr< TrajTrackAssociationCollection > | selTTAss_ |
Definition at line 58 of file TrackCollectionCloner.h.
TrackCollectionCloner::Producer::Producer | ( | edm::Event & | ievt, |
TrackCollectionCloner const & | cloner | ||
) |
Definition at line 9 of file TrackCollectionCloner.cc.
References copyExtras_, copyTrajectories_, evt, edm::Event::getRefBeforePut(), selHits_, selTrackExtras_, selTracks_, selTrajs_, and selTTAss_.
TrackCollectionCloner::Producer::~Producer | ( | ) |
Definition at line 82 of file TrackCollectionCloner.cc.
References copyExtras_, copyTrajectories_, evt, eostools::move(), edm::Event::put(), selHits_, selTrackExtras_, selTracks_, selTrajs_, and selTTAss_.
void TrackCollectionCloner::Producer::operator() | ( | Tokens const & | tokens, |
std::vector< unsigned int > const & | selected | ||
) |
process one event
Definition at line 25 of file TrackCollectionCloner.cc.
References copyExtras_, copyTrajectories_, evt, edm::Event::getRefBeforePut(), gen::k, selHits_, selTrackExtras_, selTracks_, selTrajs_, selTTAss_, TrackCollectionTokens::tracks(), and TrackCollectionTokens::trajectories().
bool TrackCollectionCloner::Producer::copyExtras_ |
copy only the tracks, not extras and rechits (for AOD)
Definition at line 66 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
bool TrackCollectionCloner::Producer::copyTrajectories_ |
copy also trajectories and trajectory->track associations
Definition at line 68 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
edm::Event& TrackCollectionCloner::Producer::evt |
the event
Definition at line 71 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
std::unique_ptr<TrackingRecHitCollection> TrackCollectionCloner::Producer::selHits_ |
Definition at line 75 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
std::unique_ptr<reco::TrackExtraCollection> TrackCollectionCloner::Producer::selTrackExtras_ |
Definition at line 74 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
std::unique_ptr<reco::TrackCollection> TrackCollectionCloner::Producer::selTracks_ |
Definition at line 73 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
std::unique_ptr< std::vector<Trajectory> > TrackCollectionCloner::Producer::selTrajs_ |
Definition at line 76 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().
std::unique_ptr< TrajTrackAssociationCollection > TrackCollectionCloner::Producer::selTTAss_ |
Definition at line 77 of file TrackCollectionCloner.h.
Referenced by operator()(), Producer(), and ~Producer().