CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonTrackValidator_cfi.py
Go to the documentation of this file.
2 
5 
6 muonTrackValidator = cms.EDAnalyzer("MuonTrackValidator",
7  # input TrackingParticle collections
8  label_tp_effic = cms.InputTag("mix","MergedTrackTruth"),
9  label_tp_fake = cms.InputTag("mix","MergedTrackTruth"),
10  # input reco::Track collection
11  label = cms.VInputTag(cms.InputTag("globalMuons")),
12  # switches to be set according to the input Track collection to properly count SimHits
13  usetracker = cms.bool(True),
14  usemuon = cms.bool(True),
15  #
16  useGsf=cms.bool(False),
17  beamSpot = cms.InputTag("offlineBeamSpot"),
18  # set true if you do not want that MTV launch an exception
19  # if the track collection is missing (e.g. HLT):
20  ignoremissingtrackcollection=cms.untracked.bool(False),
21  #
22  # selection of TP for evaluation of efficiency, from "TrackingParticleSelectionForEfficiency"
23  signalOnlyTP = cms.bool(True),
24  stableOnlyTP = cms.bool(False),
25  chargedOnlyTP = cms.bool(True),
26  pdgIdTP = cms.vint32(13,-13),
27  minHitTP = cms.int32(0),
28  ptMinTP = cms.double(0.9),
29  minRapidityTP = cms.double(-2.4),
30  maxRapidityTP = cms.double(2.4),
31  tipTP = cms.double(3.5),
32  lipTP = cms.double(30.0),
33  # collision like tracks
34  parametersDefiner = cms.string('LhcParametersDefinerForTP'),
35  # cosmics tracks
36  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'),
37  #
38  # if *not* uses associators, the TP-RecoTrack maps has to be specified
39  UseAssociators = cms.bool(False),
40  associators = cms.vstring('a_MuonAssociator'),
41  associatormap = cms.InputTag("tpToMuonTrackAssociation"),
42  #
43  # BiDirectional Logic for RecoToSim association corrects the Fake rates (counting ghosts and split tracks as fakes)
44  # setting it to False the ghost and split tracks are counted as good ones (old setting of Muon Validation up to CMSSW_3_6_0_pre4)
45  # the default setting is True: should NOT be changed !
46  BiDirectional_RecoToSim_association = cms.bool(True),
47  #
48  # Output File / Directory
49  outputFile = cms.string(''),
50  dirName = cms.string('Muons/RecoMuonV/MultiTrack/'),
51  #
52  # Parameters for plots
53  useFabsEta = cms.bool(False),
54  min = cms.double(-2.5),
55  max = cms.double(2.5),
56  nint = cms.int32(50),
57  #
58  ptRes_nbin = cms.int32(100),
59  ptRes_rangeMin = cms.double(-0.3),
60  ptRes_rangeMax = cms.double(0.3),
61  #
62  phiRes_nbin = cms.int32(100),
63  phiRes_rangeMin = cms.double(-0.05),
64  phiRes_rangeMax = cms.double(0.05),
65  #
66  etaRes_rangeMin = cms.double(-0.05),
67  etaRes_rangeMax = cms.double(0.05),
68  #
69  cotThetaRes_nbin = cms.int32(120),
70  cotThetaRes_rangeMin = cms.double(-0.01),
71  cotThetaRes_rangeMax = cms.double(0.01),
72  #
73  dxyRes_nbin = cms.int32(100),
74  dxyRes_rangeMin = cms.double(-0.02),
75  dxyRes_rangeMax = cms.double(0.02),
76  #
77  dzRes_nbin = cms.int32(150),
78  dzRes_rangeMin = cms.double(-0.05),
79  dzRes_rangeMax = cms.double(0.05),
80  #
81  minpT = cms.double(0.1),
82  maxpT = cms.double(1500),
83  nintpT = cms.int32(40),
84  useLogPt=cms.untracked.bool(False),
85  useInvPt = cms.bool(False),
86  #
87  minHit = cms.double(-0.5),
88  maxHit = cms.double(74.5),
89  nintHit = cms.int32(75),
90  #
91  minPhi = cms.double(-3.1416),
92  maxPhi = cms.double(3.1416),
93  nintPhi = cms.int32(36),
94  #
95  minDxy = cms.double(-3),
96  maxDxy = cms.double(3),
97  nintDxy = cms.int32(100),
98  #
99  minDz = cms.double(-10),
100  maxDz = cms.double(10),
101  nintDz = cms.int32(100),
102  # TP originating vertical position
103  minVertpos = cms.double(0),
104  maxVertpos = cms.double(5),
105  nintVertpos = cms.int32(100),
106  # TP originating z position
107  minZpos = cms.double(-10),
108  maxZpos = cms.double(10),
109  nintZpos = cms.int32(100)
110 )