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
64 theFPGATrackSimMatrixGenAlg.D0_THRESHOLD = 2.0
65 theFPGATrackSimMatrixGenAlg.TRAIN_PDG = 13
66 theFPGATrackSimMatrixGenAlg.NBanks = 1
68 theFPGATrackSimMatrixGenAlg.SpacePoints =
True
70 theFPGATrackSimMatrixGenAlg.minSpacePlusPixel = flags.Trigger.FPGATrackSim.minSpacePlusPixel
74 if (flags.Trigger.FPGATrackSim.ActiveConfig.secondStage):
75 from FPGATrackSimConfTools.FPGATrackSimAnalysisConfig
import FPGATrackSimTrackFitterToolCfg,FPGATrackSimOverlapRemovalToolCfg
76 from FPGATrackSimConfTools.FPGATrackSimSecondStageConfig
import FPGATrackSimWindowExtensionToolCfg
80 theFPGATrackSimMatrixGenAlg.SecondStage =
True
82 theFPGATrackSimMatrixGenAlg.SecondStage =
False
86 theFPGATrackSimMatrixGenAlg.WCmax = 2
87 theFPGATrackSimMatrixGenAlg.dropHitsAndFill = flags.dropHitsAndFill
89 theFPGATrackSimMatrixGenAlg.FPGATrackSimRawToLogicalHitsTool = acc.getPrimaryAndMerge(
FPGATrackSimRawLogicCfg(flags))
90 if (flags.Trigger.FPGATrackSim.ActiveConfig.genScan):
92 elif (flags.Trigger.FPGATrackSim.ActiveConfig.hough1D):
97 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
101 theFPGATrackSimMatrixGenAlg.FPGATrackSimClusteringFTKTool = CompFactory.FPGATrackSimClusteringTool()
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']
109 acc.addEventAlgo(theFPGATrackSimMatrixGenAlg)