コード例 #1
0
from LongLivedParticleDPDMaker.LongLivedParticleDPDMakerConf import DerivationFramework__HnlSkimmingTool as skimtool
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel as kernel

from AthenaCommon.Logging import logging
msg = logging.getLogger("PhysDESDM_HNL")
msg.setLevel(logging.INFO)

## TriggerAPI (not working correctly) ##
from LongLivedParticleDPDMaker.RPVLLTriggers import RPVLLTriggers
apitriggers = RPVLLTriggers()
from LongLivedParticleDPDMaker.RPVLLTriggers import rpvllTrig
# Hardcoded lists are necessary.
# https://twiki.cern.ch/twiki/bin/view/Atlas/LowestUnprescaled
apiSingleMuonTriggerlist = [
    # 2015
    "HLT_mu20_iloose_L1MU15",
    # 2016 A
    "HLT_mu24_iloose",
    # 2016 A
    "HLT_mu24_ivarloose",
    # 2016 B-E
    "HLT_mu24_ivarmedium",
    # 2016 B-E
    "HLT_mu24_imedium",
    # 2016 D4-G2
    "HLT_mu26_imedium",
    # 2016 I4-, 2017, 2018
    "HLT_mu26_ivarmedium",
    # 2015, 2016 A
    "HLT_mu40",
    # 2016, 2017, 2018
コード例 #2
0
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties

import AthenaCommon.SystemOfUnits as Units

primRPVLLDESDM = jobproperties.PrimaryDPDFlags_RPVLLStream

## TriggerAPI ##
from LongLivedParticleDPDMaker.RPVLLTriggers import RPVLLTriggers
apitriggers = RPVLLTriggers()
from LongLivedParticleDPDMaker.RPVLLTriggers import rpvllTrig


class DiLep_FilterFlags(JobProperty):
    statusOn = True
    allowedTypes = ['bool']
    StoredValue = True

    SiPhTriggers = [
        "HLT_g140_loose", "HLT_g200_loose", "HLT_g200_loose_L1EM24VHIM"
    ]
    if rpvllTrig.doRPVLLTriggerAPI:
        SiPhTriggers += apitriggers.getDiLepSiPhTriggers()  ## TriggerAPI
    DiPhTriggers = [
        "HLT_2g50_loose", "HLT_2g50_loose_L12EM20VH",
        "HLT_2g60_loose_L12EM20VH"
    ]
    if rpvllTrig.doRPVLLTriggerAPI:
        DiPhTriggers += apitriggers.getDiLepDiPhTriggers()  ## TriggerAPI
コード例 #3
0
import AthenaCommon.SystemOfUnits as Units

from LongLivedParticleDPDMaker.LongLivedParticleDPDMakerConf import DerivationFramework__HnlSkimmingTool as skimtool
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel as kernel

## TriggerAPI ##
from LongLivedParticleDPDMaker.RPVLLTriggers import RPVLLTriggers

apitriggers = RPVLLTriggers()
apitriggerlist = []
if apitriggers.doTriggerAPI:
    apitriggerlist = apitriggers.getHNLTriggers()

HnlFilterTool = skimtool(name="HnlFilterTool",
                         Triggers=["HLT_mu26_ivarmedium"] + apitriggerlist,
                         Mu1PtMin=28 * Units.GeV,
                         Mu1Types=[0],
                         Mu1IsoCut=0.05,
                         Mu2PtMin=5 * Units.GeV,
                         Mu2Types=[0, 1, 2],
                         Mu2IsoCut=1,
                         Mu2d0Min=0.1)

ToolSvc += HnlFilterTool
topSequence += kernel("RPVLL_HnlFilterKernel", SkimmingTools=[HnlFilterTool])

RPVLLfilterNames.extend(["RPVLL_HnlFilterKernel"])