CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TrackCollectionTokens Struct Reference

#include <TrackCollectionTokens.h>

Public Member Functions

std::vector< int > const & indicesInput (edm::Event &evt) const
 
 TrackCollectionTokens (edm::InputTag const &tag, edm::ConsumesCollector &&iC)
 
reco::TrackCollection const & tracks (edm::Event &evt) const
 
std::vector< Trajectory > const & trajectories (edm::Event &evt) const
 

Public Attributes

edm::EDGetTokenT< std::vector< int > > hIndToken_
 
edm::EDGetTokenT< reco::TrackCollectionhTrackToken_
 source collection label More...
 
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
 
edm::EDGetTokenT< TrajTrackAssociationCollectionhTTAssToken_
 

Detailed Description

Definition at line 13 of file TrackCollectionTokens.h.

Constructor & Destructor Documentation

TrackCollectionTokens::TrackCollectionTokens ( edm::InputTag const &  tag,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 14 of file TrackCollectionTokens.h.

16  hTrajToken_(iC.mayConsume<std::vector<Trajectory>>(tag)),
17  hIndToken_(iC.mayConsume<std::vector<int>>(tag)),
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > hTTAssToken_
edm::EDGetTokenT< std::vector< int > > hIndToken_

Member Function Documentation

std::vector<int> const& TrackCollectionTokens::indicesInput ( edm::Event evt) const
inline

Definition at line 38 of file TrackCollectionTokens.h.

References edm::Event::getByToken(), and h.

38  {
40  evt.getByToken(hIndToken_, h);
41  return *h;
42  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
edm::EDGetTokenT< std::vector< int > > hIndToken_
reco::TrackCollection const& TrackCollectionTokens::tracks ( edm::Event evt) const
inline

Definition at line 26 of file TrackCollectionTokens.h.

References edm::Event::getByToken(), and h.

Referenced by TrackCollectionCloner::Producer::operator()(), FastTrackerRecHitMaskProducer::produce(), and HLTMuonTrackSelector::produce().

26  {
28  evt.getByToken(hTrackToken_, h);
29  return *h;
30  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
std::vector<Trajectory> const& TrackCollectionTokens::trajectories ( edm::Event evt) const
inline

Definition at line 32 of file TrackCollectionTokens.h.

References edm::Event::getByToken(), and h.

Referenced by TrackCollectionCloner::Producer::operator()().

32  {
34  evt.getByToken(hTrajToken_, h);
35  return *h;
36  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_

Member Data Documentation

edm::EDGetTokenT<std::vector<int> > TrackCollectionTokens::hIndToken_

Definition at line 23 of file TrackCollectionTokens.h.

edm::EDGetTokenT<reco::TrackCollection> TrackCollectionTokens::hTrackToken_

source collection label

Definition at line 21 of file TrackCollectionTokens.h.

edm::EDGetTokenT<std::vector<Trajectory> > TrackCollectionTokens::hTrajToken_

Definition at line 22 of file TrackCollectionTokens.h.

edm::EDGetTokenT<TrajTrackAssociationCollection> TrackCollectionTokens::hTTAssToken_

Definition at line 24 of file TrackCollectionTokens.h.