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 tkConversionValidation = cms.EDAnalyzer(
"TkConvValidator",
39 Name = cms.untracked.string(
'tkConversionValidation'),
40 isRunCentrally = cms.bool(
False),
41 OutputFileName = cms.string(
'ValidationHistos.root'),
42 convProducer = cms.string(
'allConversions'),
43 conversionCollection = cms.string(
''),
44 phoProducer = cms.string(
'photons'),
45 photonCollection = cms.string(
''),
46 trackProducer = cms.InputTag(
"generalTracks"),
47 dqmpath = cms.string(
'EgammaV/ConversionValidator/'),
48 Verbosity = cms.untracked.int32(0),
49 generalTracksOnly = cms.bool(
True),
50 arbitratedMerged = cms.bool(
False),
51 arbitratedEcalSeeded = cms.bool(
False),
52 ecalalgotracks = cms.bool(
False),
53 highPurity = cms.bool(
True),
54 minProb = cms.double(-99.9),
55 maxHitsBeforeVtx = cms.uint32(999),
56 minLxy = cms.double(-9999.9),
58 minPhoPtForEffic = cms.double(0.3),
59 maxPhoEtaForEffic = cms.double(2.5),
60 maxPhoZForEffic = cms.double(200.),
61 maxPhoRForEffic = cms.double(100.),
62 minPhoPtForPurity = cms.double(0.),
63 maxPhoEtaForPurity = cms.double(2.5),
64 maxPhoZForPurity = cms.double(200.),
65 maxPhoRForPurity = cms.double(100.),
68 minPhoEtCut = cms.double(0.),
71 useTP = cms.bool(
True),
74 etBin = cms.int32(100),
75 etMax = cms.double(100.0),
76 etMin = cms.double(0.0),
78 etaBin = cms.int32(100),
79 etaBin2 = cms.int32(25),
80 etaMin = cms.double(-2.5),
81 etaMax = cms.double(2.5),
83 phiBin = cms.int32(100),
84 phiMin = cms.double(-3.14),
85 phiMax = cms.double(3.14),
87 resBin = cms.int32(100),
88 resMin = cms.double(0.),
89 resMax = cms.double(1.1),
91 eoverpBin = cms.int32(100),
92 eoverpMin = cms.double(0.),
93 eoverpMax = cms.double(5.),
95 dEtaTracksBin = cms.int32(100),
96 dEtaTracksMin = cms.double(-0.2),
97 dEtaTracksMax = cms.double(0.2),
99 dPhiTracksBin = cms.int32(100),
100 dPhiTracksMin = cms.double(-0.5),
101 dPhiTracksMax = cms.double(0.5),
103 dEtaBin = cms.int32(100),
104 dEtaMin = cms.double(-0.2),
105 dEtaMax = cms.double(0.2),
107 dPhiBin = cms.int32(100),
108 dPhiMin = cms.double(-0.05),
109 dPhiMax = cms.double(0.05),
111 rBin = cms.int32(60),
112 rMin = cms.double(0.),
113 rMax = cms.double(120),
115 zBin = cms.int32(100),
116 zMin = cms.double(-220.),
117 zMax = cms.double(220),
120 dCotTracksBin = cms.int32(100),
121 dCotTracksMin = cms.double(-0.12),
122 dCotTracksMax = cms.double(0.12),
124 chi2Min = cms.double(0.),
125 chi2Max = cms.double(20.),
128 rBinForXray = cms.int32(200),
129 rMinForXray = cms.double(0.),
130 rMaxForXray = cms.double(80.),
131 zBinForXray = cms.int32(100),
132 zBin2ForXray = cms.int32(560),
133 zMinForXray = cms.double(0.),
134 zMaxForXray = cms.double(280.),
136 simTracks = cms.InputTag(
"g4SimHits")
140 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
141 if fastSim.isChosen():
142 tkConversionValidation.simTracks = cms.InputTag(
"famosSimHits")