예제 #1
0
    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.
)

monojetPrefilter = mithep.MonoXSkimMod('MonojetPrefilter',
    MetName = metCorrection.GetOutputName(),
    AnalysisType = kMonoJet,
    GoodElectronsName = mithep.Names.gkElectronBrn,
    GoodMuonsName = mithep.Names.gkMuonBrn,
    GoodPhotonsName = mithep.Names.gkPhotonBrn,
    JetsName = jetCorrection.GetOutputName(),
    CategoryFlagsName = 'MonojetPrefilter',
    MinMetPt = 150.,
    MinMonoXPt = 90.
)
for cat, triggers in monojetTriggerNames.items():
    for t in triggers:
예제 #2
0
    CorrectedJetsName = 'CorrectedFatJets',
    RhoAlgo = mithep.PileupEnergyDensity.kFixedGridFastjetAll
)
if analysis.isRealData:
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/74X_dataRun2_Prompt_v1_L1FastJet_AK8PFchs.txt")
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/74X_dataRun2_Prompt_v1_L2Relative_AK8PFchs.txt")
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/74X_dataRun2_Prompt_v1_L3Absolute_AK8PFchs.txt")
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/74X_dataRun2_Prompt_v1_L2L3Residual_AK8PFchs.txt")
else:
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L1FastJet_AK8PFchs.txt")
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L2Relative_AK8PFchs.txt")
    fatJetCorrectionMod.AddCorrectionFromFile(mitdata + "/MCRUN2_74_V9_L3Absolute_AK8PFchs.txt")

fatJetIdMod = jetIdMod.clone('FatJetId',
    InputName = fatJetCorrectionMod.GetOutputName(),
    OutputName = 'GoodFatJets',
    MVATrainingSet = mithep.JetIDMVA.nMVATypes
)

photonMediumId = photonIdMod.clone('PhotonMediumId',
    IsFilterMode = False,
    InputName = photonIdMod.GetOutputName(),
    OutputName = 'PhotonMediumId',
    IdType = mithep.PhotonTools.kPhys14Medium,
    IsoType = mithep.PhotonTools.kPhys14Medium
)

photonTightId = photonMediumId.clone('PhotonTightId',
    OutputName = 'PhotonTightId',
    IdType = mithep.PhotonTools.kPhys14Tight,
    IsoType = mithep.PhotonTools.kPhys14Tight
예제 #3
0
    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.)

monojetPrefilter = mithep.MonoXSkimMod(
    'MonojetPrefilter',
    MetName=metCorrection.GetOutputName(),
    AnalysisType=kMonoJet,
    GoodElectronsName=mithep.Names.gkElectronBrn,
    GoodMuonsName=mithep.Names.gkMuonBrn,
    GoodPhotonsName=mithep.Names.gkPhotonBrn,
    JetsName=jetCorrection.GetOutputName(),
    CategoryFlagsName='MonojetPrefilter',
    MinMetPt=150.,
    MinMonoXPt=90.)
for cat, triggers in monojetTriggerNames.items():
    for t in triggers:
        monojetPrefilter.AddTriggerName(cat, t)