test
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  useGEMs = cms.bool(False),
45  associators = cms.vstring('a_MuonAssociator'),
46  associatormap = cms.InputTag("tpToMuonTrackAssociation"),
47  #
48  # BiDirectional Logic for RecoToSim association corrects the Fake rates (counting ghosts and split tracks as fakes)
49  # 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)
50  # the default setting is True: should NOT be changed !
51  BiDirectional_RecoToSim_association = cms.bool(True),
52  #
53  # Output File / Directory
54  outputFile = cms.string(''),
55  dirName = cms.string('Muons/RecoMuonV/MultiTrack/'),
56  #
57  # Parameters for plots
58  useFabsEta = cms.bool(False),
59  min = cms.double(-2.5),
60  max = cms.double(2.5),
61  nint = cms.int32(50),
62  #
63  ptRes_nbin = cms.int32(100),
64  ptRes_rangeMin = cms.double(-0.3),
65  ptRes_rangeMax = cms.double(0.3),
66  #
67  phiRes_nbin = cms.int32(100),
68  phiRes_rangeMin = cms.double(-0.05),
69  phiRes_rangeMax = cms.double(0.05),
70  #
71  etaRes_rangeMin = cms.double(-0.05),
72  etaRes_rangeMax = cms.double(0.05),
73  #
74  cotThetaRes_nbin = cms.int32(120),
75  cotThetaRes_rangeMin = cms.double(-0.01),
76  cotThetaRes_rangeMax = cms.double(0.01),
77  #
78  dxyRes_nbin = cms.int32(100),
79  dxyRes_rangeMin = cms.double(-0.02),
80  dxyRes_rangeMax = cms.double(0.02),
81  #
82  dzRes_nbin = cms.int32(150),
83  dzRes_rangeMin = cms.double(-0.05),
84  dzRes_rangeMax = cms.double(0.05),
85  #
86  minpT = cms.double(0.1),
87  maxpT = cms.double(1500),
88  nintpT = cms.int32(40),
89  useLogPt=cms.untracked.bool(False),
90  useInvPt = cms.bool(False),
91  #
92  minHit = cms.double(-0.5),
93  maxHit = cms.double(74.5),
94  nintHit = cms.int32(75),
95  #
96  minPhi = cms.double(-3.1416),
97  maxPhi = cms.double(3.1416),
98  nintPhi = cms.int32(36),
99  #
100  minDxy = cms.double(-3),
101  maxDxy = cms.double(3),
102  nintDxy = cms.int32(100),
103  #
104  minDz = cms.double(-10),
105  maxDz = cms.double(10),
106  nintDz = cms.int32(100),
107  # TP originating vertical position
108  minVertpos = cms.double(0),
109  maxVertpos = cms.double(5),
110  nintVertpos = cms.int32(100),
111  # TP originating z position
112  minZpos = cms.double(-10),
113  maxZpos = cms.double(10),
114  nintZpos = cms.int32(100)
115 )