CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tkConvValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
6 trackAssociatorByHitsForConversionValidation = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone()
7 trackAssociatorByHitsForConversionValidation.SimToRecoDenominator = 'reco'
8 trackAssociatorByHitsForConversionValidation.Quality_SimToReco = 0.5
9 trackAssociatorByHitsForConversionValidation.Purity_SimToReco = 0.5
10 trackAssociatorByHitsForConversionValidation.Cut_RecoToSim = 0.5
11 
12 from CommonTools.RecoAlgos.trackingParticleRefSelector_cfi import trackingParticleRefSelector as _trackingParticleRefSelector
13 tpSelecForEfficiency = _trackingParticleRefSelector.clone(
14 chargedOnly = True,
15 # trackingParticleSelector.pdgId = cms.vint32()
16 tip = 120,
17 lip = 280,
18 signalOnly = False,
19 minRapidity = -2.5,
20 ptMin = 0.3,
21 maxRapidity = 2.5,
22 minHit = 0
23 )
24 
25 tpSelecForFakeRate = _trackingParticleRefSelector.clone(
26 chargedOnly = True,
27 # trackingParticleSelector.pdgId = cms.vint32()
28 tip = 120,
29 lip = 280,
30 signalOnly = False,
31 minRapidity = -2.5,
32 ptMin = 0.0,
33 maxRapidity = 2.5,
34 minHit = 0
35 )
36 
37 
38 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
39 tkConversionValidation = DQMEDAnalyzer('TkConvValidator',
40  Name = cms.untracked.string('tkConversionValidation'),
41  isRunCentrally = cms.bool(False),
42  OutputFileName = cms.string('ValidationHistos.root'),
43  convProducer = cms.string('allConversions'),
44  conversionCollection = cms.string(''),
45  phoProducer = cms.string('photons'),
46  photonCollection = cms.string(''),
47  trackProducer = cms.InputTag("generalTracks"),
48  dqmpath = cms.string('EgammaV/ConversionValidator/'),
49  Verbosity = cms.untracked.int32(0),
50  generalTracksOnly = cms.bool(True),
51  arbitratedMerged = cms.bool(False),
52  arbitratedEcalSeeded = cms.bool(False),
53  ecalalgotracks = cms.bool(False),
54  highPurity = cms.bool(True),
55  minProb = cms.double(-99.9),
56  maxHitsBeforeVtx = cms.uint32(999),
57  minLxy = cms.double(-9999.9),
58 
59  minPhoPtForEffic = cms.double(0.3),#when hardcoded it was 2.5
60  maxPhoEtaForEffic = cms.double(2.5),
61  maxPhoZForEffic = cms.double(200.),
62  maxPhoRForEffic = cms.double(100.),
63  minPhoPtForPurity = cms.double(0.),#when hardcoded it was 0.5
64  maxPhoEtaForPurity = cms.double(2.5),
65  maxPhoZForPurity = cms.double(200.),
66  maxPhoRForPurity = cms.double(100.),
67 
68 #
69  minPhoEtCut = cms.double(0.),
70 
71 #
72  useTP = cms.bool(True),
73 #
74 
75  etBin = cms.int32(100),
76  etMax = cms.double(100.0),
77  etMin = cms.double(0.0),
78 #
79  etaBin = cms.int32(100),
80  etaBin2 = cms.int32(25),
81  etaMin = cms.double(-2.5),
82  etaMax = cms.double(2.5),
83 #
84  phiBin = cms.int32(100),
85  phiMin = cms.double(-3.14),
86  phiMax = cms.double(3.14),
87 #
88  resBin = cms.int32(100),
89  resMin = cms.double(0.),
90  resMax = cms.double(1.1),
91 #
92  eoverpBin = cms.int32(100),
93  eoverpMin = cms.double(0.),
94  eoverpMax = cms.double(5.),
95 #
96  dEtaTracksBin = cms.int32(100),
97  dEtaTracksMin = cms.double(-0.2),
98  dEtaTracksMax = cms.double(0.2),
99 #
100  dPhiTracksBin = cms.int32(100),
101  dPhiTracksMin = cms.double(-0.5),
102  dPhiTracksMax = cms.double(0.5),
103 #
104  dEtaBin = cms.int32(100),
105  dEtaMin = cms.double(-0.2),
106  dEtaMax = cms.double(0.2),
107 #
108  dPhiBin = cms.int32(100),
109  dPhiMin = cms.double(-0.05),
110  dPhiMax = cms.double(0.05),
111 #
112  rBin = cms.int32(60),
113  rMin = cms.double(0.),
114  rMax = cms.double(120),
115 #
116  zBin = cms.int32(100),
117  zMin = cms.double(-220.),
118  zMax = cms.double(220),
119 #
120 
121  dCotTracksBin = cms.int32(100),
122  dCotTracksMin = cms.double(-0.12),
123  dCotTracksMax = cms.double(0.12),
124 #
125  chi2Min = cms.double(0.),
126  chi2Max = cms.double(20.),
127 #
128 
129  rBinForXray = cms.int32(200),
130  rMinForXray = cms.double(0.),
131  rMaxForXray = cms.double(80.),
132  zBinForXray = cms.int32(100),
133  zBin2ForXray = cms.int32(560),
134  zMinForXray = cms.double(0.),
135  zMaxForXray = cms.double(280.),
136 
137  simTracks = cms.InputTag("g4SimHits")
138 )
139 
140 
141 from Configuration.Eras.Modifier_fastSim_cff import fastSim
142 fastSim.toModify(tkConversionValidation, simTracks = "fastSimProducer")