예제 #1
0
    PtMin = 18.,
    EtaMax = 2.3
)
tauId.AddDiscriminator(mithep.PFTau.kDiscriminationByDecayModeFindingNewDMs)

photonId = mithep.PhotonIdMod(
    OutputName = 'LoosePhotons',
    IdType = mithep.PhotonTools.kPhys14Loose,
    IsoType = mithep.PhotonTools.kPhys14Loose,
    PtMin = 15.,
    EtaMax = 2.5
)

jetCorr = mithep.JetCorrectionMod(
    InputName = 'AKt4PFJetsCHS',
    CorrectedJetsName = 'AKt4PFJetsCHSL1L2L3',
    RhoAlgo = mithep.PileupEnergyDensity.kFixedGridFastjetAll
)
jetCorr.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L1FastJet_AK4PFchs.txt")
jetCorr.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L2Relative_AK4PFchs.txt")
jetCorr.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L3Absolute_AK4PFchs.txt")

jetId = mithep.JetIdMod(
    InputName = jetCorr.GetOutputName(),
    OutputName = 'CleanedJets',
    UseL1Correction = False,
    UseL2Correction = False,
    UseL3Correction = False,
    ApplyPFLooseId = True,
    ApplyMVACut = True,
    PtMin = 30.,
예제 #2
0
    jecLevels = ['L1FastJet', 'L2Relative', 'L3Absolute']

#########################################
### MODULES RUN WITH DEFAULT SETTINGS ###
#########################################

from MitPhysics.Mods.GoodPVFilterMod import goodPVFilterMod
from MitPhysics.Mods.SeparatePileUpMod import separatePileUpMod

################################
### JET/MET ID & CORRECTIONS ###
################################

jetCorrection = mithep.JetCorrectionMod(
    'JetCorrection',
    InputName='AKt4PFJetsCHS',
    CorrectedJetsName='CorrectedJets',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll)

puppiJetCorrection = mithep.JetCorrectionMod(
    'PuppiJetCorrection',
    InputName='AKt4PuppiJets',
    CorrectedJetsName='CorrectedPuppiJets',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll)

metCorrection = mithep.MetCorrectionMod(
    'MetCorrection',
    InputName='PFMet',
    OutputName='PFType1CorrectedMet',
    JetsName='AKt4PFJetsCHS',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll,
예제 #3
0
    EEBadScFilter=True,
    CSCTightHaloFilter=True,
    HBHENoiseFilter=analysis.isRealData,
    FillHist=True)
from MitPhysics.Mods.GoodPVFilterMod import goodPVFilterMod
from MitPhysics.Mods.SeparatePileUpMod import separatePileUpMod
from MitPhysics.Mods.PuppiMod import puppiMod
from MitPhysics.Mods.PuppiPFJetMod import puppiPFJetMod

################################
### JET/MET ID & CORRECTIONS ###
################################

jetCorrection = mithep.JetCorrectionMod(
    'JetCorrection',
    InputName='AKt4PFJetsCHS',
    CorrectedJetsName='CorrectedJets',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll)

puppiJetCorrection = mithep.JetCorrectionMod(
    'PuppiJetCorrection',
    InputName=puppiPFJetMod.GetOutputName(),
    CorrectedJetsName='CorrectedPuppiJets',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll)

metCorrection = mithep.MetCorrectionMod(
    'MetCorrection',
    InputName='PFMet',
    OutputName='PFType1CorrectedMet',
    JetsName='AKt4PFJetsCHS',
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll,