ATLAS Offline Software
Functions | Variables
FPGATrackSimBankGenConfig Namespace Reference

Functions

def FPGATrackSimSpacePointsToolCfg (flags)
 
def prepareFlagsForFPGATrackSimBankGen (flags)
 
def FPGATrackSimSGToRawHitsToolCfg (flags)
 
def FPGATrackSimBankGenCfg (flags, **kwargs)
 

Variables

 flags
 
 log
 
 IdealGeoRoads
 
 acc
 we don't want to load sectors when running bank gen, set this to false More...
 
 MatrixFileName
 
 Output
 
 statusCode
 

Function Documentation

◆ FPGATrackSimBankGenCfg()

def FPGATrackSimBankGenConfig.FPGATrackSimBankGenCfg (   flags,
**  kwargs 
)

Definition at line 53 of file FPGATrackSimBankGenConfig.py.

53 def FPGATrackSimBankGenCfg(flags, **kwargs):
54 
55  acc = ComponentAccumulator()
56 
57  theFPGATrackSimMatrixGenAlg = CompFactory.FPGATrackSimMatrixGenAlgo()
58  theFPGATrackSimMatrixGenAlg.Clustering = True
59  theFPGATrackSimMatrixGenAlg.IdealiseGeometry = 2
60  theFPGATrackSimMatrixGenAlg.SingleSector = False
61  theFPGATrackSimMatrixGenAlg.HoughConstants = True
62  theFPGATrackSimMatrixGenAlg.DeltaPhiConstants = False
63  theFPGATrackSimMatrixGenAlg.PT_THRESHOLD = 1.0 # GeV
64  theFPGATrackSimMatrixGenAlg.D0_THRESHOLD = 2.0 # mm
65  theFPGATrackSimMatrixGenAlg.TRAIN_PDG = 13
66  theFPGATrackSimMatrixGenAlg.NBanks = 1
67 
68  theFPGATrackSimMatrixGenAlg.SpacePoints = True
69  theFPGATrackSimMatrixGenAlg.SpacePointTool = acc.getPrimaryAndMerge(FPGATrackSimSpacePointsToolCfg(flags))
70  theFPGATrackSimMatrixGenAlg.minSpacePlusPixel = flags.Trigger.FPGATrackSim.minSpacePlusPixel
71 
72  theFPGATrackSimMatrixGenAlg.FPGATrackSimMappingSvc = acc.getPrimaryAndMerge(FPGATrackSimMappingCfg(flags))
73 
74  if (flags.Trigger.FPGATrackSim.ActiveConfig.secondStage):
75  from FPGATrackSimConfTools.FPGATrackSimAnalysisConfig import FPGATrackSimTrackFitterToolCfg,FPGATrackSimOverlapRemovalToolCfg
76  from FPGATrackSimConfTools.FPGATrackSimSecondStageConfig import FPGATrackSimWindowExtensionToolCfg
77  theFPGATrackSimMatrixGenAlg.TrackFitter_1st = acc.getPrimaryAndMerge(FPGATrackSimTrackFitterToolCfg(flags))
78  theFPGATrackSimMatrixGenAlg.OverlapRemoval_1st = acc.getPrimaryAndMerge(FPGATrackSimOverlapRemovalToolCfg(flags))
79  theFPGATrackSimMatrixGenAlg.TrackExtensionTool = acc.getPrimaryAndMerge(FPGATrackSimWindowExtensionToolCfg(flags))
80  theFPGATrackSimMatrixGenAlg.SecondStage = True
81  else:
82  theFPGATrackSimMatrixGenAlg.SecondStage = False
83 
84 
85  # Override this. It gets set somewhere from bank_tag.
86  theFPGATrackSimMatrixGenAlg.WCmax = 2
87  theFPGATrackSimMatrixGenAlg.dropHitsAndFill = flags.dropHitsAndFill
88 
89  theFPGATrackSimMatrixGenAlg.FPGATrackSimRawToLogicalHitsTool = acc.getPrimaryAndMerge(FPGATrackSimRawLogicCfg(flags))
90  if (flags.Trigger.FPGATrackSim.ActiveConfig.genScan):
91  theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionToolGenScanCfg(flags))
92  elif (flags.Trigger.FPGATrackSim.ActiveConfig.hough1D):
93  theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionTool1DCfg(flags))
94  else:
95  theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionToolCfg(flags))
96 
97  from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
98  acc.merge(BeamSpotCondAlgCfg(flags))
99 
100  theFPGATrackSimMatrixGenAlg.FPGATrackSimSGToRawHitsTool = acc.popToolsAndMerge(FPGATrackSimSGToRawHitsToolCfg(flags))
101  theFPGATrackSimMatrixGenAlg.FPGATrackSimClusteringFTKTool = CompFactory.FPGATrackSimClusteringTool()
102 
103  # Do we really want to use the tag system for this? I think so but unsure if modernization needed.
104  import FPGATrackSimConfTools.FPGATrackSimTagConfig as FPGATrackSimTagConfig
105  bank_tag = FPGATrackSimTagConfig.getTags(stage='bank')['bank']
106  theFPGATrackSimMatrixGenAlg.sectorQPtBins = bank_tag['sectorQPtBins']
107  theFPGATrackSimMatrixGenAlg.qptAbsBinning = bank_tag['qptAbsBinning']
108 
109  acc.addEventAlgo(theFPGATrackSimMatrixGenAlg)
110 
111  return acc
112 
113 

◆ FPGATrackSimSGToRawHitsToolCfg()

def FPGATrackSimBankGenConfig.FPGATrackSimSGToRawHitsToolCfg (   flags)

Definition at line 32 of file FPGATrackSimBankGenConfig.py.

33  result=ComponentAccumulator()
34 
35  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
36  MyExtrapolator = result.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
37 
38  from TrkConfig.TrkTruthCreatorToolsConfig import TruthToTrackToolCfg
39  MyTruthToTrack = result.popToolsAndMerge(TruthToTrackToolCfg(flags))
40 
41  FPGATrackSimSGInputTool = CompFactory.FPGATrackSimSGToRawHitsTool(maxEta=5.0, minPt=0.8 * GeV,
42  dumpHitsOnTracks=False,
43  dumpTruthIntersections=False,
44  ReadOfflineClusters=False,
45  ReadTruthTracks=True,
46  ReadOfflineTracks=False,
47  UseNominalOrigin = True,
48  Extrapolator = MyExtrapolator,
49  TruthToTrackTool = MyTruthToTrack )
50  result.setPrivateTools(FPGATrackSimSGInputTool)
51  return result
52 

◆ FPGATrackSimSpacePointsToolCfg()

def FPGATrackSimBankGenConfig.FPGATrackSimSpacePointsToolCfg (   flags)

Definition at line 18 of file FPGATrackSimBankGenConfig.py.

19  result=ComponentAccumulator()
20  SpacePointTool = CompFactory.FPGATrackSimSpacePointsTool()
21  SpacePointTool.Filtering = flags.Trigger.FPGATrackSim.ActiveConfig.spacePointFiltering
22  SpacePointTool.FilteringClosePoints = False
23  SpacePointTool.PhiWindow = 0.004
24  SpacePointTool.Duplication = True
25  result.setPrivateTools(SpacePointTool)
26  return result
27 

◆ prepareFlagsForFPGATrackSimBankGen()

def FPGATrackSimBankGenConfig.prepareFlagsForFPGATrackSimBankGen (   flags)

Definition at line 28 of file FPGATrackSimBankGenConfig.py.

29  newFlags = flags.cloneAndReplace("Trigger.FPGATrackSim.ActiveConfig", "Trigger.FPGATrackSim." + flags.Trigger.FPGATrackSim.algoTag)
30  return newFlags
31 

Variable Documentation

◆ acc

FPGATrackSimBankGenConfig.acc

we don't want to load sectors when running bank gen, set this to false

Definition at line 131 of file FPGATrackSimBankGenConfig.py.

◆ flags

FPGATrackSimBankGenConfig.flags

Definition at line 117 of file FPGATrackSimBankGenConfig.py.

◆ IdealGeoRoads

FPGATrackSimBankGenConfig.IdealGeoRoads

Definition at line 124 of file FPGATrackSimBankGenConfig.py.

◆ log

FPGATrackSimBankGenConfig.log

Definition at line 121 of file FPGATrackSimBankGenConfig.py.

◆ MatrixFileName

FPGATrackSimBankGenConfig.MatrixFileName

Definition at line 142 of file FPGATrackSimBankGenConfig.py.

◆ Output

FPGATrackSimBankGenConfig.Output

Definition at line 143 of file FPGATrackSimBankGenConfig.py.

◆ statusCode

FPGATrackSimBankGenConfig.statusCode

Definition at line 145 of file FPGATrackSimBankGenConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.BeamSpotConditionsConfig.BeamSpotCondAlgCfg
def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs)
Definition: BeamSpotConditionsConfig.py:7
python.FPGATrackSimAnalysisConfig.FPGATrackSimTrackFitterToolCfg
def FPGATrackSimTrackFitterToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:275
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
FPGATrackSimBankGenConfig.FPGATrackSimSGToRawHitsToolCfg
def FPGATrackSimSGToRawHitsToolCfg(flags)
Definition: FPGATrackSimBankGenConfig.py:32
python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionTool1DCfg
def FPGATrackSimRoadUnionTool1DCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:131
python.TrkTruthCreatorToolsConfig.TruthToTrackToolCfg
def TruthToTrackToolCfg(flags, name="TruthToTrack", **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:25
python.FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg
def FPGATrackSimMappingCfg(flags)
Definition: FPGATrackSimDataPrepConfig.py:157
FPGATrackSimBankGenConfig.FPGATrackSimSpacePointsToolCfg
def FPGATrackSimSpacePointsToolCfg(flags)
Definition: FPGATrackSimBankGenConfig.py:18
python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionToolCfg
def FPGATrackSimRoadUnionToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:77
python.FPGATrackSimSecondStageConfig.FPGATrackSimWindowExtensionToolCfg
def FPGATrackSimWindowExtensionToolCfg(flags)
Definition: FPGATrackSimSecondStageConfig.py:18
FPGATrackSimBankGenConfig.prepareFlagsForFPGATrackSimBankGen
def prepareFlagsForFPGATrackSimBankGen(flags)
Definition: FPGATrackSimBankGenConfig.py:28
python.FPGATrackSimAnalysisConfig.FPGATrackSimOverlapRemovalToolCfg
def FPGATrackSimOverlapRemovalToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:294
python.FPGATrackSimDataPrepConfig.FPGATrackSimRawLogicCfg
def FPGATrackSimRawLogicCfg(flags)
Definition: FPGATrackSimDataPrepConfig.py:29
python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionToolGenScanCfg
def FPGATrackSimRoadUnionToolGenScanCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:174
FPGATrackSimBankGenConfig.FPGATrackSimBankGenCfg
def FPGATrackSimBankGenCfg(flags, **kwargs)
Definition: FPGATrackSimBankGenConfig.py:53