ATLAS Offline Software
MuonCombinedConfigFlags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 from AthenaConfiguration.Enums import BeamType
5 
7  mcf=AthConfigFlags()
8  # This is based on the following from the old configuration:
9  # https://gitlab.cern.ch/atlas/athena/blob/release/22.0.8/Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuonCombinedRecFlags.py
10  mcf.addFlag("MuonCombined.doCosmicSplitTracks",False)
11  mcf.addFlag("MuonCombined.doMuGirl",
12  lambda prevFlags: not(prevFlags.Beam.Type is BeamType.Cosmics))
13  mcf.addFlag("MuonCombined.doCombinedFit",
14  lambda prevFlags: not(prevFlags.Beam.Type is BeamType.Cosmics))
15  mcf.addFlag("MuonCombined.doStatisticalCombination",
16  lambda prevFlags: not(prevFlags.Beam.Type is BeamType.Cosmics))
17  mcf.addFlag("MuonCombined.doMuonSegmentTagger",
18  lambda prevFlags: not(prevFlags.Beam.Type is BeamType.Cosmics))
19  # 'silicon-associated'muons, or muons which rely on special ID reconstruction because they're outside the usual acceptance.
20  mcf.addFlag("MuonCombined.doSiAssocForwardMuons",
21  lambda prevFlags : prevFlags.Detector.GeometryID)
22  # Switch on/off algorithms that make Muons for the CaloMuonCollection
23  mcf.addFlag("MuonCombined.doCaloTrkMuId",
24  lambda prevFlags: not(prevFlags.Beam.Type is BeamType.Cosmics))
25  # Switch on/off algorithms that make Muons for the MuGirlLowBetaMuonCollection
26  mcf.addFlag("MuonCombined.doMuGirlLowBeta",
27  lambda prevFlags : prevFlags.MuonCombined.doMuGirl)
28  mcf.addFlag("MuonCombined.writeUnAssocSegments", True)
29 
30  return mcf
31 
python.MuonCombinedConfigFlags.createMuonCombinedConfigFlags
def createMuonCombinedConfigFlags()
Definition: MuonCombinedConfigFlags.py:6