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::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

◆ indicesInput()

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

Definition at line 38 of file TrackCollectionTokens.h.

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

38  {
40  evt.getByToken(hIndToken_, h);
41  return *h;
42  }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
edm::EDGetTokenT< std::vector< int > > hIndToken_

◆ tracks()

reco::TrackCollection const& TrackCollectionTokens::tracks ( edm::Event evt) const
inline

Definition at line 26 of file TrackCollectionTokens.h.

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

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

26  {
29  return *h;
30  }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ trajectories()

std::vector<Trajectory> const& TrackCollectionTokens::trajectories ( edm::Event evt) const
inline

Definition at line 32 of file TrackCollectionTokens.h.

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

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

32  {
34  evt.getByToken(hTrajToken_, h);
35  return *h;
36  }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

Member Data Documentation

◆ hIndToken_

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

Definition at line 23 of file TrackCollectionTokens.h.

Referenced by indicesInput().

◆ hTrackToken_

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

source collection label

Definition at line 21 of file TrackCollectionTokens.h.

Referenced by tracks().

◆ hTrajToken_

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

Definition at line 22 of file TrackCollectionTokens.h.

Referenced by trajectories().

◆ hTTAssToken_

edm::EDGetTokenT<TrajTrackAssociationCollection> TrackCollectionTokens::hTTAssToken_

Definition at line 24 of file TrackCollectionTokens.h.