예제 #1
0
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,
                                          ApplyEcalFiducial=True,
                                          ApplyD0Cut=False,
                                          ApplyDZCut=False,
                                          WhichVertex=0,
                                          PtMin=10.,
                                          EtaMax=2.5,
                                          ApplyConvFilterType1=False,
                                          ApplyConvFilterType2=False,
                                          ApplyNExpectedHitsInnerCut=False,
                                          ChargeFilter=False,
                                          ConversionsName='Conversions')

# for electrons, baseline and veryLoose are identical

electronBaselineId = veryLooseElectrons.clone(
    'ElectronBaselineId',
    IsFilterMode=False,
    InputName=veryLooseElectrons.GetOutputName(),
    OutputName='FiducialElectronId')
예제 #2
0
    MaxRho = 2.,
    IsMC = True,
    VertexesName = mithep.Names.gkPVBrn
)

pfPU = mithep.SeparatePileUpMod(
    PFNoPileUpName = "pfNoPU",
    PFPileUpName = "pfPU",
    CheckClosestZVertex = False
)

eleId = mithep.ElectronIdMod(
    OutputName = 'VetoElectrons',
    IdType = mithep.ElectronTools.kPhys14Veto,
    IsoType = mithep.ElectronTools.kPhys14VetoIso,
    ApplyEcalFiducial = True,
    WhichVertex = 0,
    PtMin = 10.,
    EtaMax = 2.5,
    ConversionsName = 'Conversions'
)

muId = mithep.MuonIdMod(
    OutputName = 'LooseMuons',
    IdType = mithep.MuonTools.kNoId,
    IsoType = mithep.MuonTools.kPFIsoBetaPUCorrected,
    PFNoPileupCandidatesName = 'pfNoPU',
    PFPileupCandidatesName = 'pfPU',
    PtMin = 10.,
    EtaMax = 2.4
)
예제 #3
0
from MitAna.TreeMod.bambu import mithep

electronIdMod = mithep.ElectronIdMod(
    OutputName='VetoElectrons',
    IdType=mithep.ElectronTools.kNoId,
    IsoType=mithep.ElectronTools.kNoIso,
    ApplyEcalFiducial=True,
    ApplyD0Cut=False,
    ApplyDZCut=False,
    WhichVertex=0,
    PtMin=10.,
    EtaMax=2.5,
    ApplyConvFilterType1=False,
    ApplyConvFilterType2=False,
    ApplyNExpectedHitsInnerCut=False,
    InvertNExpectedHitsInnerCut=False,
    ApplySpikeRemoval=False,
    ChargeFilter=False,
    ApplyTriggerMatching=False,
    ApplyEcalSeeded=False,
    RhoAlgo=mithep.PileupEnergyDensity.kFixedGridFastjetAll,
    EtMin=0.,
    IdLikelihoodCut=-999.,
    ConversionsName='Conversions')
예제 #4
0
                          IdType=mithep.MuonTools.kNoId,
                          IsoType=mithep.MuonTools.kNoIso,
                          ApplyD0Cut=True,
                          ApplyDZCut=True,
                          WhichVertex=0,
                          PtMin=10.,
                          EtaMax=2.4,
                          OutputName="VetoMuons")

electronId = mithep.ElectronIdMod(
    "ElectronId",
    PtMin=10.,
    EtaMax=2.4,
    ApplyEcalFiducial=True,
    IdType=mithep.ElectronTools.kSummer15Veto,
    IsoType=mithep.ElectronTools.kSummer15VetoIso,
    ConversionsName="Conversions",
    ApplyConversionFilterType1=True,
    ApplyConversionFilterType2=False,
    ApplyD0Cut=True,
    ApplyDZCut=True,
    WhichVertex=0,
    OutputName="VetoElectrons")

photonId = mithep.PhotonIdMod("VetoPhotonId",
                              PtMin=15.,
                              OutputName="VetoPhotons",
                              IdType=mithep.PhotonTools.kSummer15Loose,
                              IsoType=mithep.PhotonTools.kSummer15LooseIso,
                              ApplyElectronVeto=True)

jetId = jetIdMod.clone(MVATrainingSet=mithep.JetIDMVA.nMVATypes, PtMin=15.)