ATLAS Offline Software
Functions | Variables
DataPrepToActsConfig Namespace Reference

Functions

ComponentAccumulator UseActsSpacePointFormationCfg (flags, **kwargs)
 
ComponentAccumulator DataPrepToActsCfg (flags, **kwargs)
 

Variables

 pixelContainer
 
 stripContainer
 

Function Documentation

◆ DataPrepToActsCfg()

ComponentAccumulator DataPrepToActsConfig.DataPrepToActsCfg (   flags,
**  kwargs 
)

Definition at line 49 of file DataPrepToActsConfig.py.

49 def DataPrepToActsCfg(flags, **kwargs) -> ComponentAccumulator:
50 
51  acc = ComponentAccumulator()
52 
53  # If the pass-through kernel is cluster-only, we need to do ACTS spacepoint formation
54  if flags.FPGADataPrep.PassThrough.ClusterOnly:
55  acc.merge(UseActsSpacePointFormationCfg(flags, **kwargs))
56 
57  # ACTS Seeding
58  from ActsConfig.ActsSeedingConfig import ActsStripSeedingAlgCfg, ActsPixelSeedingAlgCfg
59 
60  # Pixel seeding
61  kwargs.setdefault('ActsPixelSeedingAlgCfg.name', 'FPGAActsPixelSeedingAlg')
62  kwargs.setdefault('ActsPixelSeedingAlgCfg.InputSpacePoints', ['FPGAPixelSpacePoints'])
63  kwargs.setdefault('ActsPixelSeedingAlgCfg.OutputSeeds', 'FPGAPixelSeeds')
64  kwargs.setdefault('ActsPixelSeedingAlgCfg.OutputEstimatedTrackParameters', 'FPGAPixelEstimatedTrackParams')
65  acc.merge(ActsPixelSeedingAlgCfg(flags, **extractChildKwargs(prefix='ActsPixelSeedingAlgCfg.', **kwargs)))
66 
67  # Strip seeding
68  kwargs.setdefault('ActsStripSeedingAlgCfg.name', 'FPGAActsStripSeedingAlg')
69  kwargs.setdefault('ActsStripSeedingAlgCfg.InputSpacePoints', ['FPGAStripSpacePoints'])
70  kwargs.setdefault('ActsStripSeedingAlgCfg.OutputSeeds', 'FPGAStripSeeds')
71  kwargs.setdefault('ActsStripSeedingAlgCfg.OutputEstimatedTrackParameters', 'FPGAStripEstimatedTrackParams')
72  acc.merge(ActsStripSeedingAlgCfg(flags, **extractChildKwargs(prefix='ActsStripSeedingAlgCfg.', **kwargs)))
73 
74  # ACTS Tracking
75  from ActsConfig.ActsTrackFindingConfig import ActsMainTrackFindingAlgCfg
76  kwargs.setdefault('ActsTrackFinding.name', 'FPGAActsTrackFindingAlg')
77  kwargs.setdefault('ActsTrackFinding.SeedContainerKeys', ['FPGAPixelSeeds','FPGAStripSeeds'])
78  kwargs.setdefault('ActsTrackFinding.EstimatedTrackParametersKeys', ['FPGAPixelEstimatedTrackParams','FPGAStripEstimatedTrackParams'])
79  kwargs.setdefault('ActsTrackFinding.UncalibratedMeasurementContainerKeys', [pixelContainer,stripContainer])
80  kwargs.setdefault('ActsTrackFinding.ACTSTracksLocation', 'FPGAActsTracks')
81  acc.merge(ActsMainTrackFindingAlgCfg(flags, **extractChildKwargs(prefix='ActsTrackFinding.', **kwargs)))
82 
83  # Track to Truth association and validation
84  from ActsConfig.ActsTruthConfig import ActsTruthParticleHitCountAlgCfg, ActsPixelClusterToTruthAssociationAlgCfg, ActsStripClusterToTruthAssociationAlgCfg
85  kwargs.setdefault('ActsPixelClusterToTruthAssociation.name', 'FPGAActsPixelClusterToTruthAssociationAlg')
86  kwargs.setdefault('ActsPixelClusterToTruthAssociation.InputTruthParticleLinks', "xAODTruthLinks")
87  kwargs.setdefault('ActsPixelClusterToTruthAssociation.AssociationMapOut', "ITkFPGAPixelClustersToTruthParticles")
88  kwargs.setdefault('ActsPixelClusterToTruthAssociation.Measurements', pixelContainer)
89  acc.merge(ActsPixelClusterToTruthAssociationAlgCfg(flags, **extractChildKwargs(prefix='ActsPixelClusterToTruthAssociation.', **kwargs)))
90 
91  kwargs.setdefault('ActsStripClusterToTruthAssociation.name', 'FPGAActsStripClusterToTruthAssociation')
92  kwargs.setdefault('ActsStripClusterToTruthAssociation.InputTruthParticleLinks', "xAODTruthLinks")
93  kwargs.setdefault('ActsStripClusterToTruthAssociation.AssociationMapOut', "ITkFPGAStripClustersToTruthParticles")
94  kwargs.setdefault('ActsStripClusterToTruthAssociation.Measurements', stripContainer)
95  acc.merge(ActsStripClusterToTruthAssociationAlgCfg(flags, **extractChildKwargs(prefix='ActsStripClusterToTruthAssociation.', **kwargs)))
96 
97  kwargs.setdefault('ActsTruthParticleHitCount.name', 'FPGAActsTruthParticleHitCount')
98  kwargs.setdefault('ActsTruthParticleHitCount.PixelClustersToTruthAssociationMap', "ITkFPGAPixelClustersToTruthParticles")
99  kwargs.setdefault('ActsTruthParticleHitCount.StripClustersToTruthAssociationMap', "ITkFPGAStripClustersToTruthParticles")
100  kwargs.setdefault('ActsTruthParticleHitCount.TruthParticleHitCountsOut', "FPGATruthParticleHitCounts")
101  acc.merge(ActsTruthParticleHitCountAlgCfg(flags, **extractChildKwargs(prefix='ActsTruthParticleHitCount.', **kwargs)))
102 
103  from ActsConfig.ActsTruthConfig import ActsTrackToTruthAssociationAlgCfg, ActsTrackFindingValidationAlgCfg
104  kwargs.setdefault('ActsTrackToTruthAssociation.name', 'FPGAActsTrackToTruthAssociation')
105  kwargs.setdefault('ActsTrackToTruthAssociation.PixelClustersToTruthAssociationMap', "ITkFPGAPixelClustersToTruthParticles")
106  kwargs.setdefault('ActsTrackToTruthAssociation.StripClustersToTruthAssociationMap', "ITkFPGAStripClustersToTruthParticles")
107  kwargs.setdefault('ActsTrackToTruthAssociation.ACTSTracksLocation', "FPGAActsTracks")
108  kwargs.setdefault('ActsTrackToTruthAssociation.AssociationMapOut', "FPGAActsTracksFPGAToTruthParticleAssociation")
109  acc.merge(ActsTrackToTruthAssociationAlgCfg(flags, **extractChildKwargs(prefix='ActsTrackToTruthAssociation.', **kwargs)))
110 
111  kwargs.setdefault('ActsTrackFindingValidation.name', 'FPGAActsTrackFindingValidation')
112  kwargs.setdefault('ActsTrackFindingValidation.TrackToTruthAssociationMap', "FPGAActsTracksFPGAToTruthParticleAssociation")
113  kwargs.setdefault('ActsTrackFindingValidation.TruthParticleHitCounts', "FPGATruthParticleHitCounts")
114  acc.merge(ActsTrackFindingValidationAlgCfg(flags, **extractChildKwargs(prefix='ActsTrackFindingValidation.', **kwargs)))
115 
116  # Convert ActsTrk::TrackContainer to xAOD::TrackParticleContainer
117  from ActsConfig.ActsTrackFindingConfig import ActsTrackToTrackParticleCnvAlgCfg
118  kwargs.setdefault('ActsTrackToTrackParticleCnv.name', 'ActsTrackToTrackParticleCnvAlg')
119  kwargs.setdefault('ActsTrackToTrackParticleCnv.ACTSTracksLocation', ['FPGAActsTracks'])
120  kwargs.setdefault('ActsTrackToTrackParticleCnv.TrackParticlesOutKey', 'FPGATrackParticles')
121  acc.merge(ActsTrackToTrackParticleCnvAlgCfg(flags, **extractChildKwargs(prefix='ActsTrackToTrackParticleCnv.', **kwargs)))
122 
123 
124  from ActsConfig.ActsTruthConfig import ActsTrackParticleTruthDecorationAlgCfg
125  kwargs.setdefault('ActsTrackParticleTruthDecoration.name', 'FPGAActsTrackParticleTruthDecoration')
126  kwargs.setdefault('ActsTrackParticleTruthDecoration.TrackToTruthAssociationMaps', ["FPGAActsTracksFPGAToTruthParticleAssociation"])
127  kwargs.setdefault('ActsTrackParticleTruthDecoration.TrackParticleContainerName', 'FPGATrackParticles')
128  kwargs.setdefault('ActsTrackParticleTruthDecoration.TruthParticleHitCounts', 'FPGATruthParticleHitCounts')
129  kwargs.setdefault('ActsTrackParticleTruthDecoration.ComputeTrackRecoEfficiency', True)
130  acc.merge(ActsTrackParticleTruthDecorationAlgCfg(flags, **extractChildKwargs(prefix='ActsTrackParticleTruthDecoration.', **kwargs)))
131 
132  return acc

◆ UseActsSpacePointFormationCfg()

ComponentAccumulator DataPrepToActsConfig.UseActsSpacePointFormationCfg (   flags,
**  kwargs 
)

Definition at line 12 of file DataPrepToActsConfig.py.

12 def UseActsSpacePointFormationCfg(flags, **kwargs) -> ComponentAccumulator:
13 
14  acc = ComponentAccumulator()
15 
16  kwargs.setdefault('processOverlapSpacePoints', True)
17 
18  # Pixel spacepoint
19  kwargs.setdefault('PixelSpacePointFormationAlg.name', 'FPGAActsPixelSpacePointFormationAlg')
20  kwargs.setdefault('PixelSpacePointFormationAlg.PixelClusters', pixelContainer)
21  kwargs.setdefault('PixelSpacePointFormationAlg.PixelSpacePoints', 'FPGAPixelSpacePoints')
22  kwargs.setdefault('PixelSpacePointFormationAlg.useCache', flags.Acts.useCache)
23  kwargs.setdefault('PixelSpacePointFormationAlg.SPCache', 'FPGAPixelSpacePointCache')
24 
25  # Strip spacepoint
26  kwargs.setdefault('StripSpacePointFormationAlg.name', 'FPGAActsStripSpacePointFormationAlg')
27  kwargs.setdefault('StripSpacePointFormationAlg.StripClusters', stripContainer)
28  kwargs.setdefault('StripSpacePointFormationAlg.StripSpacePoints', 'FPGAStripSpacePoints')
29  kwargs.setdefault('StripSpacePointFormationAlg.useCache', flags.Acts.useCache)
30  kwargs.setdefault('StripSpacePointFormationAlg.SPCache', 'FPGASpacePointCache')
31 
32  # Handling of Overlap Space Points
33  kwargs.setdefault('StripSpacePointFormationAlg.ProcessOverlapForStrip', kwargs['processOverlapSpacePoints'])
34  kwargs.setdefault('StripSpacePointFormationAlg.OSPCache', 'FPGAStripOverlapSpacePointCache')
35  if kwargs['processOverlapSpacePoints']:
36  kwargs.setdefault('StripSpacePointFormationAlg.StripOverlapSpacePoints', 'FPGAStripOverlapSpacePoints')
37  else:
38  # Disable keys
39  kwargs.setdefault('StripSpacePointFormationAlg.StripOverlapSpacePoints', '')
40 
41  from ActsConfig.ActsSpacePointFormationConfig import ActsPixelSpacePointFormationAlgCfg, ActsStripSpacePointFormationAlgCfg
42  acc.merge(ActsPixelSpacePointFormationAlgCfg(flags,**extractChildKwargs(prefix='PixelSpacePointFormationAlg.', **kwargs)))
43 
44  acc.merge(ActsStripSpacePointFormationAlgCfg(flags, **extractChildKwargs(prefix='StripSpacePointFormationAlg.', **kwargs)))
45 
46  return acc
47 
48 

Variable Documentation

◆ pixelContainer

DataPrepToActsConfig.pixelContainer

Definition at line 9 of file DataPrepToActsConfig.py.

◆ stripContainer

DataPrepToActsConfig.stripContainer

Definition at line 10 of file DataPrepToActsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsUtilities.extractChildKwargs
dict extractChildKwargs(*str prefix, **dict kwargs)
Definition: ActsUtilities.py:3
ActsSeedingConfig.ActsPixelSeedingAlgCfg
ComponentAccumulator ActsPixelSeedingAlgCfg(flags, str name='ActsPixelSeedingAlg', **kwargs)
Definition: ActsSeedingConfig.py:255
ActsTruthConfig.ActsTruthParticleHitCountAlgCfg
ComponentAccumulator ActsTruthParticleHitCountAlgCfg(flags, str name='ActsTruthParticleHitCountAlg', **dict kwargs)
Definition: ActsTruthConfig.py:69
ActsTruthConfig.ActsTrackToTruthAssociationAlgCfg
ComponentAccumulator ActsTrackToTruthAssociationAlgCfg(flags, str name='ActsTracksToTruthAssociationAlg', **dict kwargs)
Definition: ActsTruthConfig.py:50
ActsTruthConfig.ActsPixelClusterToTruthAssociationAlgCfg
ComponentAccumulator ActsPixelClusterToTruthAssociationAlgCfg(flags, str name='ActsPixelClusterToTruthAssociationAlg', **dict kwargs)
Definition: ActsTruthConfig.py:20
ActsSeedingConfig.ActsStripSeedingAlgCfg
ComponentAccumulator ActsStripSeedingAlgCfg(flags, str name='ActsStripSeedingAlg', **kwargs)
Definition: ActsSeedingConfig.py:319
ActsTruthConfig.ActsTrackFindingValidationAlgCfg
ComponentAccumulator ActsTrackFindingValidationAlgCfg(flags, str name='ActsTracksValidationAlg', **dict kwargs)
Definition: ActsTruthConfig.py:141
ActsSpacePointFormationConfig.ActsStripSpacePointFormationAlgCfg
ComponentAccumulator ActsStripSpacePointFormationAlgCfg(flags, str name="ActsStripSpacePointFormationAlg", *bool useCache=False, **dict kwargs)
Definition: ActsSpacePointFormationConfig.py:148
DataPrepToActsConfig.UseActsSpacePointFormationCfg
ComponentAccumulator UseActsSpacePointFormationCfg(flags, **kwargs)
Definition: DataPrepToActsConfig.py:12
ActsSpacePointFormationConfig.ActsPixelSpacePointFormationAlgCfg
ComponentAccumulator ActsPixelSpacePointFormationAlgCfg(flags, str name="ActsPixelSpacePointFormationAlg", *bool useCache=False, **dict kwargs)
Definition: ActsSpacePointFormationConfig.py:116
DataPrepToActsConfig.DataPrepToActsCfg
ComponentAccumulator DataPrepToActsCfg(flags, **kwargs)
Definition: DataPrepToActsConfig.py:49
ActsTrackFindingConfig.ActsMainTrackFindingAlgCfg
ComponentAccumulator ActsMainTrackFindingAlgCfg(flags, str name="ActsTrackFindingAlg", **kwargs)
Definition: ActsTrackFindingConfig.py:53
ActsTruthConfig.ActsTrackParticleTruthDecorationAlgCfg
ComponentAccumulator ActsTrackParticleTruthDecorationAlgCfg(flags, str name='ActsTrackParticleTruthDecorationAlg', **dict kwargs)
Definition: ActsTruthConfig.py:116
ActsTruthConfig.ActsStripClusterToTruthAssociationAlgCfg
ComponentAccumulator ActsStripClusterToTruthAssociationAlgCfg(flags, str name='ActsStripClusterToTruthAssociationAlg', **dict kwargs)
Definition: ActsTruthConfig.py:35
ActsTrackFindingConfig.ActsTrackToTrackParticleCnvAlgCfg
ComponentAccumulator ActsTrackToTrackParticleCnvAlgCfg(flags, str name="ActsTrackToTrackParticleCnvAlg", **kwargs)
Definition: ActsTrackFindingConfig.py:340