44 """Return ComponentAccumulator with configured RpcDigitizationTool"""
47 if flags.GeoModel.Run < LHCPeriod.Run3:
48 from MuonConfig.MuonCondAlgConfig
import RpcCondDbAlgCfg
51 if flags.Digitization.DoXingByXingPileUp:
54 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
55 kwargs.setdefault(
"OutputSDOName", flags.Overlay.BkgPrefix +
"RPC_SDO")
57 kwargs.setdefault(
"OutputSDOName",
"RPC_SDO")
59 from RngComps.RngCompsConfig
import AthRNGSvcCfg
60 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)))
61 kwargs.setdefault(
"OutputObjectName",
"RPC_DIGITS")
64 if flags.Muon.usePhaseIIGeoSetup:
65 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
67 kwargs.setdefault(
"StreamName",
"RpcSimForklift")
68 kwargs.setdefault(
"SimHitKey",
"xRpcSimHits")
69 kwargs.setdefault(
"EffiDataKey",
"")
70 the_tool = CompFactory.MuonR4.RpcFastDigiTool(name=
"RpcDigitizationTool", **kwargs)
71 acc.setPrivateTools(the_tool)
75 kwargs.setdefault(
"DeadTime", 100)
76 kwargs.setdefault(
"PatchForRpcTime",
True)
78 kwargs.setdefault(
"PatchForRpcTimeShift", 12.5)
79 kwargs.setdefault(
"turnON_efficiency",
True)
80 kwargs.setdefault(
"turnON_clustersize",
True)
81 kwargs.setdefault(
"ClusterSize1_2uncorr",
False)
82 kwargs.setdefault(
"CutProjectedTracks", 100)
83 kwargs.setdefault(
"RPCInfoFromDb",
True)
84 kwargs.setdefault(
"Efficiency_fromCOOL",
True)
85 kwargs.setdefault(
"EfficiencyPatchForBMShighEta",
False)
86 kwargs.setdefault(
"ClusterSize_fromCOOL",
True)
87 kwargs.setdefault(
"IgnoreRunDependentConfig",
False)
88 kwargs.setdefault(
"PhiAndEtaEff_A",[0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938])
89 kwargs.setdefault(
"OnlyPhiEff_A" ,[0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022])
90 kwargs.setdefault(
"OnlyEtaEff_A" ,[0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022])
91 kwargs.setdefault(
"PhiAndEtaEff_C",[0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938, 0.938])
92 kwargs.setdefault(
"OnlyPhiEff_C" ,[0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022])
93 kwargs.setdefault(
"OnlyEtaEff_C" ,[0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022, 0.022])
94 kwargs.setdefault(
"FracClusterSize1_A", [0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664])
95 kwargs.setdefault(
"FracClusterSize2_A", [0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986])
96 kwargs.setdefault(
"FracClusterSizeTail_A",[0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035 ])
97 kwargs.setdefault(
"MeanClusterSizeTail_A",[0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598])
98 kwargs.setdefault(
"FracClusterSize1_C", [0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664, 0.609664])
99 kwargs.setdefault(
"FracClusterSize2_C", [0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986, 0.259986])
100 kwargs.setdefault(
"FracClusterSizeTail_C",[0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035, 0.13035 ])
101 kwargs.setdefault(
"MeanClusterSizeTail_C",[0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598, 0.548598])
102 RpcDigitizationTool = CompFactory.RpcDigitizationTool(name, **kwargs)
103 acc.setPrivateTools(RpcDigitizationTool)