15def GPUClusterizationCfg(flags) -> ComponentAccumulator:
16 acc = ComponentAccumulator()
17
18
19 acc.merge(DeviceDetectorDescriptionCondAlgCfg(flags))
20
21 if flags.Acts.EDM.PhaseII :
22 print(
"Running PhaseII RDO to TracccCell conversion")
23 from ActsConfig.ActsPhaseIIRawDataEdmConfig import (
24 PhaseIIPixelRawDataContainerCfg,
25 PhaseIIStripRawDataContainerCfg,
26 )
27 acc.merge(PhaseIIPixelRawDataContainerCfg(flags))
28 acc.merge(PhaseIIStripRawDataContainerCfg(flags))
29 from ActsGPUEventCnv.ActsGPUEventCnvConfig import PhaseIIRDOtoTracccCellConverterAlgCfg
30 acc.merge(PhaseIIRDOtoTracccCellConverterAlgCfg(flags,
31 TracccCells = "TracccCellCollection",
32 OutputLevel = DEBUG
33 ))
34 else:
35 from ActsGPUEventCnv.ActsGPUEventCnvConfig import RDOtoTracccCellConverterAlgCfg
36 acc.merge(RDOtoTracccCellConverterAlgCfg(flags,
37 TracccCells = "TracccCellCollection",
38 OutputLevel = DEBUG
39 ))
40
41 acc.merge(DeviceClusterizationAlgCfg(flags,
42 InputTracccCells="TracccCellCollection",
43 OutputTracccMeasurements="TracccMeasurementCollection",
44 OutputTracccClusters="TracccClusterCollection",
45 RetrieveClusterCells=flags.Tracking.doTruth,
46 OutputLevel = DEBUG,
47
48 ))
49
50 acc.merge(TracccMeasurementConverterAlgCfg(flags,
51 InputMeasurements="TracccMeasurementCollection",
52 InputClusters="TracccClusterCollection",
53 InputCells="TracccCellCollection",
54 ConvertClustersWithCells = flags.Tracking.doTruth,
55 OutputPixelClusters="ITkTracccPixelClusters",
56 OutputStripClusters="ITkTracccStripClusters",
57 OutputLevel = DEBUG
58 ))
59
60 from SiLorentzAngleTool.ITkPixelLorentzAngleConfig import ITkPixelLorentzAngleToolCfg
61 from SiLorentzAngleTool.ITkStripLorentzAngleConfig import ITkStripLorentzAngleToolCfg
62 from AthenaConfiguration.ComponentFactory import CompFactory
63 acc.addEventAlgo(CompFactory.ActsTrk.ActsClusterComparisonAlg(
64 "GPU_ActsClusterComparisonAlg",
65 TracccCondKey="TracccHostCondConfig",
66 checkSpacepoints=False,
67 monitoredSpacepointsKey="ITkTracccPixelSpacepoints",
68 referenceSpacepointsKey="ITkPixelSpacePoints",
69 monitoredPixelClustersKey="ITkTracccPixelClusters",
70 referencePixelClustersKey="ITkPixelClusters",
71 monitoredStripClustersKey="ITkTracccStripClusters",
72 referenceStripClustersKey="ITkStripClusters",
73 PixelLorentzAngleTool = acc.popToolsAndMerge(ITkPixelLorentzAngleToolCfg(flags)),
74 StripLorentzAngleTool = acc.popToolsAndMerge(ITkStripLorentzAngleToolCfg(flags)),
75 OutputLevel = DEBUG
76
77 ))
78
79 return acc
80
void print(char *figname, TCanvas *c1)