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 
15  : hTrackToken_(iC.consumes<reco::TrackCollection>(tag)),
16  hTrajToken_(iC.mayConsume<std::vector<Trajectory>>(tag)),
17  hIndToken_(iC.mayConsume<std::vector<int>>(tag)),
19 
25 
29  return *h;
30  }
31 
32  std::vector<Trajectory> const& trajectories(edm::Event& evt) const {
34  evt.getByToken(hTrajToken_, h);
35  return *h;
36  }
37 
38  std::vector<int> const& indicesInput(edm::Event& evt) const {
40  evt.getByToken(hIndToken_, h);
41  return *h;
42  }
43 };
44 
45 #endif
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
std::vector< int > const & indicesInput(edm::Event &evt) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
edm::EDGetTokenT< std::vector< Trajectory > > hTrajToken_
std::vector< Trajectory > const & trajectories(edm::Event &evt) const
edm::EDGetTokenT< TrajTrackAssociationCollection > hTTAssToken_
fixed size matrix
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
reco::TrackCollection const & tracks(edm::Event &evt) const
TrackCollectionTokens(edm::InputTag const &tag, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< std::vector< int > > hIndToken_