CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gedPhotons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
8 
10 
11 from RecoEgamma.EgammaIsolationAlgos.egammaHBHERecHitThreshold_cff import egammaHBHERecHit
12 
13 from RecoEgamma.EgammaIsolationAlgos.egammaEcalPFClusterIsolationProducerRecoPhoton_cfi import egammaEcalPFClusterIsolationProducerRecoPhoton
14 from RecoEgamma.EgammaIsolationAlgos.egammaHcalPFClusterIsolationProducerRecoPhoton_cfi import egammaHcalPFClusterIsolationProducerRecoPhoton
15 
16 #
17 # producer for photons
18 #
19 gedPhotons = cms.EDProducer("GEDPhotonProducer",
20  photonProducer = cms.InputTag("gedPhotonsTmp"),
21  reconstructionStep = cms.string("tmp"),
22  #old regression <<<<<< >>>>>> do not use
23  regressionWeightsFromDB = cms.bool(True),
24  energyRegressionWeightsFileLocation = cms.string('/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
25  energyRegressionWeightsDBLocation = cms.string('wgbrph'),
26  # refined SC regression setup
27  useRegression = cms.bool(True),
28  regressionConfig = regressionModifier.clone(),
29  superClusterEnergyCorrFunction = cms.string("EcalClusterEnergyCorrection"),
30  superClusterEnergyErrorFunction = cms.string("EcalClusterEnergyUncertainty"),
31  superClusterCrackEnergyCorrFunction = cms.string("EcalClusterCrackCorrection"),
32  photonEcalEnergyCorrFunction = cms.string("EcalClusterEnergyCorrectionObjectSpecific"),
33  pfEgammaCandidates = cms.InputTag("particleFlowEGamma"),
34  pfCandidates = cms.InputTag("particleFlowTmp"),
35  outputPhotonCollection = cms.string(""),
36  valueMapPhotons = cms.string("valMapPFEgammaCandToPhoton"),
37  #candidateP4type = cms.string("fromRegression"),
38  candidateP4type = cms.string("fromRefinedSCRegression"),
39  isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
40  PFIsolationCalculatorSet = cms.PSet(pfIsolationCalculator),
41  mipVariableSet = cms.PSet(mipVariable),
42  usePrimaryVertex = cms.bool(True),
43  primaryVertexProducer = cms.InputTag('offlinePrimaryVerticesWithBS'),
44  posCalc_t0_endcPresh = cms.double(3.6),
45  posCalc_logweight = cms.bool(True),
46  posCalc_w0 = cms.double(4.2),
47  hbheInstance = cms.string(''),
48  posCalc_t0_endc = cms.double(6.3),
49  barrelEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
50  hbheModule = cms.string('hbhereco'),
51  endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
52  preshowerHits = cms.InputTag("ecalPreshowerRecHit","EcalRecHitsES"),
53  runMIPTagger = cms.bool(True),
54  highEt = cms.double(100.),
55  minR9Barrel = cms.double(0.94),
56  minR9Endcap = cms.double(0.95),
57  multThresEB = cms.double(1.00),
58  multThresEE = cms.double(1.25),
59  hOverEConeSize = cms.double(0.15),
60  hbheRecHits = egammaHBHERecHit.hbheRecHits,
61  recHitEThresholdHB = egammaHBHERecHit.recHitEThresholdHB,
62  recHitEThresholdHE = egammaHBHERecHit.recHitEThresholdHE,
63  maxHcalRecHitSeverity = egammaHBHERecHit.maxHcalRecHitSeverity,
64  hcalRun2EffDepth = cms.bool(False),
65  posCalc_x0 = cms.double(0.89),
66  posCalc_t0_barl = cms.double(7.7),
67  minSCEtBarrel = cms.double(10.0),
68  minSCEtEndcap = cms.double(10.0),
69  maxHoverEBarrel = cms.double(0.5),
70  maxHoverEEndcap = cms.double(0.5),
71  ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
72  ecalRecHitSumEtSlopeBarrel = cms.double(0.),
73  ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
74  ecalRecHitSumEtSlopeEndcap = cms.double(0.),
75  hcalRecHitSumEtOffsetBarrel = cms.double(999999999),
76  hcalRecHitSumEtSlopeBarrel = cms.double(0.),
77  hcalRecHitSumEtOffsetEndcap = cms.double(999999999),
78  hcalRecHitSumEtSlopeEndcap = cms.double(0.),
79  nTrackSolidConeBarrel =cms.double(999999999),
80  nTrackSolidConeEndcap =cms.double(999999999),
81  nTrackHollowConeBarrel =cms.double(999999999),
82  nTrackHollowConeEndcap =cms.double(999999999),
83  trackPtSumSolidConeBarrel =cms.double(999999999),
84  trackPtSumSolidConeEndcap =cms.double(999999999),
85  trackPtSumHollowConeBarrel =cms.double(999999999),
86  trackPtSumHollowConeEndcap =cms.double(999999999),
87  sigmaIetaIetaCutBarrel=cms.double(999999999),
88  sigmaIetaIetaCutEndcap=cms.double(999999999),
89  posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
90  T0_endc = cms.double(6.3),
91  T0_endcPresh = cms.double(3.6),
92  LogWeighted = cms.bool(True),
93  W0 = cms.double(4.2),
94  X0 = cms.double(0.89)
95  ),
96 
97  RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
98  RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
99  RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
100  RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
101  checkHcalStatus = cms.bool(True),
102  PhotonDNNPFid = cms.PSet(
103  enabled = cms.bool(False),
104  inputTensorName = cms.string("FirstLayer_input"),
105  outputTensorName = cms.string("sequential/FinalLayer/Sigmoid"),
106  modelsFiles = cms.vstring(
107  'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_modelDNN.pb',
108  'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_modelDNN.pb'),
109  scalersFiles = cms.vstring(
110  'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EB/EB_scaler.txt',
111  'RecoEgamma/PhotonIdentification/data/Photon_PFID_dnn/v1/EE/EE_scaler.txt'
112  ),
113  outputDim = cms.uint32(1),
114  useEBModelInGap = cms.bool(True)
115  ),
116 
117  pfECALClusIsolCfg = cms.PSet(
118  pfClusterProducer = egammaEcalPFClusterIsolationProducerRecoPhoton.pfClusterProducer,
119  drMax = egammaEcalPFClusterIsolationProducerRecoPhoton.drMax,
120  drVetoBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
121  drVetoEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
122  etaStripBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
123  etaStripEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
124  energyBarrel = egammaEcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
125  energyEndcap = egammaEcalPFClusterIsolationProducerRecoPhoton.energyEndcap
126  ),
127 
128  pfHCALClusIsolCfg = cms.PSet(
129 
130  pfClusterProducerHCAL = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHCAL,
131  useHF = egammaHcalPFClusterIsolationProducerRecoPhoton.useHF,
132  pfClusterProducerHFEM = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFEM,
133  pfClusterProducerHFHAD = egammaHcalPFClusterIsolationProducerRecoPhoton.pfClusterProducerHFHAD,
134  drMax = egammaHcalPFClusterIsolationProducerRecoPhoton.drMax,
135  drVetoBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoBarrel,
136  drVetoEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.drVetoEndcap,
137  etaStripBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripBarrel,
138  etaStripEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.etaStripEndcap,
139  energyBarrel = egammaHcalPFClusterIsolationProducerRecoPhoton.energyBarrel,
140  energyEndcap = egammaHcalPFClusterIsolationProducerRecoPhoton.energyEndcap,
141  useEt = egammaHcalPFClusterIsolationProducerRecoPhoton.useEt,
142 
143  )
144 
145 )
146 
147