test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoMuon
MuonIdentification
interface
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
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/Framework/interface/Event.h
"
11
#include "
DataFormats/MuonReco/interface/Muon.h
"
12
#include "
DataFormats/MuonReco/interface/MuonSegmentMatch.h
"
13
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
14
#include "
DataFormats/DetId/interface/DetId.h
"
15
#include "
DataFormats/TrackReco/interface/Track.h
"
16
#include "
SimDataFormats/Track/interface/SimTrack.h
"
17
#include "
Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h
"
18
#include "
FWCore/Framework/interface/ESHandle.h
"
19
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
20
21
class
MuonIdTruthInfo
22
{
23
public
:
24
25
void
registerConsumes
(
edm::ConsumesCollector
& iC);
26
27
28
static
void
truthMatchMuon
(
const
edm::Event
&
iEvent
,
29
const
edm::EventSetup
& iSetup,
30
reco::Muon
& aMuon);
31
private
:
32
static
void
checkSimHitForBestMatch
(
reco::MuonSegmentMatch
& segmentMatch,
33
double
&
distance
,
34
const
PSimHit
&
hit
,
35
const
DetId
& chamberId,
36
const
edm::ESHandle<GlobalTrackingGeometry>
&
geometry
);
37
38
static
double
matchChi2
(
const
reco::Track
& recoTrk,
39
const
SimTrack
& simTrk);
40
};
41
#endif
MuonIdTruthInfo::truthMatchMuon
static void truthMatchMuon(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::Muon &aMuon)
Definition:
MuonIdTruthInfo.cc:20
SimTrack.h
Event.h
EventSetup.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:104
iEvent
int iEvent
Definition:
GenABIO.cc:230
edm::ESHandle< GlobalTrackingGeometry >
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:45
MuonIdTruthInfo
Definition:
MuonIdTruthInfo.h:21
Muon.h
reco::Muon
Definition:
Muon.h:27
DetId
Definition:
DetId.h:18
MuonSegmentMatch.h
PSimHit.h
reco::MuonSegmentMatch
Definition:
MuonSegmentMatch.h:10
MuonIdTruthInfo::registerConsumes
void registerConsumes(edm::ConsumesCollector &iC)
Definition:
MuonIdTruthInfo.cc:11
reco::Track
Definition:
Track.h:28
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
geometry
ESHandle< TrackerGeometry > geometry
Definition:
TkLasBeamFitter.cc:176
HLT_25ns10e33_v2_cff.distance
tuple distance
Definition:
HLT_25ns10e33_v2_cff.py:3819
PSimHit
Definition:
PSimHit.h:15
GlobalTrackingGeometry.h
edm::Event
Definition:
Event.h:65
Track.h
ConsumesCollector.h
DetId.h
MuonIdTruthInfo::matchChi2
static double matchChi2(const reco::Track &recoTrk, const SimTrack &simTrk)
Definition:
MuonIdTruthInfo.cc:163
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.5