3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
8 flags, name='InDetTrackClusterAssValidation', **kwargs):
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)
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)
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)
38 CompFactory.InDet.TrackClusterAssValidation(name, **kwargs))
42 flags, name='ITkTrackClusterAssValidation', **kwargs):
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)
54 acc.addEventAlgo(CompFactory.ITk.TrackClusterAssValidation(name, **kwargs))