CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonIdTruthInfo.h
Go to the documentation of this file.
1 #ifndef MuonIdentification_MuonIdTruthInfo_h
2 #define MuonIdentification_MuonIdTruthInfo_h 1
3 
4 // add MC hits to a list of matched segments. The only
5 // way to differentiat hits is the error on the local
6 // hit position. It's -9999 for a MC hit
7 // Since it's debugging mode - code is slow
8 
19 
21 {
22  public:
23  static void truthMatchMuon( const edm::Event& iEvent,
24  const edm::EventSetup& iSetup,
25  reco::Muon& aMuon);
26  private:
27  static void checkSimHitForBestMatch(reco::MuonSegmentMatch& segmentMatch,
28  double& distance,
29  const PSimHit& hit,
30  const DetId& chamberId,
32 
33  static double matchChi2( const reco::Track& recoTrk,
34  const SimTrack& simTrk);
35 };
36 #endif
static void truthMatchMuon(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::Muon &aMuon)
static void checkSimHitForBestMatch(reco::MuonSegmentMatch &segmentMatch, double &distance, const PSimHit &hit, const DetId &chamberId, const edm::ESHandle< GlobalTrackingGeometry > &geometry)
int iEvent
Definition: GenABIO.cc:243
Definition: DetId.h:20
ESHandle< TrackerGeometry > geometry
static double matchChi2(const reco::Track &recoTrk, const SimTrack &simTrk)