Пример #1
0
# Will not use PU jet ID here (MVA values to be stored in Nero tree)
looseAK4Jets = mithep.JetIdMod('AK4JetId',
                               InputName=jetCorrection.GetOutputName(),
                               OutputName='GoodAK4Jets',
                               PFId=mithep.JetTools.kPFLoose,
                               MVATrainingSet=mithep.JetIDMVA.nMVATypes,
                               PtMin=15.,
                               EtaMax=5.)

###########################
### LEPTON & PHOTON IDS ###
###########################

looseTaus = mithep.PFTauIdMod('PFTauId',
                              InputName=mithep.Names.gkHPSTauBrn,
                              OutputName='LooseTaus',
                              PtMin=18.,
                              EtaMax=2.3)
looseTaus.AddDiscriminator(mithep.PFTau.iDecayModeFinding)
looseTaus.AddCutDiscriminator(
    mithep.PFTau.dByCombinedIsolationDeltaBetaCorrRaw3Hits, 5., False)

# Electrons
# veryLooseElectrons = base collection
# baseline, veto, fake, loose, medium, and tight id defined on top of veryLoose

veryLooseElectrons = mithep.ElectronIdMod('FiducialElectrons',
                                          InputName=mithep.Names.gkElectronBrn,
                                          OutputName='FiducialElectrons',
                                          IdType=mithep.ElectronTools.kNoId,
                                          IsoType=mithep.ElectronTools.kNoIso,
Пример #2
0
    ConversionsName = 'Conversions'
)

muId = mithep.MuonIdMod(
    OutputName = 'LooseMuons',
    IdType = mithep.MuonTools.kNoId,
    IsoType = mithep.MuonTools.kPFIsoBetaPUCorrected,
    PFNoPileupCandidatesName = 'pfNoPU',
    PFPileupCandidatesName = 'pfPU',
    PtMin = 10.,
    EtaMax = 2.4
)

tauId = mithep.PFTauIdMod(
    OutputName = 'LooseTaus',
    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',