Ejemplo n.º 1
0
addConstModJets("AntiKt",
                1.0,
                "EMPFlow", ["CS", "SK"],
                jetm15Seq,
                "JETM15",
                ptmin=40000,
                ptminFilter=50000)

# add VR jets
addVRJets(jetm15Seq)
addVRJets(jetm15Seq, training='201903')

# Now we can run the UFO building taking our unified PFlow container as input
from TrackCaloClusterRecTools.TrackCaloClusterConfig import runUFOReconstruction
emufoAlg = runUFOReconstruction(jetm15Seq,
                                ToolSvc,
                                PFOPrefix="CHS",
                                caloClusterName="LCOriginTopoClusters")
emcsskufoAlg = runUFOReconstruction(jetm15Seq,
                                    ToolSvc,
                                    PFOPrefix="CSSK",
                                    caloClusterName='LCOriginTopoClusters')

from JetRec.JetRecConf import PseudoJetGetter

csskufopjgetter = PseudoJetGetter("csskufoPJGetter",
                                  InputContainer="CSSKUFO",
                                  OutputContainer="CSSKUFOPJ",
                                  Label="UFO",
                                  SkipNegativeEnergy=True)
jtm += csskufopjgetter
ufopjgetter = PseudoJetGetter("ufoPJGetter",
Ejemplo n.º 2
0
#=======================================
# BUILD UFO INPUTS
#=======================================

## Add PFlow constituents
from JetRecTools.ConstModHelpers import getConstModSeq, xAOD
pflowCSSKSeq = getConstModSeq(["CS","SK"], "EMPFlow")

# add the pflow cssk sequence to the main jetalg if not already there :
if pflowCSSKSeq.getFullName() not in [t.getFullName() for t in DerivationFrameworkJob.jetalg.Tools]:
  DerivationFrameworkJob.jetalg.Tools += [pflowCSSKSeq]

# Add UFO constituents
from TrackCaloClusterRecTools.TrackCaloClusterConfig import runUFOReconstruction
emufoAlg = runUFOReconstruction(jetm6Seq, ToolSvc, PFOPrefix="CHS")
emcsskufoAlg = runUFOReconstruction(jetm6Seq, ToolSvc, PFOPrefix="CSSK")

#=======================================
# RESTORE AOD-REDUCED JET COLLECTIONS
#=======================================

reducedJetList = ["AntiKt2PV0TrackJets",
                  "AntiKt4PV0TrackJets",
                  "AntiKt2TruthJets",
                  "AntiKt2LCTopoJets",
                  "AntiKt4TruthJets",
                  "AntiKt10TruthJets",
                  "AntiKt10LCTopoJets",
                  "AntiKt10UFOCSSKJets",
                  "AntiKt10UFOCHSJets"
Ejemplo n.º 3
0
#====================================================================
# BUILD UFO INPUTS
#====================================================================

from JetRecTools.ConstModHelpers import getConstModSeq
pflowCSSKSeq = getConstModSeq(["CS", "SK"], "EMPFlow")

# add the pflow cssk sequence to the main jetalg if not already there :
if pflowCSSKSeq.getFullName() not in [
        t.getFullName() for t in DerivationFrameworkJob.jetalg.Tools
]:
    DerivationFrameworkJob.jetalg.Tools += [pflowCSSKSeq]

from TrackCaloClusterRecTools.TrackCaloClusterConfig import runUFOReconstruction
emufoAlg = runUFOReconstruction(jetm4Seq, ToolSvc, PFOPrefix="CHS")
runUFOReconstruction(jetm4Seq, ToolSvc, PFOPrefix="CSSK")

#=======================================
# RESTORE AOD-REDUCED JET COLLECTIONS
#=======================================
reducedJetList = [
    "AntiKt2PV0TrackJets", "AntiKt4PV0TrackJets", "AntiKt10PV0TrackJets",
    "AntiKt4TruthJets", "AntiKt10TruthJets", "AntiKt10LCTopoJets",
    "AntiKt10TruthJets", "AntiKt10UFOCSSKJets", "AntiKt10UFOCHSJets"
]
replaceAODReducedJets(reducedJetList, jetm4Seq, "JETM4")

# AntiKt10*PtFrac5Rclus20
addDefaultTrimmedJets(jetm4Seq, "JETM4")