test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::TrackCollection
hTrackToken_
 source collection label More...
 
edm::EDGetTokenT< std::vector
< Trajectory > > 
hTrajToken_
 
edm::EDGetTokenT
< TrajTrackAssociationCollection
hTTAssToken_
 

Detailed Description

Definition at line 14 of file TrackCollectionTokens.h.

Constructor & Destructor Documentation

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

Definition at line 15 of file TrackCollectionTokens.h.

15  :
17  hTrajToken_( iC.mayConsume< std::vector<Trajectory> >( tag ) ),
18  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< TrajTrackAssociationCollection > hTTAssToken_
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
edm::EDGetTokenT< std::vector< int > > hIndToken_
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_

Member Function Documentation

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

Definition at line 40 of file TrackCollectionTokens.h.

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

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

Definition at line 28 of file TrackCollectionTokens.h.

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

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

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

Definition at line 34 of file TrackCollectionTokens.h.

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

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

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

Member Data Documentation

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

Definition at line 24 of file TrackCollectionTokens.h.

Referenced by indicesInput().

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

source collection label

Definition at line 22 of file TrackCollectionTokens.h.

Referenced by tracks().

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

Definition at line 23 of file TrackCollectionTokens.h.

Referenced by trajectories().

edm::EDGetTokenT< TrajTrackAssociationCollection > TrackCollectionTokens::hTTAssToken_

Definition at line 25 of file TrackCollectionTokens.h.