CMS 3D CMS Logo

MatchingSimTrack.h
Go to the documentation of this file.
1 #ifndef CalibrationIsolatedParticlesMatchingSimTrack_h
2 #define CalibrationIsolatedParticlesMatchingSimTrack_h
3 
4 // system include files
5 #include <memory>
6 #include <map>
7 #include <vector>
8 
9 // user include files
11 
13 
17 
18 //sim track
23 
26 
27 namespace spr {
28 
29  struct simTkInfo {
31  found = false;
32  pdgId = 0;
33  charge = -99;
34  }
35  bool found;
36  int pdgId;
37  double charge;
38  };
39 
40  //Returns iterator to the SimTrack matching to the given Reco Track
41  edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event& iEvent,
44  const reco::Track* pTrack,
45  TrackerHitAssociator& associate,
46  bool debug = false);
47 
48  std::vector<int> matchedSimTrackId(const edm::Event&,
51  const reco::Track* pTrack,
52  TrackerHitAssociator& associate,
53  bool debug = false);
54 
55  simTkInfo matchedSimTrackInfo(unsigned int simTkId,
58  bool debug = false);
59 
60  bool validSimTrack(unsigned int simTkId,
61  edm::SimTrackContainer::const_iterator thisTrkItr,
64  bool debug = false);
65 
66  //Returns the parent SimTrack of given SimTrack
67  edm::SimTrackContainer::const_iterator parentSimTrack(edm::SimTrackContainer::const_iterator thisTrkItr,
70  bool debug = false);
71 } // namespace spr
72 
73 #endif
Handle.h
spr
Definition: CaloConstants.h:6
TrackerHitAssociator.h
edm::Handle< edm::SimTrackContainer >
spr::matchedSimTrackInfo
simTkInfo matchedSimTrackInfo(unsigned int simTkId, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)
Definition: MatchingSimTrack.cc:114
debug
#define debug
Definition: HDRShower.cc:19
Track.h
TrackFwd.h
SimVertex.h
reco::Track
Definition: Track.h:27
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
TrackAssociatorRecord.h
spr::simTkInfo::pdgId
int pdgId
Definition: MatchingSimTrack.h:36
TrackerHitAssociator
Definition: TrackerHitAssociator.h:55
Frameworkfwd.h
spr::matchedSimTrack
edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event &iEvent, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, bool debug=false)
Definition: MatchingSimTrack.cc:12
spr::validSimTrack
bool validSimTrack(unsigned int simTkId, edm::SimTrackContainer::const_iterator thisTrkItr, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)
Definition: MatchingSimTrack.cc:149
spr::simTkInfo::found
bool found
Definition: MatchingSimTrack.h:35
SimTrack.h
spr::matchedSimTrackId
std::vector< int > matchedSimTrackId(const edm::Event &, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, bool debug=false)
Definition: MatchingSimTrack.cc:90
spr::simTkInfo
Definition: MatchingSimTrack.h:29
edm::Event
Definition: Event.h:73
spr::parentSimTrack
edm::SimTrackContainer::const_iterator parentSimTrack(edm::SimTrackContainer::const_iterator thisTrkItr, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)
Definition: MatchingSimTrack.cc:203
spr::simTkInfo::simTkInfo
simTkInfo()
Definition: MatchingSimTrack.h:30
spr::simTkInfo::charge
double charge
Definition: MatchingSimTrack.h:37
SimTrackContainer.h
SimVertexContainer.h