CMS 3D CMS Logo

TrackCollectionTokens.h
Go to the documentation of this file.
1 #ifndef TrackingToolsPatternToolsTrackCollectionTokens_H
2 #define TrackingToolsPatternToolsTrackCollectionTokens_H
3 
6 
10 
12 
13 
16  hTrackToken_( iC.consumes<reco::TrackCollection>( tag ) ),
17  hTrajToken_( iC.mayConsume< std::vector<Trajectory> >( tag ) ),
18  hIndToken_( iC.mayConsume< std::vector<int> >( tag ) ),
19  hTTAssToken_( iC.mayConsume< TrajTrackAssociationCollection >( tag ) ){}
20 
26 
27 
28  reco::TrackCollection const & tracks(edm::Event& evt) const {
30  evt.getByToken( hTrackToken_, h);
31  return *h;
32  }
33 
34  std::vector<Trajectory> const & trajectories(edm::Event& evt) const {
36  evt.getByToken( hTrajToken_, h );
37  return *h;
38  }
39 
40  std::vector<int> const & indicesInput(edm::Event& evt) const {
42  evt.getByToken( hIndToken_, h );
43  return *h;
44  }
45 
46 
47 };
48 
49 
50 #endif
51 
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:15
edm::EDGetTokenT< TrajTrackAssociationCollection > hTTAssToken_
std::vector< int > const & indicesInput(edm::Event &evt) const
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
edm::EDGetTokenT< std::vector< int > > hIndToken_
std::vector< Trajectory > const & trajectories(edm::Event &evt) const
reco::TrackCollection const & tracks(edm::Event &evt) const
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
fixed size matrix
TrackCollectionTokens(edm::InputTag const &tag, edm::ConsumesCollector &&iC)