ATLAS Offline Software
PhysValLLPConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 #==============================================================================
4 # Provides configs for the LLP tools used in DAOD_PHYSVAL
5 #==============================================================================
6 
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 
9 def PhysValLLPCfg(flags, **kwargs):
10 
11  acc = ComponentAccumulator()
12 
13  TrackLocation = "InDetTrackParticles"
14  MuonLocation = "Muons"
15  ElectronLocation = "Electrons"
16 
17  if flags.Tracking.doLargeD0:
18  # LRT track merge
19  from DerivationFrameworkInDet.InDetToolsConfig import InDetLRTMergeCfg
20  acc.merge(InDetLRTMergeCfg(flags))
21  TrackLocation = "InDetWithLRTTrackParticles"
22 
23  # LRT muons merge
24  from DerivationFrameworkLLP.LLPToolsConfig import LRTMuonMergerAlg
25  acc.merge(LRTMuonMergerAlg( flags,
26  PromptMuonLocation = "Muons",
27  LRTMuonLocation = "MuonsLRT",
28  OutputMuonLocation = "StdWithLRTMuons",
29  CreateViewCollection = True))
30  MuonLocation = "StdWithLRTMuons"
31 
32  # LRT electrons merge
33  from DerivationFrameworkLLP.LLPToolsConfig import LRTElectronMergerAlg
34  acc.merge(LRTElectronMergerAlg( flags,
35  PromptElectronLocation = "Electrons",
36  LRTElectronLocation = "LRTElectrons",
37  OutputCollectionName = "StdWithLRTElectrons",
38  isDAOD = False,
39  CreateViewCollection = True))
40  ElectronLocation = "StdWithLRTElectrons"
41 
42  # LLP Secondary Vertexing
43  from VrtSecInclusive.VrtSecInclusiveConfig import VrtSecInclusiveCfg
44 
45  acc.merge(VrtSecInclusiveCfg(flags,
46  name = "VrtSecInclusive",
47  AugmentingVersionString = "",
48  FillIntermediateVertices = False,
49  TrackLocation = TrackLocation))
50 
51  # leptons-only VSI
52  acc.merge(VrtSecInclusiveCfg(flags,
53  name = "VrtSecInclusive_InDet_"+"_LeptonsMod_LRTR3_1p0",
54  AugmentingVersionString = "_LeptonsMod_LRTR3_1p0",
55  FillIntermediateVertices = False,
56  TrackLocation = TrackLocation,
57  twoTrkVtxFormingD0Cut = 1.0,
58  doSelectTracksWithLRTCuts = True,
59  doSelectTracksFromMuons = True,
60  doRemoveCaloTaggedMuons = True,
61  doSelectTracksFromElectrons = True,
62  MuonLocation = MuonLocation,
63  ElectronLocation = ElectronLocation))
64 
65  return acc
python.LLPToolsConfig.LRTMuonMergerAlg
def LRTMuonMergerAlg(flags, name="LLP1_MuonLRTMergingAlg", **kwargs)
Definition: LLPToolsConfig.py:181
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
VrtSecInclusiveConfig.VrtSecInclusiveCfg
def VrtSecInclusiveCfg(flags, name="VrtSecInclusive", **kwargs)
Definition: VrtSecInclusiveConfig.py:9
python.LLPToolsConfig.LRTElectronMergerAlg
def LRTElectronMergerAlg(flags, name="LLP1_ElectronLRTMergingAlg", **kwargs)
Definition: LLPToolsConfig.py:200
python.InDetToolsConfig.InDetLRTMergeCfg
def InDetLRTMergeCfg(flags, name="InDetLRTMerge", **kwargs)
Definition: InDetToolsConfig.py:14
python.PhysValLLPConfig.PhysValLLPCfg
def PhysValLLPCfg(flags, **kwargs)
Definition: PhysValLLPConfig.py:9