CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
electrons_cff Namespace Reference

Functions

def _get_bitmapVIDForEle_docstring
 

Variables

tuple _bitmapVIDForEle_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEle.WorkingPoints)
 
tuple _bitmapVIDForEleHEEP_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleHEEP.WorkingPoints)
 
tuple _bitmapVIDForEleSpring15_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleSpring15.WorkingPoints)
 
tuple _bitmapVIDForEleSum16_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleSum16.WorkingPoints)
 
tuple _withTo106XAndUpdate_Task = cms.Task(heepIDVarValueMaps,slimmedElectronsTo106X)
 
tuple _withTo106XAndUpdateAnd80XLegacyScale_Task = cms.Task(bitmapVIDForEleSpring15,bitmapVIDForEleSum16)
 
tuple _withTo106XAndUpdateAnd94XScale_Task = _withTo106XAndUpdate_Task.copy()
 
tuple _withULAndUpdate_Task = cms.Task(slimmedElectronsUpdated)
 end TEMPORARY Run3 More...
 
tuple bitmapVIDForEle
 
tuple bitmapVIDForEleHEEP
 
tuple bitmapVIDForEleSpring15
 
tuple bitmapVIDForEleSum16
 
tuple calibratedPatElectronsNano
 
tuple correctionFile = cms.string("EgammaAnalysis/ElectronTools/data/ScalesSmearings/Run2016_UltraLegacy_preVFP_RunFineEtaR9Gain")
 
tuple cutBased = Var("userInt('cutbasedID_Fall17_V2_veto')+userInt('cutbasedID_Fall17_V2_loose')+userInt('cutbasedID_Fall17_V2_medium')+userInt('cutbasedID_Fall17_V2_tight')",int,doc="cut-based ID Fall17 V2 (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")
 
tuple cutBased_Fall17_V1 = Var("userInt('cutbasedID_Fall17_V1_veto')+userInt('cutbasedID_Fall17_V1_loose')+userInt('cutbasedID_Fall17_V1_medium')+userInt('cutbasedID_Fall17_V1_tight')",int,doc="cut-based ID Fall17 V1 (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")
 
tuple cutBased_HEEP = Var("electronID('heepElectronID-HEEPV70')",bool,doc="cut-based HEEP ID")
 
tuple cutBased_HLTPreSel = Var("userInt('cutbasedID_HLT')",int,doc="cut-based HLT pre-selection ID")
 
tuple cutBased_Spring15 = Var("userInt('cutbasedID_Spring15_veto')+userInt('cutbasedID_Spring15_loose')+userInt('cutbasedID_Spring15_medium')+userInt('cutbasedID_Spring15_tight')",int,doc="cut-based Spring15 ID (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")
 
tuple cutBased_Sum16 = Var("userInt('cutbasedID_Sum16_veto')+userInt('cutbasedID_Sum16_loose')+userInt('cutbasedID_Sum16_medium')+userInt('cutbasedID_Sum16_tight')",int,doc="cut-based Summer16 ID (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")
 
tuple cutbasedID_Fall17_V2_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-loose")
 
tuple cutbasedID_Fall17_V2_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-medium")
 
tuple cutbasedID_Fall17_V2_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-tight")
 
tuple cutbasedID_Fall17_V2_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-veto")
 
tuple cutbasedID_HLT = cms.InputTag("egmGsfElectronIDs:cutBasedElectronHLTPreselection-Summer16-V1")
 
tuple cutbasedID_Spring15_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-loose")
 
tuple cutbasedID_Spring15_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-medium")
 
tuple cutbasedID_Spring15_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-tight")
 
tuple cutbasedID_Spring15_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-veto")
 
tuple cutbasedID_Sum16_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-loose")
 
tuple cutbasedID_Sum16_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-medium")
 
tuple cutbasedID_Sum16_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-tight")
 
tuple cutbasedID_Sum16_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-veto")
 
tuple dEscaleDown = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energyScaleDownNew')", float, doc="ecal energy scale shifted 1 sigma down (adding gain/stat/syst in quadrature)", precision=8)
 
tuple dEscaleUp = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energyScaleUpNew')", float, doc="ecal energy scale shifted 1 sigma up(adding gain/stat/syst in quadrature)", precision=8)
 
tuple dEsigmaDown = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energySigmaDownNew')", float, doc="ecal energy smearing value shifted 1 sigma up", precision=8)
 
tuple dEsigmaUp = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energySigmaUpNew')", float, doc="ecal energy smearing value shifted 1 sigma up", precision=8)
 
string EAFile_MiniIso = "RecoEgamma/ElectronIdentification/data/Spring15/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_25ns.txt"
 
string EAFile_PFIso = "RecoEgamma/ElectronIdentification/data/Summer16/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_80X.txt"
 
 ecalTrkEnergyErrPostCorrNew = None,
 Not to update with S+S vars as they already exist for run2_nanoAOD_94X2016 era. More...
 
 ecalTrkEnergyPostCorrNew = None,
 
 ecalTrkEnergyPreCorrNew = None,
 
tuple eCorr = Var("userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')", float, doc="ratio of the calibrated energy/miniaod energy")
 
tuple ele9X105XUpdateModifier
 
tuple electron_id_modules_WorkingPoints_nanoAOD
 modify the past eras More...
 
tuple electronMCTable
 
tuple electronMCTask = cms.Task(tautaggerForMatching, matchingElecPhoton, electronsMCMatchForTable, electronsMCMatchForTableAlt, electronMCTable)
 
tuple electronMVATTH
 finalElectrons##################### electronMVATTH##################### More...
 
tuple electronsMCMatchForTable
 
tuple electronsMCMatchForTableAlt
 
tuple electronTable
 electronMVATTH end##################### electronTable defn ##################### More...
 
tuple electronTablesTask = cms.Task(electronMVATTH, electronTable)
 
tuple electronTask = cms.Task(bitmapVIDForEle,bitmapVIDForEleHEEP,isoForEle,ptRatioRelForEle,seedGainEle,calibratedPatElectronsNano,slimmedElectronsWithUserData,finalElectrons)
 
tuple energyErr = Var("userFloat('ecalTrkEnergyErrPostCorrNew')", float, precision=6, doc="energy error of the cluster-track combination")
 
 energyScaleDownNew = None,
 
 energyScaleUpNew = None,
 
 energySigmaDownNew = None
 
 energySigmaUpNew = None,
 
tuple finalElectrons
 END slimmedElectrons with user data##################### finalElectrons#####################. More...
 
tuple isoForEle
 for bitmapVIDForEle defn end############################# ISO ELE defn(in principle should be an import#################### PhysicsTools/NanoAOD/python/EleIsoValueMapProducer_cfi.py More...
 
tuple matchingElecPhoton
 PhysicsTools/NanoAOD/plugins/GenJetGenPartMerger.cc##this class misses fillDescription::TODO. More...
 
tuple modules
 
tuple mvaFall17V1Iso = Var("userFloat('mvaFall17V1Iso')",float,doc="MVA Iso ID V1 score")
 Keeping the possibilty of using V1 working points in older eras. More...
 
tuple mvaFall17V1Iso_WP80 = Var("userInt('mvaFall17V1Iso_WP80')",bool,doc="MVA Iso ID V1 WP80")
 
tuple mvaFall17V1Iso_WP90 = Var("userInt('mvaFall17V1Iso_WP90')",bool,doc="MVA Iso ID V1 WP90")
 
tuple mvaFall17V1Iso_WPL = Var("userInt('mvaFall17V1Iso_WPL')",bool,doc="MVA Iso ID V1 loose WP")
 
tuple mvaFall17V1noIso = Var("userFloat('mvaFall17V1noIso')",float,doc="MVA noIso ID V1 score")
 
tuple mvaFall17V1noIso_WP80 = Var("userInt('mvaFall17V1noIso_WP80')",bool,doc="MVA noIso ID V1 WP80")
 
tuple mvaFall17V1noIso_WP90 = Var("userInt('mvaFall17V1noIso_WP90')",bool,doc="MVA noIso ID V1 WP90")
 
tuple mvaFall17V1noIso_WPL = Var("userInt('mvaFall17V1noIso_WPL')",bool,doc="MVA noIso ID V1 loose WP")
 
 mvaFall17V2Iso = None,
 
 mvaFall17V2Iso_WP80 = None,
 
 mvaFall17V2Iso_WP90 = None,
 
 mvaFall17V2Iso_WPL = None,
 
 mvaFall17V2noIso = None,
 
 mvaFall17V2noIso_WP80 = None,
 
 mvaFall17V2noIso_WP90 = None,
 
 mvaFall17V2noIso_WPL = None,
 
tuple mvaSpring16GP = cms.InputTag("electronMVAValueMapProducer:ElectronMVAEstimatorRun2Spring16GeneralPurposeV1Values")
 
tuple mvaSpring16GP_WP80 = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-GeneralPurpose-V1-wp80")
 
tuple mvaSpring16GP_WP90 = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-GeneralPurpose-V1-wp90")
 
tuple mvaSpring16HZZ = cms.InputTag("electronMVAValueMapProducer:ElectronMVAEstimatorRun2Spring16HZZV1Values")
 
tuple mvaSpring16HZZ_WPL = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-HZZ-V1-wpLoose")
 
tuple pt = Var("pt*userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')", float, precision=-1, doc="p_{T}")
 
tuple ptRatioRelForEle
 ISO ELE end##################################### ptRatioForEle##################################### import from hysicsTools/NanoAOD/pythonElectronJetVarProducer_cfi.py. More...
 
tuple scEtOverPt = Var("(superCluster().energy()/(pt*userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')*cosh(superCluster().eta())))-1",float,doc="(supercluster transverse energy)/pt-1",precision=8)
 
tuple seedGainEle = cms.EDProducer("ElectronSeedGainProducer", src = cms.InputTag("slimmedElectrons"))
 ptRatioForEle##################################### 3###################seedGailEle############################# More...
 
tuple slimmedElectronsTo106X
 
tuple slimmedElectronsUpdated
 
tuple slimmedElectronsWithUserData
 end calibratedPatElectronsNano############################33 Start slimmedElectronsWithUserData###############################3 import from PhysicsTools/PatAlgos/python/electronsWithUserData_cfi.py More...
 
tuple tautaggerForMatching
 electron Table END##################### Depends on particlelevel producer run in particlelevel_cff More...
 
 VIDNestedWPBitmap = None,
 TEMPORARY as no ID for Run3 yet. More...
 
 vidNestedWPBitmap = None,
 
 VIDNestedWPBitmapHEEP = None)
 
 vidNestedWPBitmapHEEP = None,
 
tuple VIDNestedWPBitmapSpring15 = cms.InputTag("bitmapVIDForEleSpring15")
 
tuple vidNestedWPBitmapSpring15 = Var("userInt('VIDNestedWPBitmapSpring15')",int,doc=_bitmapVIDForEleSpring15_docstring)
 
tuple VIDNestedWPBitmapSum16 = cms.InputTag("bitmapVIDForEleSum16")
 
tuple vidNestedWPBitmapSum16 = Var("userInt('VIDNestedWPBitmapSum16')",int,doc=_bitmapVIDForEleSum16_docstring)
 
string weightFile = "PhysicsTools/NanoAOD/data/el_BDTG_2016.weights.xml"
 
tuple WorkingPoints
 

Function Documentation

def electrons_cff._get_bitmapVIDForEle_docstring (   modules,
  WorkingPoints 
)
private

Definition at line 81 of file electrons_cff.py.

References reco.ceil(), DeadROC_duringRun.dir, join(), log, and submitPVValidationJobs.split().

81 
82 def _get_bitmapVIDForEle_docstring(modules,WorkingPoints):
83  docstring=''
84  for modname in modules:
85  ids= __import__(modname, globals(), locals(), ['idName','cutFlow'])
86  for name in dir(ids):
87  _id = getattr(ids,name)
88  if hasattr(_id,'idName') and hasattr(_id,'cutFlow'):
89  if (len(WorkingPoints)>0 and _id.idName==WorkingPoints[0].split(':')[-1]):
90  docstring = 'VID compressed bitmap (%s), %d bits per cut'%(','.join([cut.cutName.value() for cut in _id.cutFlow]),int(ceil(log(len(WorkingPoints)+1,2))))
91  return docstring
constexpr int32_t ceil(float num)
static std::vector< std::string > checklist log
def _get_bitmapVIDForEle_docstring
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Variable Documentation

tuple electrons_cff._bitmapVIDForEle_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEle.WorkingPoints)

Definition at line 96 of file electrons_cff.py.

tuple electrons_cff._bitmapVIDForEleHEEP_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleHEEP.WorkingPoints)

Definition at line 122 of file electrons_cff.py.

tuple electrons_cff._bitmapVIDForEleSpring15_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleSpring15.WorkingPoints)

Definition at line 106 of file electrons_cff.py.

tuple electrons_cff._bitmapVIDForEleSum16_docstring = _get_bitmapVIDForEle_docstring(electron_id_modules_WorkingPoints_nanoAOD.modules,bitmapVIDForEleSum16.WorkingPoints)

Definition at line 116 of file electrons_cff.py.

tuple electrons_cff._withTo106XAndUpdate_Task = cms.Task(heepIDVarValueMaps,slimmedElectronsTo106X)

Definition at line 578 of file electrons_cff.py.

tuple electrons_cff._withTo106XAndUpdateAnd80XLegacyScale_Task = cms.Task(bitmapVIDForEleSpring15,bitmapVIDForEleSum16)

Definition at line 586 of file electrons_cff.py.

tuple electrons_cff._withTo106XAndUpdateAnd94XScale_Task = _withTo106XAndUpdate_Task.copy()

Definition at line 590 of file electrons_cff.py.

tuple electrons_cff._withULAndUpdate_Task = cms.Task(slimmedElectronsUpdated)

end TEMPORARY Run3

this sequence should run for all eras except run2_nanoAOD_106Xv2 which should run the electronSequence as above

Definition at line 573 of file electrons_cff.py.

tuple electrons_cff.bitmapVIDForEle
Initial value:
1 = cms.EDProducer("EleVIDNestedWPBitmapProducer",
2  src = cms.InputTag("slimmedElectrons"),
3  WorkingPoints = electron_id_modules_WorkingPoints_nanoAOD.WorkingPoints,
4 )

Definition at line 92 of file electrons_cff.py.

tuple electrons_cff.bitmapVIDForEleHEEP
Initial value:
1 = bitmapVIDForEle.clone(
2  WorkingPoints = cms.vstring("egmGsfElectronIDs:heepElectronID-HEEPV70"
3  )
4 )

Definition at line 118 of file electrons_cff.py.

tuple electrons_cff.bitmapVIDForEleSpring15
Initial value:
1 = bitmapVIDForEle.clone(
2  WorkingPoints = cms.vstring(
3  "egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-veto",
4  "egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-loose",
5  "egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-medium",
6  # "egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-tight", # not fitting in sizeof(int)
7  )
8 )

Definition at line 98 of file electrons_cff.py.

tuple electrons_cff.bitmapVIDForEleSum16
Initial value:
1 = bitmapVIDForEle.clone(
2  WorkingPoints = cms.vstring(
3  "egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-veto",
4  "egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-loose",
5  "egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-medium",
6  "egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-tight",
7  )
8 )

Definition at line 108 of file electrons_cff.py.

tuple electrons_cff.calibratedPatElectronsNano
Initial value:
1 = RecoEgamma.EgammaTools.calibratedEgammas_cff.calibratedPatElectrons.clone(
2  produceCalibratedObjs = False,
3  src = "slimmedElectrons"
4 )

Definition at line 156 of file electrons_cff.py.

tuple electrons_cff.correctionFile = cms.string("EgammaAnalysis/ElectronTools/data/ScalesSmearings/Run2016_UltraLegacy_preVFP_RunFineEtaR9Gain")

Definition at line 162 of file electrons_cff.py.

electrons_cff.cutBased = Var("userInt('cutbasedID_Fall17_V2_veto')+userInt('cutbasedID_Fall17_V2_loose')+userInt('cutbasedID_Fall17_V2_medium')+userInt('cutbasedID_Fall17_V2_tight')",int,doc="cut-based ID Fall17 V2 (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")

Definition at line 435 of file electrons_cff.py.

tuple electrons_cff.cutBased_Fall17_V1 = Var("userInt('cutbasedID_Fall17_V1_veto')+userInt('cutbasedID_Fall17_V1_loose')+userInt('cutbasedID_Fall17_V1_medium')+userInt('cutbasedID_Fall17_V1_tight')",int,doc="cut-based ID Fall17 V1 (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")

Definition at line 424 of file electrons_cff.py.

electrons_cff.cutBased_HEEP = Var("electronID('heepElectronID-HEEPV70')",bool,doc="cut-based HEEP ID")

Definition at line 437 of file electrons_cff.py.

tuple electrons_cff.cutBased_HLTPreSel = Var("userInt('cutbasedID_HLT')",int,doc="cut-based HLT pre-selection ID")

Definition at line 436 of file electrons_cff.py.

tuple electrons_cff.cutBased_Spring15 = Var("userInt('cutbasedID_Spring15_veto')+userInt('cutbasedID_Spring15_loose')+userInt('cutbasedID_Spring15_medium')+userInt('cutbasedID_Spring15_tight')",int,doc="cut-based Spring15 ID (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")

Definition at line 438 of file electrons_cff.py.

tuple electrons_cff.cutBased_Sum16 = Var("userInt('cutbasedID_Sum16_veto')+userInt('cutbasedID_Sum16_loose')+userInt('cutbasedID_Sum16_medium')+userInt('cutbasedID_Sum16_tight')",int,doc="cut-based Summer16 ID (0:fail, 1:veto, 2:loose, 3:medium, 4:tight)")

Definition at line 431 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Fall17_V2_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-loose")

Definition at line 277 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Fall17_V2_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-medium")

Definition at line 278 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Fall17_V2_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-tight")

Definition at line 279 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Fall17_V2_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-veto")

Definition at line 276 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_HLT = cms.InputTag("egmGsfElectronIDs:cutBasedElectronHLTPreselection-Summer16-V1")

Definition at line 271 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Spring15_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-loose")

Definition at line 273 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Spring15_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-medium")

Definition at line 274 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Spring15_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-tight")

Definition at line 275 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Spring15_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-veto")

Definition at line 272 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Sum16_loose = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-loose")

Definition at line 268 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Sum16_medium = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-medium")

Definition at line 269 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Sum16_tight = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-tight")

Definition at line 270 of file electrons_cff.py.

tuple electrons_cff.cutbasedID_Sum16_veto = cms.InputTag("egmGsfElectronIDs:cutBasedElectronID-Summer16-80X-V1-veto")

Definition at line 267 of file electrons_cff.py.

tuple electrons_cff.dEscaleDown = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energyScaleDownNew')", float, doc="ecal energy scale shifted 1 sigma down (adding gain/stat/syst in quadrature)", precision=8)

Definition at line 409 of file electrons_cff.py.

tuple electrons_cff.dEscaleUp = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energyScaleUpNew')", float, doc="ecal energy scale shifted 1 sigma up(adding gain/stat/syst in quadrature)", precision=8)

Definition at line 408 of file electrons_cff.py.

tuple electrons_cff.dEsigmaDown = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energySigmaDownNew')", float, doc="ecal energy smearing value shifted 1 sigma up", precision=8)

Definition at line 411 of file electrons_cff.py.

tuple electrons_cff.dEsigmaUp = Var("userFloat('ecalTrkEnergyPostCorrNew')-userFloat('energySigmaUpNew')", float, doc="ecal energy smearing value shifted 1 sigma up", precision=8)

Definition at line 410 of file electrons_cff.py.

string electrons_cff.EAFile_MiniIso = "RecoEgamma/ElectronIdentification/data/Spring15/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_25ns.txt"

Definition at line 135 of file electrons_cff.py.

string electrons_cff.EAFile_PFIso = "RecoEgamma/ElectronIdentification/data/Summer16/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_80X.txt"

Definition at line 136 of file electrons_cff.py.

electrons_cff.ecalTrkEnergyErrPostCorrNew = None,

Not to update with S+S vars as they already exist for run2_nanoAOD_94X2016 era.

Definition at line 254 of file electrons_cff.py.

electrons_cff.ecalTrkEnergyPostCorrNew = None,

Definition at line 256 of file electrons_cff.py.

electrons_cff.ecalTrkEnergyPreCorrNew = None,

Definition at line 255 of file electrons_cff.py.

tuple electrons_cff.eCorr = Var("userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')", float, doc="ratio of the calibrated energy/miniaod energy")

Definition at line 406 of file electrons_cff.py.

Referenced by EGMEnergyVarProducer< T >.produce().

tuple electrons_cff.ele9X105XUpdateModifier
Initial value:
1 = egamma9X105XUpdateModifier.clone(
2  phoPhotonIso = "",
3  phoNeutralHadIso = "",
4  phoChargedHadIso = "",
5  phoChargedHadWorstVtxIso = "",
6  phoChargedHadWorstVtxConeVetoIso = "",
7  phoChargedHadPFPVIso = ""
8 )

Definition at line 9 of file electrons_cff.py.

tuple electrons_cff.electron_id_modules_WorkingPoints_nanoAOD
Initial value:
1 = cms.PSet(
2  modules = cms.vstring(
3  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V1_cff',
4  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V2_cff',
5  'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV70_cff',
6  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V1_cff',
7  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V1_cff',
8  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V2_cff',
9  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V2_cff',
10  ),
11  WorkingPoints = cms.vstring(
12  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-veto",
13  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-loose",
14  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-medium",
15  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-tight",
16  )
17 )

modify the past eras

FOR bitmapVIDForEle main defn#############################

Definition at line 40 of file electrons_cff.py.

tuple electrons_cff.electronMCTable
Initial value:
1 = cms.EDProducer("CandMCMatchTableProducer",
2  src = electronTable.src,
3  mcMapDressedLep = cms.InputTag("electronsMCMatchForTableAlt"),
4  mcMap = cms.InputTag("electronsMCMatchForTable"),
5  mapTauAnc = cms.InputTag("matchingElecPhoton:hasTauAnc"),
6  objName = electronTable.name,
7  objType = electronTable.name, #cms.string("Electron"),
8  branchName = cms.string("genPart"),
9  docString = cms.string("MC matching to status==1 electrons or photons"),
10  genparticles = cms.InputTag("finalGenParticles"),
11 )

Definition at line 513 of file electrons_cff.py.

tuple electrons_cff.electronMCTask = cms.Task(tautaggerForMatching, matchingElecPhoton, electronsMCMatchForTable, electronsMCMatchForTableAlt, electronMCTable)

Definition at line 527 of file electrons_cff.py.

tuple electrons_cff.electronMVATTH
Initial value:
1 = cms.EDProducer("EleBaseMVAValueMapProducer",
2  src = cms.InputTag("linkedObjects","electrons"),
3  weightFile = cms.FileInPath("PhysicsTools/NanoAOD/data/el_BDTG_2017.weights.xml"),
4  name = cms.string("electronMVATTH"),
5  isClassifier = cms.bool(True),
6  variablesOrder = cms.vstring(["LepGood_pt","LepGood_eta","LepGood_jetNDauChargedMVASel","LepGood_miniRelIsoCharged","LepGood_miniRelIsoNeutral","LepGood_jetPtRelv2","LepGood_jetDF","LepGood_jetPtRatio","LepGood_dxy","LepGood_sip3d","LepGood_dz","LepGood_mvaFall17V2noIso"]),
7  variables = cms.PSet(
8  LepGood_pt = cms.string("pt"),
9  LepGood_eta = cms.string("eta"),
10  LepGood_jetNDauChargedMVASel = cms.string("?userCand('jetForLepJetVar').isNonnull()?userFloat('jetNDauChargedMVASel'):0"),
11  LepGood_miniRelIsoCharged = cms.string("userFloat('miniIsoChg')/pt"),
12  LepGood_miniRelIsoNeutral = cms.string("(userFloat('miniIsoAll')-userFloat('miniIsoChg'))/pt"),
13  LepGood_jetPtRelv2 = cms.string("?userCand('jetForLepJetVar').isNonnull()?userFloat('ptRel'):0"),
14  LepGood_jetDF = cms.string("?userCand('jetForLepJetVar').isNonnull()?max(userCand('jetForLepJetVar').bDiscriminator('pfDeepFlavourJetTags:probbb')+userCand('jetForLepJetVar').bDiscriminator('pfDeepFlavourJetTags:probb')+userCand('jetForLepJetVar').bDiscriminator('pfDeepFlavourJetTags:problepb'),0.0):0.0"),
15  LepGood_jetPtRatio = cms.string("?userCand('jetForLepJetVar').isNonnull()?min(userFloat('ptRatio'),1.5):1.0/(1.0+userFloat('PFIsoAll04')/pt)"),
16  LepGood_dxy = cms.string("log(abs(dB('PV2D')))"),
17  LepGood_sip3d = cms.string("abs(dB('PV3D')/edB('PV3D'))"),
18  LepGood_dz = cms.string("log(abs(dB('PVDZ')))"),
19  LepGood_mvaFall17V2noIso = cms.string("userFloat('mvaFall17V2noIso')"),
20  )
21 )

finalElectrons##################### electronMVATTH#####################

Definition at line 316 of file electrons_cff.py.

tuple electrons_cff.electronsMCMatchForTable
Initial value:
1 = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
2  src = electronTable.src, # final reco collection
3  matched = cms.InputTag("finalGenParticles"), # final mc-truth particle collection
4  mcPdgId = cms.vint32(11,22), # one or more PDG ID (11 = el, 22 = pho); absolute values (see below)
5  checkCharge = cms.bool(False), # True = require RECO and MC objects to have the same charge
6  mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
7  maxDeltaR = cms.double(0.3), # Minimum deltaR for the match
8  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
9  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
10  resolveByMatchQuality = cms.bool(True), # False = just match input in order; True = pick lowest deltaR pair first
11 )

Definition at line 501 of file electrons_cff.py.

tuple electrons_cff.electronsMCMatchForTableAlt
Initial value:
1 = cms.EDProducer("GenJetMatcherDRPtByDR", # cut on deltaR, deltaPt/Pt; pick best by deltaR
2  src = electronTable.src, # final reco collection
3  matched = cms.InputTag("matchingElecPhoton:merged"), # final mc-truth particle collection
4  mcPdgId = cms.vint32(11,22), # one or more PDG ID (11 = el, 22 = pho); absolute values (see below)
5  checkCharge = cms.bool(False), # True = require RECO and MC objects to have the same charge
6  mcStatus = cms.vint32(),
7  maxDeltaR = cms.double(0.3), # Minimum deltaR for the match
8  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
9  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
10  resolveByMatchQuality = cms.bool(True), # False = just match input in order; True = pick lowest deltaR pair first
11 )

Definition at line 490 of file electrons_cff.py.

tuple electrons_cff.electronTable

electronMVATTH end##################### electronTable defn #####################

Definition at line 342 of file electrons_cff.py.

tuple electrons_cff.electronTablesTask = cms.Task(electronMVATTH, electronTable)

Definition at line 526 of file electrons_cff.py.

tuple electrons_cff.electronTask = cms.Task(bitmapVIDForEle,bitmapVIDForEleHEEP,isoForEle,ptRatioRelForEle,seedGainEle,calibratedPatElectronsNano,slimmedElectronsWithUserData,finalElectrons)

Definition at line 525 of file electrons_cff.py.

tuple electrons_cff.energyErr = Var("userFloat('ecalTrkEnergyErrPostCorrNew')", float, precision=6, doc="energy error of the cluster-track combination")

Definition at line 405 of file electrons_cff.py.

electrons_cff.energyScaleDownNew = None,

Definition at line 258 of file electrons_cff.py.

electrons_cff.energyScaleUpNew = None,

Definition at line 257 of file electrons_cff.py.

electrons_cff.energySigmaDownNew = None

Definition at line 260 of file electrons_cff.py.

electrons_cff.energySigmaUpNew = None,

Definition at line 259 of file electrons_cff.py.

tuple electrons_cff.finalElectrons
Initial value:
1 = cms.EDFilter("PATElectronRefSelector",
2  src = cms.InputTag("slimmedElectronsWithUserData"),
3  cut = cms.string("pt > 5 ")
4 )

END slimmedElectrons with user data##################### finalElectrons#####################.

Definition at line 310 of file electrons_cff.py.

tuple electrons_cff.isoForEle
Initial value:
1 = cms.EDProducer("EleIsoValueMapProducer",
2  src = cms.InputTag("slimmedElectrons"),
3  relative = cms.bool(False),
4  rho_MiniIso = cms.InputTag("fixedGridRhoFastjetAll"),
5  rho_PFIso = cms.InputTag("fixedGridRhoFastjetAll"),
6  EAFile_MiniIso = cms.FileInPath("RecoEgamma/ElectronIdentification/data/Fall17/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_94X.txt"),
7  EAFile_PFIso = cms.FileInPath("RecoEgamma/ElectronIdentification/data/Fall17/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_94X.txt"),
8 )

for bitmapVIDForEle defn end############################# ISO ELE defn(in principle should be an import#################### PhysicsTools/NanoAOD/python/EleIsoValueMapProducer_cfi.py

Definition at line 126 of file electrons_cff.py.

tuple electrons_cff.matchingElecPhoton
Initial value:
1 = cms.EDProducer("GenJetGenPartMerger",
2  srcJet =cms.InputTag("particleLevel:leptons"),
3  srcPart=cms.InputTag("particleLevel:photons"),
4  cut = cms.string("pt > 3"),
5  hasTauAnc=cms.InputTag("tautaggerForMatching"),
6 )

PhysicsTools/NanoAOD/plugins/GenJetGenPartMerger.cc##this class misses fillDescription::TODO.

Definition at line 484 of file electrons_cff.py.

tuple electrons_cff.modules
Initial value:
1 = cms.vstring(
2  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V1_cff',
3  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V2_cff',
4  'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV70_cff',
5  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V1_cff',
6  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V1_cff',
7  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V2_cff',
8  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V2_cff',
9  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff',
10  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronHLTPreselecition_Summer16_V1_cff',
11  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_25ns_V1_cff',
12  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_GeneralPurpose_V1_cff',
13  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_HZZ_V1_cff',
14  )

Definition at line 59 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1Iso = Var("userFloat('mvaFall17V1Iso')",float,doc="MVA Iso ID V1 score")

Keeping the possibilty of using V1 working points in older eras.

Definition at line 416 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1Iso_WP80 = Var("userInt('mvaFall17V1Iso_WP80')",bool,doc="MVA Iso ID V1 WP80")

Definition at line 417 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1Iso_WP90 = Var("userInt('mvaFall17V1Iso_WP90')",bool,doc="MVA Iso ID V1 WP90")

Definition at line 418 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1Iso_WPL = Var("userInt('mvaFall17V1Iso_WPL')",bool,doc="MVA Iso ID V1 loose WP")

Definition at line 419 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1noIso = Var("userFloat('mvaFall17V1noIso')",float,doc="MVA noIso ID V1 score")

Definition at line 420 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1noIso_WP80 = Var("userInt('mvaFall17V1noIso_WP80')",bool,doc="MVA noIso ID V1 WP80")

Definition at line 421 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1noIso_WP90 = Var("userInt('mvaFall17V1noIso_WP90')",bool,doc="MVA noIso ID V1 WP90")

Definition at line 422 of file electrons_cff.py.

tuple electrons_cff.mvaFall17V1noIso_WPL = Var("userInt('mvaFall17V1noIso_WPL')",bool,doc="MVA noIso ID V1 loose WP")

Definition at line 423 of file electrons_cff.py.

electrons_cff.mvaFall17V2Iso = None,

Definition at line 538 of file electrons_cff.py.

electrons_cff.mvaFall17V2Iso_WP80 = None,

Definition at line 543 of file electrons_cff.py.

electrons_cff.mvaFall17V2Iso_WP90 = None,

Definition at line 544 of file electrons_cff.py.

electrons_cff.mvaFall17V2Iso_WPL = None,

Definition at line 545 of file electrons_cff.py.

electrons_cff.mvaFall17V2noIso = None,

Definition at line 539 of file electrons_cff.py.

electrons_cff.mvaFall17V2noIso_WP80 = None,

Definition at line 547 of file electrons_cff.py.

electrons_cff.mvaFall17V2noIso_WP90 = None,

Definition at line 548 of file electrons_cff.py.

electrons_cff.mvaFall17V2noIso_WPL = None,

Definition at line 549 of file electrons_cff.py.

tuple electrons_cff.mvaSpring16GP = cms.InputTag("electronMVAValueMapProducer:ElectronMVAEstimatorRun2Spring16GeneralPurposeV1Values")

Definition at line 284 of file electrons_cff.py.

tuple electrons_cff.mvaSpring16GP_WP80 = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-GeneralPurpose-V1-wp80")

Definition at line 290 of file electrons_cff.py.

tuple electrons_cff.mvaSpring16GP_WP90 = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-GeneralPurpose-V1-wp90")

Definition at line 289 of file electrons_cff.py.

tuple electrons_cff.mvaSpring16HZZ = cms.InputTag("electronMVAValueMapProducer:ElectronMVAEstimatorRun2Spring16HZZV1Values")

Definition at line 285 of file electrons_cff.py.

tuple electrons_cff.mvaSpring16HZZ_WPL = cms.InputTag("egmGsfElectronIDs:mvaEleID-Spring16-HZZ-V1-wpLoose")

Definition at line 291 of file electrons_cff.py.

tuple electrons_cff.pt = Var("pt*userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')", float, precision=-1, doc="p_{T}")

Definition at line 404 of file electrons_cff.py.

tuple electrons_cff.ptRatioRelForEle
Initial value:
1 = cms.EDProducer("ElectronJetVarProducer",
2  srcJet = cms.InputTag("updatedJets"),
3  srcLep = cms.InputTag("slimmedElectrons"),
4  srcVtx = cms.InputTag("offlineSlimmedPrimaryVertices"),
5 )

ISO ELE end##################################### ptRatioForEle##################################### import from hysicsTools/NanoAOD/pythonElectronJetVarProducer_cfi.py.

Definition at line 143 of file electrons_cff.py.

tuple electrons_cff.scEtOverPt = Var("(superCluster().energy()/(pt*userFloat('ecalTrkEnergyPostCorrNew')/userFloat('ecalTrkEnergyPreCorrNew')*cosh(superCluster().eta())))-1",float,doc="(supercluster transverse energy)/pt-1",precision=8)

Definition at line 407 of file electrons_cff.py.

tuple electrons_cff.seedGainEle = cms.EDProducer("ElectronSeedGainProducer", src = cms.InputTag("slimmedElectrons"))

ptRatioForEle##################################### 3###################seedGailEle#############################

Definition at line 150 of file electrons_cff.py.

tuple electrons_cff.slimmedElectronsTo106X
Initial value:
1 = cms.EDProducer("ModifiedElectronProducer",
2  src = cms.InputTag("slimmedElectrons"),
3  modifierConfig = cms.PSet( modifications = cms.VPSet(ele9X105XUpdateModifier) )
4 )

Definition at line 18 of file electrons_cff.py.

tuple electrons_cff.slimmedElectronsUpdated
Initial value:
1 = cms.EDProducer("PATElectronUpdater",
2  src = cms.InputTag("slimmedElectrons"),
3  vertices = cms.InputTag("offlineSlimmedPrimaryVertices"),
4  computeMiniIso = cms.bool(False),
5  fixDxySign = cms.bool(True),
6  pfCandsForMiniIso = cms.InputTag("packedPFCandidates"),
7  miniIsoParamsB = PhysicsTools.PatAlgos.producersLayer1.electronProducer_cfi.patElectrons.miniIsoParamsB, # so they're in sync
8  miniIsoParamsE = PhysicsTools.PatAlgos.producersLayer1.electronProducer_cfi.patElectrons.miniIsoParamsE, # so they're in sync
9 )

Definition at line 26 of file electrons_cff.py.

tuple electrons_cff.slimmedElectronsWithUserData

end calibratedPatElectronsNano############################33 Start slimmedElectronsWithUserData###############################3 import from PhysicsTools/PatAlgos/python/electronsWithUserData_cfi.py

Definition at line 192 of file electrons_cff.py.

tuple electrons_cff.tautaggerForMatching
Initial value:
1 = cms.EDProducer("GenJetTauTaggerProducer",
2  src = cms.InputTag('particleLevel:leptons')
3 )

electron Table END##################### Depends on particlelevel producer run in particlelevel_cff

Definition at line 480 of file electrons_cff.py.

electrons_cff.VIDNestedWPBitmap = None,

TEMPORARY as no ID for Run3 yet.

Definition at line 533 of file electrons_cff.py.

electrons_cff.vidNestedWPBitmap = None,

Definition at line 551 of file electrons_cff.py.

electrons_cff.VIDNestedWPBitmapHEEP = None)

Definition at line 534 of file electrons_cff.py.

electrons_cff.vidNestedWPBitmapHEEP = None,

Definition at line 550 of file electrons_cff.py.

tuple electrons_cff.VIDNestedWPBitmapSpring15 = cms.InputTag("bitmapVIDForEleSpring15")

Definition at line 305 of file electrons_cff.py.

tuple electrons_cff.vidNestedWPBitmapSpring15 = Var("userInt('VIDNestedWPBitmapSpring15')",int,doc=_bitmapVIDForEleSpring15_docstring)

Definition at line 452 of file electrons_cff.py.

tuple electrons_cff.VIDNestedWPBitmapSum16 = cms.InputTag("bitmapVIDForEleSum16")

Definition at line 306 of file electrons_cff.py.

tuple electrons_cff.vidNestedWPBitmapSum16 = Var("userInt('VIDNestedWPBitmapSum16')",int,doc=_bitmapVIDForEleSum16_docstring)

Definition at line 453 of file electrons_cff.py.

string electrons_cff.weightFile = "PhysicsTools/NanoAOD/data/el_BDTG_2016.weights.xml"

Definition at line 338 of file electrons_cff.py.

tuple electrons_cff.WorkingPoints
Initial value:
1 = cms.vstring(
2  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-veto",
3  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-loose",
4  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-medium",
5  "egmGsfElectronIDs:cutBasedElectronID-Fall17-94X-V2-tight",
6  )

Definition at line 73 of file electrons_cff.py.