CMS 3D CMS Logo

photonValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 trackAssociatorByHitsForPhotonValidation = tabh.trackAssociatorByHits.clone()
5 trackAssociatorByHitsForPhotonValidation.Cut_RecoToSim = 0.5
6 trackAssociatorByHitsForPhotonValidation.Quality_SimToReco = 0.5
7 trackAssociatorByHitsForPhotonValidation.Purity_SimToReco = 0.5
8 trackAssociatorByHitsForPhotonValidation.SimToRecoDenominator = 'reco'
9 
10 
11 photonValidation = cms.EDAnalyzer("PhotonValidator",
12  ComponentName = cms.string('photonValidation'),
13  OutputFileName = cms.string('PhotonValidationHistos.root'),
14  scEndcapProducer = cms.string('correctedMulti5x5SuperClustersWithPreshower'),
15  scBarrelProducer = cms.string('correctedHybridSuperClusters'),
16  phoProducer = cms.string('photons'),
17  pfCandidates = cms.InputTag("particleFlow"),
18  #valueMapPhoToParticleBasedIso = cms.InputTag("particleBasedIsolation","valMapPhoToPFisolation"),
19  valueMapPhoToParticleBasedIso = cms.string("gedPhotons"),
20  conversionOITrackProducer =cms.string('ckfOutInTracksFromConversions'),
21  conversionIOTrackProducer =cms.string('ckfInOutTracksFromConversions'),
22  outInTrackCollection =cms.string(''),
23  inOutTrackCollection =cms.string(''),
24  photonCollection = cms.string(''),
25  hbheInstance = cms.string(''),
26  endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
27  barrelEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
28  hbheModule = cms.string('hbhereco'),
29  trackProducer = cms.InputTag("generalTracks"),
30  label_tp = cms.InputTag("tpSelection"),
31  Verbosity = cms.untracked.int32(0),
32  fastSim = cms.bool(False),
33  isRunCentrally = cms.bool(False),
34  analyzerName = cms.string('PhotonValidator'),
35 #
36  minPhoEtCut = cms.double(10.),
37  convTrackMinPtCut = cms.double(1.),
38  likelihoodCut = cms.double(0.),
39 #
40  useTP = cms.bool(True),
41 #
42  eBin = cms.int32(100),
43  eMin = cms.double(0.0),
44  eMax = cms.double(500.0),
45 #
46  etScale = cms.double(0.1),
47 #
48  etBin = cms.int32(100),
49  etMax = cms.double(250.),
50  etMin = cms.double(0.0),
51 #
52  etaBin = cms.int32(100),
53  etaBin2 = cms.int32(25),
54  etaMin = cms.double(-2.5),
55  etaMax = cms.double(2.5),
56 #
57  phiBin = cms.int32(100),
58  phiMin = cms.double(-3.14),
59  phiMax = cms.double(3.14),
60 #
61  r9Bin = cms.int32(200),
62  r9Min = cms.double(0.0),
63  r9Max = cms.double(1.1),
64 #
65  dEtaTracksBin = cms.int32(100),
66  dEtaTracksMin = cms.double(-0.2),
67  dEtaTracksMax = cms.double(0.2),
68 #
69  dPhiTracksBin = cms.int32(100),
70  dPhiTracksMin = cms.double(-0.5),
71  dPhiTracksMax = cms.double(0.5),
72 #
73  dEtaBin = cms.int32(100),
74  dEtaMin = cms.double(-0.2),
75  dEtaMax = cms.double(0.2),
76 #
77  dPhiBin = cms.int32(100),
78  dPhiMin = cms.double(-0.05),
79  dPhiMax = cms.double(0.05),
80 #
81  rBin = cms.int32(48),
82  rMin = cms.double(0.),
83  rMax = cms.double(120),
84 #
85  zBin = cms.int32(100),
86  zMin = cms.double(-220.),
87  zMax = cms.double(220),
88 #
89  resBin = cms.int32(100),
90  resMin = cms.double(0.7),
91  resMax = cms.double(1.2),
92 #
93  dCotCutOn =cms.bool(False),
94  dCotCutValue=cms.double(0.05),
95  dCotHardCutValue=cms.double(0.02),
96 #
97  dCotTracksBin = cms.int32(100),
98  dCotTracksMin = cms.double(-2.),
99  dCotTracksMax = cms.double(2.),
100 #
101  povereBin = cms.int32(100),
102  povereMin = cms.double(0.),
103  povereMax = cms.double(5.),
104 #
105  eoverpBin = cms.int32(100),
106  eoverpMin = cms.double(0.),
107  eoverpMax = cms.double(5.),
108 #
109  chi2Min = cms.double(0.),
110  chi2Max = cms.double(20.),
111 #
112  ggMassBin =cms.int32(200),
113  ggMassMin =cms.double(60.),
114  ggMassMax =cms.double(160.),
115 #
116  rBinForXray = cms.int32(200),
117  rMinForXray = cms.double(0.),
118  rMaxForXray = cms.double(80.),
119  zBinForXray = cms.int32(100),
120  zBin2ForXray = cms.int32(560),
121  zMinForXray = cms.double(0.),
122  zMaxForXray = cms.double(280.),
123 
124 # Unused stuff
125  hcalIsolExtR = cms.double(0.3),
126  hcalIsolInnR = cms.double(0.0),
127  minTrackPtCut = cms.double(1.5),
128  minBcEtCut = cms.double(0.0),
129  lipCut = cms.double(2.0),
130  trkIsolInnR = cms.double(0.03),
131  ecalIsolR = cms.double(0.35),
132  trkIsolExtR = cms.double(0.3),
133  maxNumOfTracksInCone = cms.int32(3),
134  hcalEtSumCut = cms.double(6.0),
135  minHcalHitEtCut = cms.double(0.0),
136 
137  trkPtSumCut = cms.double(9999.0),
138  ecalEtSumCut = cms.double(5.0),
139 
140 )
141 
142 from Configuration.Eras.Modifier_fastSim_cff import fastSim
143 fastSim.toModify(photonValidation, fastSim = True)
144