ATLAS Offline Software
InDetTrackClusterAssValidationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Configuration of InDetTrackClusterAssValidation package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.Enums import BeamType
6 
8  flags, name='InDetTrackClusterAssValidation', **kwargs):
10 
11  kwargs.setdefault("SpacePointsPixelName", "PixelSpacePoints")
12  kwargs.setdefault("SpacePointsSCTName", "SCT_SpacePoints")
13  kwargs.setdefault("SpacePointsOverlapName", "OverlapSpacePoints")
14  kwargs.setdefault("RadiusMin", 0.)
15  kwargs.setdefault("MinNumberClustersTRT", 0)
16  kwargs.setdefault("usePixel", flags.Detector.EnablePixel)
17  kwargs.setdefault("useSCT", flags.Detector.EnableSCT)
18  kwargs.setdefault("useTRT", flags.Detector.EnableTRT)
19 
20  if flags.Beam.Type in [BeamType.Cosmics, BeamType.SingleBeam]:
21  kwargs.setdefault("MomentumCut",
22  flags.Tracking.ActiveConfig.minPT
23  if flags.Beam.Type==BeamType.Cosmics else 0)
24  kwargs.setdefault("RadiusMax", 9999999.)
25  kwargs.setdefault("RapidityCut", 9999999.)
26  kwargs.setdefault("MinNumberClusters", 8)
27  kwargs.setdefault("MinNumberSpacePoints", 4)
28 
29  else:
30  kwargs.setdefault("MomentumCut", 2*flags.Tracking.ActiveConfig.minPT)
31  kwargs.setdefault("RadiusMax", 20.)
32  kwargs.setdefault("RapidityCut", flags.Tracking.ActiveConfig.maxEta)
33  kwargs.setdefault("MinNumberClusters",
34  flags.Tracking.ActiveConfig.minClusters)
35  kwargs.setdefault("MinNumberSpacePoints", 3)
36 
37  acc.addEventAlgo(
38  CompFactory.InDet.TrackClusterAssValidation(name, **kwargs))
39  return acc
40 
42  flags, name='ITkTrackClusterAssValidation', **kwargs):
43  acc = ComponentAccumulator()
44 
45  kwargs.setdefault("usePixel", flags.Detector.EnableITkPixel)
46  kwargs.setdefault("useStrip", flags.Detector.EnableITkStrip)
47  kwargs.setdefault("MomentumCut", max(flags.Tracking.ActiveConfig.minPT))
48  kwargs.setdefault("RapidityCut", flags.Tracking.ActiveConfig.maxEta)
49  kwargs.setdefault("EtaBins", flags.Tracking.ActiveConfig.etaBins)
50  kwargs.setdefault("PtCuts", flags.Tracking.ActiveConfig.minPT)
51  kwargs.setdefault("MinNumberClustersCuts",
52  flags.Tracking.ActiveConfig.minClusters)
53 
54  acc.addEventAlgo(CompFactory.ITk.TrackClusterAssValidation(name, **kwargs))
55  return acc
max
#define max(a, b)
Definition: cfImp.cxx:41
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetTrackClusterAssValidationConfig.InDetTrackClusterAssValidationCfg
def InDetTrackClusterAssValidationCfg(flags, name='InDetTrackClusterAssValidation', **kwargs)
Definition: InDetTrackClusterAssValidationConfig.py:7
python.InDetTrackClusterAssValidationConfig.ITkTrackClusterAssValidationCfg
def ITkTrackClusterAssValidationCfg(flags, name='ITkTrackClusterAssValidation', **kwargs)
Definition: InDetTrackClusterAssValidationConfig.py:41