CMS 3D CMS Logo

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 
20 
22 public:
24 
25  static void truthMatchMuon(const edm::Event& iEvent, const edm::EventSetup& iSetup, reco::Muon& aMuon);
26 
27 private:
28  static void checkSimHitForBestMatch(reco::MuonSegmentMatch& segmentMatch,
29  double& distance,
30  const PSimHit& hit,
31  const DetId& chamberId,
33 
34  static double matchChi2(const reco::Track& recoTrk, const SimTrack& simTrk);
35 };
36 #endif
MuonSegmentMatch.h
Muon.h
ESHandle.h
geometry
Definition: geometry.py:1
HLT_2018_cff.distance
distance
Definition: HLT_2018_cff.py:6417
reco::Muon
Definition: Muon.h:27
DetId
Definition: DetId.h:17
PSimHit.h
Track.h
reco::MuonSegmentMatch
Definition: MuonSegmentMatch.h:12
MuonIdTruthInfo::registerConsumes
void registerConsumes(edm::ConsumesCollector &iC)
Definition: MuonIdTruthInfo.cc:11
reco::Track
Definition: Track.h:27
edm::ESHandle< GlobalTrackingGeometry >
MuonIdTruthInfo::matchChi2
static double matchChi2(const reco::Track &recoTrk, const SimTrack &simTrk)
Definition: MuonIdTruthInfo.cc:162
Event.h
MuonIdTruthInfo::truthMatchMuon
static void truthMatchMuon(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::Muon &aMuon)
Definition: MuonIdTruthInfo.cc:17
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
DetId.h
SimTrack
Definition: SimTrack.h:6
MuonIdTruthInfo::checkSimHitForBestMatch
static void checkSimHitForBestMatch(reco::MuonSegmentMatch &segmentMatch, double &distance, const PSimHit &hit, const DetId &chamberId, const edm::ESHandle< GlobalTrackingGeometry > &geometry)
Definition: MuonIdTruthInfo.cc:101
MuonIdTruthInfo
Definition: MuonIdTruthInfo.h:21
EventSetup.h
ConsumesCollector.h
SimTrack.h
PSimHit
Definition: PSimHit.h:15
GlobalTrackingGeometry.h
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
hit
Definition: SiStripHitEffFromCalibTree.cc:88