CMS 3D CMS Logo

photons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 #
8 # producer for photons
9 #
10 photons = cms.EDProducer("GEDPhotonProducer",
11  photonProducer = cms.InputTag("photonCore"),
12  reconstructionStep = cms.string("tmp"),
13  outputPhotonCollection = cms.string(""),
14  pfEgammaCandidates = cms.InputTag(""),
15  valueMapPhotons = cms.string(""),
16  # photonCollection = cms.string(''),
17  regressionWeightsFromDB = cms.bool(True),
18  energyRegressionWeightsFileLocation = cms.string('/afs/cern.ch/user/b/bendavid/cmspublic/regweights/gbrph.root'),
19  energyRegressionWeightsDBLocation = cms.string('wgbrph'),
20  superClusterEnergyCorrFunction = cms.string("EcalClusterEnergyCorrection"),
21  superClusterEnergyErrorFunction = cms.string("EcalClusterEnergyUncertainty"),
22  superClusterCrackEnergyCorrFunction = cms.string("EcalClusterCrackCorrection"),
23  photonEcalEnergyCorrFunction = cms.string("EcalClusterEnergyCorrectionObjectSpecific"),
24  #candidateP4type = cms.string("fromRegression"),
25  candidateP4type = cms.string("fromEcalEnergy"),
26  isolationSumsCalculatorSet = cms.PSet(isolationSumsCalculator),
27  mipVariableSet = cms.PSet(mipVariable),
28  usePrimaryVertex = cms.bool(True),
29  primaryVertexProducer = cms.InputTag('offlinePrimaryVerticesWithBS'),
30  posCalc_t0_endcPresh = cms.double(3.6),
31  posCalc_logweight = cms.bool(True),
32  posCalc_w0 = cms.double(4.2),
33  hbheInstance = cms.string(''),
34  posCalc_t0_endc = cms.double(6.3),
35  barrelEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
36  hbheModule = cms.string('hbhereco'),
37  endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
38  preshowerHits = cms.InputTag("ecalPreshowerRecHit","EcalRecHitsES"),
39  hcalTowers = cms.InputTag("towerMaker"),
40  runMIPTagger = cms.bool(True),
41  highEt = cms.double(100.),
42  minR9Barrel = cms.double(0.94),
43  minR9Endcap = cms.double(0.95),
44  hOverEConeSize = cms.double(0.15),
45  posCalc_x0 = cms.double(0.89),
46  posCalc_t0_barl = cms.double(7.7),
47  minSCEtBarrel = cms.double(10.0),
48  minSCEtEndcap = cms.double(10.0),
49  maxHoverEBarrel = cms.double(0.5),
50  maxHoverEEndcap = cms.double(0.5),
51  ecalRecHitSumEtOffsetBarrel = cms.double(999999999),
52  ecalRecHitSumEtSlopeBarrel = cms.double(0.),
53  ecalRecHitSumEtOffsetEndcap = cms.double(999999999),
54  ecalRecHitSumEtSlopeEndcap = cms.double(0.),
55  hcalTowerSumEtOffsetBarrel = cms.double(999999999),
56  hcalTowerSumEtSlopeBarrel = cms.double(0.),
57  hcalTowerSumEtOffsetEndcap = cms.double(999999999),
58  hcalTowerSumEtSlopeEndcap = cms.double(0.),
59  nTrackSolidConeBarrel =cms.double(999999999),
60  nTrackSolidConeEndcap =cms.double(999999999),
61  nTrackHollowConeBarrel =cms.double(999999999),
62  nTrackHollowConeEndcap =cms.double(999999999),
63  trackPtSumSolidConeBarrel =cms.double(999999999),
64  trackPtSumSolidConeEndcap =cms.double(999999999),
65  trackPtSumHollowConeBarrel =cms.double(999999999),
66  trackPtSumHollowConeEndcap =cms.double(999999999),
67  sigmaIetaIetaCutBarrel=cms.double(999999999),
68  sigmaIetaIetaCutEndcap=cms.double(999999999),
69  posCalcParameters = cms.PSet( T0_barl = cms.double(7.4),
70  T0_endc = cms.double(6.3),
71  T0_endcPresh = cms.double(3.6),
72  LogWeighted = cms.bool(True),
73  W0 = cms.double(4.2),
74  X0 = cms.double(0.89)
75  ),
76 
77  RecHitFlagToBeExcludedEB = cleanedHybridSuperClusters.RecHitFlagToBeExcluded,
78  RecHitSeverityToBeExcludedEB = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
79  RecHitFlagToBeExcludedEE = multi5x5BasicClustersCleaned.RecHitFlagToBeExcluded,
80  RecHitSeverityToBeExcludedEE = cleanedHybridSuperClusters.RecHitSeverityToBeExcluded,
81 )
82 
83 photonsFromMultiCl = photons.clone(
84  photonProducer = 'photonCoreFromMultiCl'
85 )
86