ATLAS Offline Software
egammaPhotonConvFlags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 from AthenaConfiguration.Enums import LHCPeriod
5 
7  flags = AthConfigFlags()
8 
9  # Track selector tool
10  flags.addFlag("TrkSel.minPt", lambda pcf: (
11  pcf.Tracking.__getattr__(pcf.Tracking.PrimaryPassConfig.value+'Pass').minPT
12  if pcf.GeoModel.Run <= LHCPeriod.Run3 else
13  pcf.Tracking.__getattr__(pcf.Tracking.ITkPrimaryPassConfig.value+'Pass').minPT[0]
14  ))
15  # e-prob for Si conversion tracks (affects 1Si, 2Si, SiTRT): Ntrt < 15
16  flags.addFlag("TrkSel.RatioCut1", 0.0)
17  # e-prob for Si conversion tracks (affects 1Si, 2Si, SiTRT): 15 < Ntrt < 25
18  flags.addFlag("TrkSel.RatioCut2", 0.1)
19  # e-prob for Si conversion tracks (affects 1Si, 2Si, SiTRT): Ntrt > 25
20  flags.addFlag("TrkSel.RatioCut3", 0.1)
21  # e-prob cut for TRT conversion tracks (affects 1TRT, 2TRT, SiTRT) (see also below)
22  flags.addFlag("TrkSel.RatioTRT", 0.51)
23  # eta bins (10) for eta-dep cuts on TRT conversion tracks
24  flags.addFlag("TrkSel.TRTTrksEtaBins", [
25  0.7, 0.8, 0.9, 1.2, 1.3, 1.6, 1.7, 1.8, 1.9, 999])
26  # eta-dep e-prob cut for TRT conversion tracks
27  flags.addFlag("TrkSel.TRTTrksBinnedRatioTRT", lambda pcf: (
28  [0.51, 0.80, 0.90, 0.80, 0.51, 0.51, 0.51, 0.51, 0.51, 0.51]
29  if pcf.GeoModel.Run is LHCPeriod.Run3
30  else [0.60, 0.80, 0.90, 0.80, 0.51, 0.51, 0.51, 0.51, 0.51, 0.51]))
31 
32  # Track pairs selector
33  # hacky way to determine if TRT only of SI
34  flags.addFlag("TrkPairSel.MaxDistBetweenTracks", [10., 50., 50.])
35  # delta cotan(theta) cuts, no cut in barrel for TRT only in code
36  flags.addFlag("TrkPairSel.MaxEta", [0.3, 0.5, 0.5])
37  flags.addFlag("TrkPairSel.MinTrackAngle", 0.0)
38 
39  # Vertex point estimator
40  flags.addFlag("VtxPt.MinDeltaR", [-5., -25., -50.])
41  flags.addFlag("VtxPt.MaxDeltaR", [5., 10., 10.])
42  flags.addFlag("VtxPt.MaxPhi", [0.05, 0.2, 0.2])
43 
44  # Secondary Vertex post selector
45  flags.addFlag("SecVtxPost.MinRadius", [20.0, 70.0, 250.0])
46  flags.addFlag("SecVtxPost.MaxPhiVtxTrk", 0.2)
47 
48  # Single track secondary vertex tool
49  flags.addFlag("SingleTrk.MaxBLayerHits", 0)
50  flags.addFlag("SingleTrk.MinInitialHitRadius", 70.)
51  flags.addFlag("SingleTrk.MinInitialHitRadius_noBlay", 120.)
52  # e-prob cut for 1TRT and 1Si converisons
53  flags.addFlag("SingleTrk.MinRatioOfHLhits", lambda pcf: (
54  0.40 if pcf.GeoModel.Run is LHCPeriod.Run3 else 0.51))
55 
56  # InDetSecVtxFinderTool
57  flags.addFlag("Finder.RemoveTrtTracks", False)
58  flags.addFlag("Finder.MinDistVtxHit", -350.)
59  flags.addFlag("Finder.MaxDistVtxHit", 250.)
60  flags.addFlag("Finder.MinFlightAngle", 0.)
61  flags.addFlag("Finder.MinInitVtxR", 0.)
62 
63  return flags
python.egammaPhotonConvFlags.createEGammaPhotonConvFlags
def createEGammaPhotonConvFlags()
Definition: egammaPhotonConvFlags.py:6