18 kwargs.setdefault(
"merged_file_path", flags.Trigger.FPGATrackSim.FPGATrackSimMatrixFileRegEx)
19 kwargs.setdefault(
"region", flags.Trigger.FPGATrackSim.region)
20 kwargs.setdefault(
"CheckGood2ndStage",flags.Trigger.FPGATrackSim.CheckGood2ndStage)
21 kwargs.setdefault(
"UseHitScaleFactor",flags.Trigger.FPGATrackSim.UseHitScaleFactor)
22 kwargs.setdefault(
"IsSecondStage",flags.Trigger.FPGATrackSim.Is2ndStage)
23 kwargs.setdefault(
"missHitsConsts",flags.Trigger.FPGATrackSim.missHitsConsts)
25 from FPGATrackSimConfTools.FPGATrackSimDataPrepConfig
import FPGATrackSimMappingCfg
27 theFPGATrackSimConstGenAlg = CompFactory.FPGATrackSimConstGenAlgo(**kwargs)
28 theFPGATrackSimConstGenAlg.FPGATrackSimMappingSvc = FPGATrackSimMapping
30 eventSelector = CompFactory.FPGATrackSimEventSelectionSvc()
31 eventSelector.regions =
"HTT/TrigHTTMaps/V1/map_file/slices_v01_Jan21.txt"
32 eventSelector.regionID = 0
33 eventSelector.sampleType = flags.Trigger.FPGATrackSim.sampleType
34 eventSelector.withPU =
False
35 acc.addService(eventSelector, create=
True, primary=
True)
37 acc.addEventAlgo(theFPGATrackSimConstGenAlg)