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)),

Member Function Documentation

◆ indicesInput()

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

Definition at line 38 of file TrackCollectionTokens.h.

38  {
40  evt.getByToken(hIndToken_, h);
41  return *h;
42  }

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

◆ tracks()

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

◆ trajectories()

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

Definition at line 32 of file TrackCollectionTokens.h.

32  {
34  evt.getByToken(hTrajToken_, h);
35  return *h;
36  }

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

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

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.

h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
edm::Handle
Definition: AssociativeIterator.h:50
TrackCollectionTokens::hTrajToken_
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
Definition: TrackCollectionTokens.h:22
TrackCollectionTokens::hTTAssToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > hTTAssToken_
Definition: TrackCollectionTokens.h:24
TrackCollectionTokens::hIndToken_
edm::EDGetTokenT< std::vector< int > > hIndToken_
Definition: TrackCollectionTokens.h:23
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:535
h
edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >
edm::ConsumesCollector::mayConsume
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
Definition: ConsumesCollector.h:72
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
TrackCollectionTokens::hTrackToken_
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
Definition: TrackCollectionTokens.h:21