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
TrackCollectionTokens
Definition: TrackCollectionTokens.h:13
edm::EDGetTokenT< reco::TrackCollection >
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
TrackCollectionTokens::trajectories
std::vector< Trajectory > const & trajectories(edm::Event &evt) const
Definition: TrackCollectionTokens.h:32
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::Handle< reco::TrackCollection >
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
TrackFwd.h
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:528
h
TrajTrackAssociation.h
Event.h
TrackCollectionTokens::indicesInput
std::vector< int > const & indicesInput(edm::Event &evt) const
Definition: TrackCollectionTokens.h:38
edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >
TrackCollectionTokens::tracks
reco::TrackCollection const & tracks(edm::Event &evt) const
Definition: TrackCollectionTokens.h:26
TrackCollectionTokens::TrackCollectionTokens
TrackCollectionTokens(edm::InputTag const &tag, edm::ConsumesCollector &&iC)
Definition: TrackCollectionTokens.h:14
createfilelist.int
int
Definition: createfilelist.py:10
InputTag.h
Trajectory.h
std
Definition: JetResolutionObject.h:76
Trajectory
Definition: Trajectory.h:38
ConsumesCollector.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
TrackCollectionTokens::hTrackToken_
edm::EDGetTokenT< reco::TrackCollection > hTrackToken_
source collection label
Definition: TrackCollectionTokens.h:21