Esempio n. 1
0
    'ElectronTightIso',
    OutputName='TightElectronIso',
    IsoType=switchBX(mithep.ElectronTools.kSummer15TightIso,
                     mithep.ElectronTools.kSummer15Tight50nsIso),
)

# Muons
# veryLooseMuons = base collection
# baseline, soft (original definition), fake, veto, loose, medium, tight defined on top of veryLoose
# for medium and tight, versions with tighter IP cuts are available

veryLooseMuons = mithep.MuonIdMod('FiducialMuons',
                                  InputName=mithep.Names.gkMuonBrn,
                                  OutputName='FiducialMuons',
                                  MuonClassType=mithep.MuonTools.kAll,
                                  IdType=mithep.MuonTools.kNoId,
                                  IsoType=mithep.MuonTools.kNoIso,
                                  ApplyD0Cut=False,
                                  ApplyDZCut=False,
                                  PtMin=3.,
                                  EtaMax=2.4)

# baseline has a pT cut

muonBaselineId = veryLooseMuons.clone(
    'MuonBaselineId',
    IsFilterMode=False,
    InputName=veryLooseMuons.GetOutputName(),
    OutputName='BaselineMuonId',
    MuonClassType=mithep.MuonTools.kGlobalorTracker,
    ApplyD0Cut=False,
    ApplyDZCut=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
)

tauId = mithep.PFTauIdMod(
    OutputName = 'LooseTaus',
    PtMin = 18.,
    EtaMax = 2.3
)
tauId.AddDiscriminator(mithep.PFTau.kDiscriminationByDecayModeFindingNewDMs)

photonId = mithep.PhotonIdMod(
    OutputName = 'LoosePhotons',
    IdType = mithep.PhotonTools.kPhys14Loose,
Esempio n. 3
0
from MitAna.TreeMod.bambu import mithep

muonIdMod = mithep.MuonIdMod(OutputName='LooseMuons',
                             MuonClassType=mithep.MuonTools.kAll,
                             IdType=mithep.MuonTools.kNoId,
                             IsoType=mithep.MuonTools.kNoIso,
                             PFNoPileupCandidatesName='pfNoPU',
                             PFPileupCandidatesName='pfPU',
                             ApplyD0Cut=False,
                             ApplyDZCut=False,
                             PtMin=3.,
                             EtaMax=2.4)
Esempio n. 4
0
else:
    jecSources = [
        "Summer15_50nsV5_MC_L1FastJet_AK4PFchs.txt",
        "Summer15_50nsV5_MC_L2Relative_AK4PFchs.txt",
        "Summer15_50nsV5_MC_L3Absolute_AK4PFchs.txt"
    ]

for jec in jecSources:
    jetCorrection.AddCorrectionFromFile(mitdata + '/JEC/' + jec)
    metCorrection.AddJetCorrectionFromFile(mitdata + '/JEC/' + jec)

muonId = mithep.MuonIdMod("MuonId",
                          MuonClassType=mithep.MuonTools.kPFGlobalorTracker,
                          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,