1 import FWCore.ParameterSet.Config
as cms
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
12 from CommonTools.RecoAlgos.trackingParticleRefSelector_cfi
import trackingParticleRefSelector
as _trackingParticleRefSelector
13 tpSelecForEfficiency = _trackingParticleRefSelector.clone()
14 tpSelecForEfficiency.chargedOnly =
True
16 tpSelecForEfficiency.tip = 120
17 tpSelecForEfficiency.lip = 280
18 tpSelecForEfficiency.signalOnly =
False
19 tpSelecForEfficiency.minRapidity = -2.5
20 tpSelecForEfficiency.ptMin = 0.3
21 tpSelecForEfficiency.maxRapidity = 2.5
22 tpSelecForEfficiency.minHit = 0
25 tpSelecForFakeRate = _trackingParticleRefSelector.clone()
26 tpSelecForFakeRate.chargedOnly =
True
28 tpSelecForFakeRate.tip = 120
29 tpSelecForFakeRate.lip = 280
30 tpSelecForFakeRate.signalOnly =
False
31 tpSelecForFakeRate.minRapidity = -2.5
32 tpSelecForFakeRate.ptMin = 0.
33 tpSelecForFakeRate.maxRapidity = 2.5
34 tpSelecForFakeRate.minHit = 0
38 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
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),
59 minPhoPtForEffic = cms.double(0.3),
60 maxPhoEtaForEffic = cms.double(2.5),
61 maxPhoZForEffic = cms.double(200.),
62 maxPhoRForEffic = cms.double(100.),
63 minPhoPtForPurity = cms.double(0.),
64 maxPhoEtaForPurity = cms.double(2.5),
65 maxPhoZForPurity = cms.double(200.),
66 maxPhoRForPurity = cms.double(100.),
69 minPhoEtCut = cms.double(0.),
72 useTP = cms.bool(
True),
75 etBin = cms.int32(100),
76 etMax = cms.double(100.0),
77 etMin = cms.double(0.0),
79 etaBin = cms.int32(100),
80 etaBin2 = cms.int32(25),
81 etaMin = cms.double(-2.5),
82 etaMax = cms.double(2.5),
84 phiBin = cms.int32(100),
85 phiMin = cms.double(-3.14),
86 phiMax = cms.double(3.14),
88 resBin = cms.int32(100),
89 resMin = cms.double(0.),
90 resMax = cms.double(1.1),
92 eoverpBin = cms.int32(100),
93 eoverpMin = cms.double(0.),
94 eoverpMax = cms.double(5.),
96 dEtaTracksBin = cms.int32(100),
97 dEtaTracksMin = cms.double(-0.2),
98 dEtaTracksMax = cms.double(0.2),
100 dPhiTracksBin = cms.int32(100),
101 dPhiTracksMin = cms.double(-0.5),
102 dPhiTracksMax = cms.double(0.5),
104 dEtaBin = cms.int32(100),
105 dEtaMin = cms.double(-0.2),
106 dEtaMax = cms.double(0.2),
108 dPhiBin = cms.int32(100),
109 dPhiMin = cms.double(-0.05),
110 dPhiMax = cms.double(0.05),
112 rBin = cms.int32(60),
113 rMin = cms.double(0.),
114 rMax = cms.double(120),
116 zBin = cms.int32(100),
117 zMin = cms.double(-220.),
118 zMax = cms.double(220),
121 dCotTracksBin = cms.int32(100),
122 dCotTracksMin = cms.double(-0.12),
123 dCotTracksMax = cms.double(0.12),
125 chi2Min = cms.double(0.),
126 chi2Max = cms.double(20.),
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.),
137 simTracks = cms.InputTag(
"g4SimHits")
141 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
142 fastSim.toModify(tkConversionValidation, simTracks =
"fastSimProducer")