parameters: (proc, genJA)
return_statement: return proc
docstring: Make a separate AK8 Gen jet collection for JEC studies.
docstring_summary: Make a separate AK8 Gen jet collection for JEC studies.
docstring_tokens: Make a separate AK8 Gen jet collection for JEC studies .
function: def AddNewAK8GenJetsForJEC(proc, genJA):
    """
    Make a separate AK8 Gen jet collection for JEC studies.
    """
    print("custom_jme_cff::AddNewAK8GenJetsForJEC: Add new AK8 Gen jets for JEC studies")
  
    #
    # Recluster AK8 Gen jet
    #
    cfg = {
      "jet" : "ak8gen",
    }
    genJetInfo = genJA.addGenJetCollection(proc, **cfg)
  
    genJetName         = genJetInfo.jetUpper
    genJetAlgo         = genJetInfo.jetAlgo
    genJetSize         = genJetInfo.jetSize
    genJetSizeNr       = genJetInfo.jetSizeNr
    genJetFinalColl    = "{}{}{}".format(genJetAlgo.upper(), genJetSize, "GenJetsNoNu")
    genJetTablePrefix  = "GenJetAK8ForJEC"
    genJetTableDoc     = "AK8 Gen jets (made with visible genparticles) with pt > 3 GeV. Reclustered for JEC studies."
  
    SaveGenJets(proc, genJetName, genJetAlgo, genJetSizeNr, genJetFinalColl, genJetTablePrefix, genJetTableDoc, runOnMC=False)
  
    return proc
function_tokens: def AddNewAK8GenJetsForJEC ( proc , genJA ) : print ( "custom_jme_cff::AddNewAK8GenJetsForJEC: Add new AK8 Gen jets for JEC studies" ) # # Recluster AK8 Gen jet # cfg = { "jet" : "ak8gen" , } genJetInfo = genJA . addGenJetCollection ( proc , * * cfg ) genJetName = genJetInfo . jetUpper genJetAlgo = genJetInfo . jetAlgo genJetSize = genJetInfo . jetSize genJetSizeNr = genJetInfo . jetSizeNr genJetFinalColl = "{}{}{}" . format ( genJetAlgo . upper ( ) , genJetSize , "GenJetsNoNu" ) genJetTablePrefix = "GenJetAK8ForJEC" genJetTableDoc = "AK8 Gen jets (made with visible genparticles) with pt > 3 GeV. Reclustered for JEC studies." SaveGenJets ( proc , genJetName , genJetAlgo , genJetSizeNr , genJetFinalColl , genJetTablePrefix , genJetTableDoc , runOnMC = False ) return proc