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.
1 import FWCore.ParameterSet.Config as cms
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  intimeOnlyTP = cms.bool(False),
25  stableOnlyTP = cms.bool(False),
26  chargedOnlyTP = cms.bool(True),
27  pdgIdTP = cms.vint32(13,-13),
28  minHitTP = cms.int32(0),
29  ptMinTP = cms.double(0.9),
30  minRapidityTP = cms.double(-2.4),
31  maxRapidityTP = cms.double(2.4),
32  tipTP = cms.double(3.5),
33  lipTP = cms.double(30.0),
34  # collision-like tracks
35  parametersDefiner = cms.string('LhcParametersDefinerForTP'),
36  # cosmics tracks
37  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'),
38  #
39  # map linking SimHits to TrackingParticles, needed for cosmics validation`
40  simHitTpMapTag = cms.InputTag("simHitTPAssocProducer"),
41  #
42  # if *not* uses associators, the TP-RecoTrack maps has to be specified
43  UseAssociators = cms.bool(False),
44  associators = cms.vstring('a_MuonAssociator'),
45  associatormap = cms.InputTag("tpToMuonTrackAssociation"),
46  #
47  # BiDirectional Logic for RecoToSim association corrects the Fake rates (counting ghosts and split tracks as fakes)
48  # 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)
49  # the default setting is True: should NOT be changed !
50  BiDirectional_RecoToSim_association = cms.bool(True),
51  #
52  # Output File / Directory
53  outputFile = cms.string(''),
54  dirName = cms.string('Muons/RecoMuonV/MultiTrack/'),
55  #
56  # Parameters for plots
57  useFabsEta = cms.bool(False),
58  min = cms.double(-2.5),
59  max = cms.double(2.5),
60  nint = cms.int32(50),
61  #
62  ptRes_nbin = cms.int32(100),
63  ptRes_rangeMin = cms.double(-0.3),
64  ptRes_rangeMax = cms.double(0.3),
65  #
66  phiRes_nbin = cms.int32(100),
67  phiRes_rangeMin = cms.double(-0.05),
68  phiRes_rangeMax = cms.double(0.05),
69  #
70  etaRes_rangeMin = cms.double(-0.05),
71  etaRes_rangeMax = cms.double(0.05),
72  #
73  cotThetaRes_nbin = cms.int32(120),
74  cotThetaRes_rangeMin = cms.double(-0.01),
75  cotThetaRes_rangeMax = cms.double(0.01),
76  #
77  dxyRes_nbin = cms.int32(100),
78  dxyRes_rangeMin = cms.double(-0.02),
79  dxyRes_rangeMax = cms.double(0.02),
80  #
81  dzRes_nbin = cms.int32(150),
82  dzRes_rangeMin = cms.double(-0.05),
83  dzRes_rangeMax = cms.double(0.05),
84  #
85  minpT = cms.double(0.1),
86  maxpT = cms.double(1500),
87  nintpT = cms.int32(40),
88  useLogPt=cms.untracked.bool(False),
89  useInvPt = cms.bool(False),
90  #
91  minHit = cms.double(-0.5),
92  maxHit = cms.double(74.5),
93  nintHit = cms.int32(75),
94  #
95  minPhi = cms.double(-3.1416),
96  maxPhi = cms.double(3.1416),
97  nintPhi = cms.int32(36),
98  #
99  minDxy = cms.double(-3),
100  maxDxy = cms.double(3),
101  nintDxy = cms.int32(100),
102  #
103  minDz = cms.double(-10),
104  maxDz = cms.double(10),
105  nintDz = cms.int32(100),
106  # TP originating vertical position
107  minVertpos = cms.double(0),
108  maxVertpos = cms.double(5),
109  nintVertpos = cms.int32(100),
110  # TP originating z position
111  minZpos = cms.double(-10),
112  maxZpos = cms.double(10),
113  nintZpos = cms.int32(100)
114 )