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
int iEvent
Definition: GenABIO.cc:224
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)
#define debug
Definition: HDRShower.cc:19
simTkInfo matchedSimTrackInfo(unsigned int simTkId, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)
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)
bool validSimTrack(unsigned int simTkId, edm::SimTrackContainer::const_iterator thisTrkItr, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)
edm::SimTrackContainer::const_iterator parentSimTrack(edm::SimTrackContainer::const_iterator thisTrkItr, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, bool debug=false)