CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
25 
26 namespace spr {
27 
28  struct simTkInfo {
30  found = false;
31  pdgId = 0;
32  charge = -99;
33  }
34  bool found;
35  int pdgId;
36  double charge;
37  };
38 
39  //Returns iterator to the SimTrack matching to the given Reco Track
40  edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event& iEvent,
43  const reco::Track* pTrack,
44  TrackerHitAssociator& associate,
45  bool debug = false);
46 
47  std::vector<int> matchedSimTrackId(const edm::Event&,
50  const reco::Track* pTrack,
51  TrackerHitAssociator& associate,
52  bool debug = false);
53 
54  simTkInfo matchedSimTrackInfo(unsigned int simTkId,
57  bool debug = false);
58 
59  bool validSimTrack(unsigned int simTkId,
60  edm::SimTrackContainer::const_iterator thisTrkItr,
63  bool debug = false);
64 
65  //Returns the parent SimTrack of given SimTrack
66  edm::SimTrackContainer::const_iterator parentSimTrack(edm::SimTrackContainer::const_iterator thisTrkItr,
69  bool debug = false);
70 } // namespace spr
71 
72 #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)