3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from ActsInterop
import UnitConstants
6 from ActsConfig.ActsUtilities
import extractChildKwargs
10 collectionName: str) -> ComponentAccumulator:
13 AddressRemappingSvc = CompFactory.AddressRemappingSvc(
14 TypeKeyOverwriteMaps = [f
"InDetSimDataCollection#{collectionName}->InDetSimDataCollectionWrap#{collectionName}"]
16 acc.addService(AddressRemappingSvc)
21 name: str =
'ActsPixelClusterToTruthAssociationAlg',
22 **kwargs: dict) -> ComponentAccumulator:
26 kwargs.setdefault(
'InputTruthParticleLinks',
'xAODTruthLinks')
27 kwargs.setdefault(
'SimData',
'ITkPixelSDO_Map')
28 kwargs.setdefault(
'DepositedEnergyMin', 300)
29 kwargs.setdefault(
'Measurements',
'ITkPixelClusters')
30 kwargs.setdefault(
'AssociationMapOut',
'ITkPixelClustersToTruthParticles')
32 acc.addEventAlgo( CompFactory.ActsTrk.PixelClusterToTruthAssociationAlg(name=name, **kwargs) )
36 name: str =
'ActsStripClusterToTruthAssociationAlg',
37 **kwargs: dict) -> ComponentAccumulator:
41 kwargs.setdefault(
'InputTruthParticleLinks',
'xAODTruthLinks')
42 kwargs.setdefault(
'SimData',
'ITkStripSDO_Map')
43 kwargs.setdefault(
'DepositedEnergyMin', 600)
44 kwargs.setdefault(
'Measurements',
'ITkStripClusters')
45 kwargs.setdefault(
'AssociationMapOut',
'ITkStripClustersToTruthParticles')
47 acc.addEventAlgo( CompFactory.ActsTrk.StripClusterToTruthAssociationAlg(name=name, **kwargs) )
51 name: str =
'ActsTracksToTruthAssociationAlg',
52 **kwargs: dict) -> ComponentAccumulator:
56 kwargs.setdefault(
'ACTSTracksLocation',
'ActsTracks')
57 kwargs.setdefault(
'PixelClustersToTruthAssociationMap',
'ITkPixelClustersToTruthParticles')
58 kwargs.setdefault(
'StripClustersToTruthAssociationMap',
'ITkStripClustersToTruthParticles')
59 kwargs.setdefault(
'AssociationMapOut',
'ActsTracksToTruthParticles')
60 kwargs.setdefault(
'MaxEnergyLoss',1e3*UnitConstants.TeV)
62 if 'TrackingGeometryTool' not in kwargs:
63 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
66 acc.addEventAlgo( CompFactory.ActsTrk.TrackToTruthAssociationAlg(name=name, **kwargs) )
70 name: str =
'ActsTruthParticleHitCountAlg',
71 **kwargs: dict) -> ComponentAccumulator:
75 kwargs.setdefault(
'PixelClustersToTruthAssociationMap',
'ITkPixelClustersToTruthParticles')
76 kwargs.setdefault(
'StripClustersToTruthAssociationMap',
'ITkStripClustersToTruthParticles')
77 kwargs.setdefault(
'TruthParticleHitCountsOut',
'TruthParticleHitCounts')
78 kwargs.setdefault(
'MaxEnergyLoss',1e3*UnitConstants.TeV)
79 kwargs.setdefault(
'NHitsMin',4)
81 if 'TrackingGeometryTool' not in kwargs:
82 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
85 acc.addEventAlgo( CompFactory.ActsTrk.TruthParticleHitCountAlg(name=name, **kwargs) )
90 **kwargs: dict) -> ComponentAccumulator:
93 if flags.Detector.EnableITkPixel:
96 if flags.Detector.EnableITkStrip:
102 kwargs.setdefault(
'MatchWeights',[0.,
107 kwargs.setdefault(
'CountWeights',[0.,
111 kwargs.setdefault(
'StatisticPtBins',[1e3,2.5e3,5e3,10e3,100e3])
112 kwargs.setdefault(
'ShowDetailedTables',
False)
113 kwargs.setdefault(
'PdgIdCategorisation',
False)
114 kwargs.setdefault(
'StatisticEtaBins',[eta/10.
for eta
in range(5, 40, 5)])
117 name: str =
'ActsTrackParticleTruthDecorationAlg',
118 **kwargs: dict) -> ComponentAccumulator:
120 kwargs.setdefault(
'TrackToTruthAssociationMaps',
'ActsCombinedTracksToTruthParticleAssociation')
121 kwargs.setdefault(
'TrackParticleContainerName',
'ActsCombinedTracksParticlesAlt')
122 kwargs.setdefault(
'TruthParticleHitCounts',
'TruthParticleHitCounts')
125 kwargs.setdefault(
'ComputeTrackRecoEfficiency',
False)
127 if 'TruthSelectionTool' not in kwargs:
129 from InDetPhysValMonitoring.InDetPhysValMonitoringConfig
import InDetRttTruthSelectionToolCfg
130 kwargs.setdefault(
"TruthSelectionTool", acc.popToolsAndMerge(
132 name=
'RelaxedInDetRttTruthSelectionTool',
133 requireOnlyPrimary=
False,
138 acc.addEventAlgo( CompFactory.ActsTrk.TrackParticleTruthDecorationAlg(name=name, **kwargs) )
142 name: str =
'ActsTracksValidationAlg',
143 **kwargs: dict) -> ComponentAccumulator:
145 kwargs.setdefault(
'TruthParticleHitCounts',
'TruthParticleHitCounts')
146 kwargs.setdefault(
'TrackToTruthAssociationMap',
'ActsTracksToTruthParticles')
148 kwargs.setdefault(
'ComputeTrackRecoEfficiency',
True)
150 if 'TruthSelectionTool' not in kwargs:
151 from InDetPhysValMonitoring.InDetPhysValMonitoringConfig
import InDetRttTruthSelectionToolCfg
152 kwargs.setdefault(
"TruthSelectionTool", acc.popToolsAndMerge(
155 acc.addEventAlgo( CompFactory.ActsTrk.TrackFindingValidationAlg(name=name, **kwargs) )