Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-23 03:28:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def CalibratedPatElectronProducer(*args, **kwargs):
0004   mod = cms.EDProducer('CalibratedPatElectronProducer',
0005     src = cms.InputTag('gedPhotons'),
0006     epCombConfig = cms.PSet(
0007       ecalTrkRegressionConfig = cms.PSet(
0008         rangeMinLowEt = cms.double(-1),
0009         rangeMaxLowEt = cms.double(3),
0010         rangeMinHighEt = cms.double(-1),
0011         rangeMaxHighEt = cms.double(3),
0012         lowEtHighEtBoundary = cms.double(50),
0013         forceHighEnergyTrainingIfSaturated = cms.bool(False),
0014         ebLowEtForestName = cms.ESInputTag('', 'electron_eb_ECALTRK_lowpt'),
0015         ebHighEtForestName = cms.ESInputTag('', 'electron_eb_ECALTRK'),
0016         eeLowEtForestName = cms.ESInputTag('', 'electron_ee_ECALTRK_lowpt'),
0017         eeHighEtForestName = cms.ESInputTag('', 'electron_ee_ECALTRK')
0018       ),
0019       ecalTrkRegressionUncertConfig = cms.PSet(
0020         rangeMinLowEt = cms.double(-1),
0021         rangeMaxLowEt = cms.double(3),
0022         rangeMinHighEt = cms.double(-1),
0023         rangeMaxHighEt = cms.double(3),
0024         lowEtHighEtBoundary = cms.double(50),
0025         forceHighEnergyTrainingIfSaturated = cms.bool(False),
0026         ebLowEtForestName = cms.ESInputTag('', 'electron_eb_ECALTRK_lowpt'),
0027         ebHighEtForestName = cms.ESInputTag('', 'electron_eb_ECALTRK'),
0028         eeLowEtForestName = cms.ESInputTag('', 'electron_ee_ECALTRK_lowpt'),
0029         eeHighEtForestName = cms.ESInputTag('', 'electron_ee_ECALTRK')
0030       ),
0031       maxEcalEnergyForComb = cms.double(200),
0032       minEOverPForComb = cms.double(0.025),
0033       maxEPDiffInSigmaForComb = cms.double(15),
0034       maxRelTrkMomErrForComb = cms.double(10)
0035     ),
0036     recHitCollectionEB = cms.InputTag('reducedEcalRecHitsEB'),
0037     recHitCollectionEE = cms.InputTag('reducedEcalRecHitsEE'),
0038     correctionFile = cms.string(''),
0039     minEtToCalibrate = cms.double(5),
0040     produceCalibratedObjs = cms.bool(True),
0041     semiDeterministic = cms.bool(True),
0042     valueMapsStored = cms.vstring(
0043       'energyScaleStatUp',
0044       'energyScaleStatDown',
0045       'energyScaleSystUp',
0046       'energyScaleSystDown',
0047       'energyScaleGainUp',
0048       'energyScaleGainDown',
0049       'energySigmaRhoUp',
0050       'energySigmaRhoDown',
0051       'energySigmaPhiUp',
0052       'energySigmaPhiDown',
0053       'energyScaleUp',
0054       'energyScaleDown',
0055       'energySigmaUp',
0056       'energySigmaDown',
0057       'energyScaleValue',
0058       'energySigmaValue',
0059       'energySmearNrSigma',
0060       'ecalEnergyPreCorr',
0061       'ecalEnergyErrPreCorr',
0062       'ecalEnergyPostCorr',
0063       'ecalEnergyErrPostCorr',
0064       'ecalTrkEnergyPreCorr',
0065       'ecalTrkEnergyErrPreCorr',
0066       'ecalTrkEnergyPostCorr',
0067       'ecalTrkEnergyErrPostCorr'
0068     ),
0069     mightGet = cms.optional.untracked.vstring
0070   )
0071   for a in args:
0072     mod.update_(a)
0073   mod.update_(kwargs)
0074   return mod