ATLAS Offline Software
Functions | Variables
python.Lvl1MuonSimulationConfig Namespace Reference

Functions

def TMDBConfig (flags)
 
def MuonBytestream2RdoConfig (flags)
 
def MuonRdo2PrdConfig (flags)
 
def RecoMuonSegmentSequence (flags)
 
def MuonRdoToMuonDigitToolCfg (flags, name="MuonRdoToMuonDigitTool", **kwargs)
 
def MuonRdo2DigitConfig (flags)
 
def NSWTriggerConfig (flags)
 
def RPCTriggerConfig (flags)
 
def TGCTriggerConfig (flags)
 
def TGCModifierConfig (flags)
 
def MuctpiConfig (flags)
 
def Lvl1MuonSimulationCfg (flags)
 

Variables

 flags
 
 Files
 
 MaxEvents
 
 NumThreads
 
 triggerMenuSetup
 
 acc
 
 withDetails
 
 True
 
 summariseProps
 
 printDefaults
 

Function Documentation

◆ Lvl1MuonSimulationCfg()

def python.Lvl1MuonSimulationConfig.Lvl1MuonSimulationCfg (   flags)

Definition at line 401 of file Lvl1MuonSimulationConfig.py.

401 def Lvl1MuonSimulationCfg(flags):
402  acc = ComponentAccumulator()
403 
404  acc.merge(MuonBytestream2RdoConfig(flags)) # data prep for muon bytestream data
405  acc.merge(MuonRdo2DigitConfig(flags)) # input for rpc/tgc trigger simulation
406  acc.merge(RPCTriggerConfig(flags)) # rpc trigger simulation, including bis78 to prepare for bis78-tgc coincidence
407  acc.merge(TMDBConfig(flags)) # for tmdb decision to prepare for tile-muon coincidence
408  acc.merge(NSWTriggerConfig(flags)) # nsw trigger simulation to prepare input for nsw-tgc coincidence
409  acc.merge(TGCTriggerConfig(flags)) # tgc trigger simulation
410  acc.merge(MuonRdo2PrdConfig(flags)) # data prep for nsw-tgc coincidence emulator
411  acc.merge(RecoMuonSegmentSequence(flags)) # segment reco for nsw-tgc coincidence emulator
412  acc.merge(TGCModifierConfig(flags)) # overwrite output from tgc by nsw-tgc coincidence emulator
413  acc.merge(MuctpiConfig(flags)) # muctpi simulation
414 
415  return acc
416 

◆ MuctpiConfig()

def python.Lvl1MuonSimulationConfig.MuctpiConfig (   flags)

Definition at line 374 of file Lvl1MuonSimulationConfig.py.

374 def MuctpiConfig(flags):
375  acc = ComponentAccumulator()
376  rpcRecRoiTool = CompFactory.LVL1.TrigT1RPCRecRoiTool("TrigT1RPCRecRoiTool", UseRun3Config=True)
377  tgcRecRoiTool = CompFactory.LVL1.TrigT1TGCRecRoiTool("TrigT1TGCRecRoiTool", UseRun3Config=True)
378  trigThresholdDecTool = CompFactory.LVL1.TrigThresholdDecisionTool(name="TrigThresholdDecisionTool",
379  RPCRecRoiTool = rpcRecRoiTool,
380  TGCRecRoiTool = tgcRecRoiTool)
381  muctpiTool = CompFactory.LVL1MUCTPIPHASE1.MUCTPI_AthTool(name="MUCTPI_AthTool",
382  MuCTPICTPLocation = 'L1MuCTPItoCTPLocation',
383  OverlapStrategyName = flags.Trigger.MUCTPI.OverlapStrategy,
384  LUTXMLFile = flags.Trigger.MUCTPI.LUTXMLFile,
385  BarrelRoIFile = flags.Trigger.MUCTPI.BarrelRoIFile,
386  EndcapForwardRoIFile = flags.Trigger.MUCTPI.EndcapForwardRoIFile,
387  Side0LUTFile = flags.Trigger.MUCTPI.Side0LUTFile,
388  Side1LUTFile = flags.Trigger.MUCTPI.Side1LUTFile,
389  InputSource = 'DIGITIZATION',
390  RPCRecRoiTool = rpcRecRoiTool,
391  TGCRecRoiTool = tgcRecRoiTool,
392  TrigThresholdDecisionTool = trigThresholdDecTool)
393  muctpiAlg = CompFactory.LVL1MUCTPIPHASE1.MUCTPI_AthAlg(name="MUCTPI_AthAlg",
394  MUCTPI_AthTool = muctpiTool)
395  acc.addEventAlgo(muctpiAlg)
396  from TrigConfigSvc.TrigConfigSvcCfg import L1ConfigSvcCfg
397  acc.merge(L1ConfigSvcCfg(flags))
398  return acc
399 
400 

◆ MuonBytestream2RdoConfig()

def python.Lvl1MuonSimulationConfig.MuonBytestream2RdoConfig (   flags)

Definition at line 44 of file Lvl1MuonSimulationConfig.py.

44 def MuonBytestream2RdoConfig(flags):
45  acc = ComponentAccumulator()
46  if flags.Input.isMC:
47  return acc
48 
49  postFix = "_L1MuonSim"
50  from MuonConfig.MuonBytestreamDecodeConfig import MuonCacheNames
51  cacheCreator = CompFactory.MuonCacheCreator(RpcCacheKey = MuonCacheNames.RpcCache,
52  TgcCacheKey = MuonCacheNames.TgcCache,
53  MdtCsmCacheKey = MuonCacheNames.MdtCsmCache,
54  CscCacheKey = (MuonCacheNames.CscCache if flags.Detector.GeometryCSC else ""))
55  acc.addEventAlgo(cacheCreator)
56  # for RPC
57  RPCRodDecoder = CompFactory.Muon.RpcROD_Decoder(name = "RpcROD_Decoder" + postFix, NOBXS=flags.Trigger.L1MuonSim.RPCNBX)
58  MuonRpcRawDataProviderTool = CompFactory.Muon.RPC_RawDataProviderToolMT(name = "RPC_RawDataProviderToolMT" + postFix,
59  RpcContainerCacheKey = MuonCacheNames.RpcCache,
60  WriteOutRpcSectorLogic = False,
61  Decoder = RPCRodDecoder,
62  RdoLocation = "RPCPAD_L1" )
63  RpcRawDataProvider = CompFactory.Muon.RpcRawDataProvider(name = "RpcRawDataProvider" + postFix,
64  ProviderTool = MuonRpcRawDataProviderTool)
65  acc.addEventAlgo(RpcRawDataProvider)
66  # for TGC
67  TGCRodDecoder = CompFactory.Muon.TGC_RodDecoderReadout(name = "TGC_RodDecoderReadout" + postFix)
68  MuonTgcRawDataProviderTool = CompFactory.Muon.TGC_RawDataProviderToolMT(name = "TGC_RawDataProviderToolMT" + postFix,
69  TgcContainerCacheKey = MuonCacheNames.TgcCache,
70  Decoder = TGCRodDecoder,
71  RdoLocation = "TGCRDO_L1")
72  TgcRawDataProvider = CompFactory.Muon.TgcRawDataProvider(name = "TgcRawDataProvider" + postFix,
73  ProviderTool = MuonTgcRawDataProviderTool)
74  acc.addEventAlgo(TgcRawDataProvider)
75  # for sTGC
76  if flags.Detector.GeometrysTGC:
77  Muon__STGC_RawDataProviderToolMT=CompFactory.Muon.STGC_RawDataProviderToolMT
78  from MuonConfig.MuonBytestreamDecodeConfig import sTgcRODDecoderCfg
79  MuonsTgcRawDataProviderTool = Muon__STGC_RawDataProviderToolMT(name = "STGC_RawDataProviderToolMT"+postFix,
80  Decoder = acc.popToolsAndMerge(sTgcRODDecoderCfg(flags,
81  name = "sTgcROD_Decoder"+postFix)),
82  RdoLocation = "sTGCRDO_L1")
83  Muon__sTgcRawDataProvider=CompFactory.Muon.sTgcRawDataProvider
84  sTgcRawDataProvider = Muon__sTgcRawDataProvider(name = "sTgcRawDataProvider"+postFix,
85  ProviderTool = MuonsTgcRawDataProviderTool )
86  acc.addEventAlgo(sTgcRawDataProvider)
87 
88  # for MM
89  if flags.Detector.GeometryMM:
90  from MuonConfig.MuonBytestreamDecodeConfig import MmRDODDecoderCfg
91  Muon_MM_RawDataProviderToolMT = CompFactory.Muon.MM_RawDataProviderToolMT
92  MuonMmRawDataProviderTool = Muon_MM_RawDataProviderToolMT(name = "MM_RawDataProviderToolMT"+postFix,
93  Decoder = acc.popToolsAndMerge(MmRDODDecoderCfg(flags,
94  name="MM_RODDecoder"+postFix)),
95  RdoLocation = "MMRDO_L1")
96  Muon__MmRawDataProvider = CompFactory.Muon.MM_RawDataProvider
97  MmRawDataProvider = Muon__MmRawDataProvider(name = "MmRawDataProvider"+postFix, ProviderTool = MuonMmRawDataProviderTool )
98  acc.addEventAlgo(MmRawDataProvider)
99 
100  if flags.Trigger.L1MuonSim.EmulateNSW and flags.Trigger.L1MuonSim.NSWVetoMode:
101  # for MDT
102  MDTRodDecoder = CompFactory.MdtROD_Decoder(name = "MdtROD_Decoder" + postFix)
103  MuonMdtRawDataProviderTool = CompFactory.Muon.MDT_RawDataProviderToolMT(name = "MDT_RawDataProviderToolMT" + postFix,
104  CsmContainerCacheKey = MuonCacheNames.MdtCsmCache,
105  Decoder = MDTRodDecoder,
106  RdoLocation = "MDTCSM_L1")
107  MdtRawDataProvider = CompFactory.Muon.MdtRawDataProvider(name = "MdtRawDataProvider" + postFix,
108  ProviderTool = MuonMdtRawDataProviderTool)
109  acc.addEventAlgo(MdtRawDataProvider)
110  # for CSC
111  if flags.Detector.GeometryCSC:
112  CSCRodDecoder = CompFactory.Muon.CscROD_Decoder(name = "CscROD_Decoder" + postFix,
113  IsCosmics = False,
114  IsOldCosmics = False )
115  MuonCscRawDataProviderTool = CompFactory.Muon.CSC_RawDataProviderToolMT(name = "CSC_RawDataProviderToolMT" + postFix,
116  CscContainerCacheKey = MuonCacheNames.CscCache,
117  Decoder = CSCRodDecoder,
118  RdoLocation = "CSCRDO_L1" )
119  CscRawDataProvider = CompFactory.Muon.CscRawDataProvider(name = "CscRawDataProvider" + postFix,
120  ProviderTool = MuonCscRawDataProviderTool)
121  acc.addEventAlgo(CscRawDataProvider)
122 
123  return acc
124 

◆ MuonRdo2DigitConfig()

def python.Lvl1MuonSimulationConfig.MuonRdo2DigitConfig (   flags)

Definition at line 206 of file Lvl1MuonSimulationConfig.py.

206 def MuonRdo2DigitConfig(flags):
207  acc = ComponentAccumulator()
208 
209  from MagFieldServices.MagFieldServicesConfig import AtlasFieldCacheCondAlgCfg
210  acc.merge( AtlasFieldCacheCondAlgCfg(flags) )
211  # Read RPCPAD and TGCRDO from the input POOL file (for BS it comes from [Rpc|Tgc]RawDataProvider)
212  suffix = "" if flags.Input.Format is Format.POOL else "_L1"
213  RPCRdoName = "RPCPAD"+suffix
214  TGCRdoName = "TGCRDO"+suffix
215  MMRdoName = "MMRDO"+suffix
216  sTGCRdoName = "sTGCRDO"+suffix
217 
218  if flags.Input.Format is Format.POOL:
219  rdoInputs = [
220  ('RpcPadContainer','RPCPAD'),
221  ('TgcRdoContainer','TGCRDO')
222  ]
223  # Read MMRDO and sTGCRDO
224  if flags.Detector.GeometrysTGC or flags.Detector.GeometryMM:
225  rdoInputs += [
226  ('Muon::MM_RawDataContainer','MMRDO'),
227  ('Muon::STGC_RawDataContainer','sTGCRDO')
228  ]
229  if flags.Muon.enableNRPC and ("NRPCRDO" in flags.Input.Collections):
230  rdoInputs += [
231  ('xAOD::NRPCRDOContainer' , 'NRPCRDO'),
232  ('xAOD::NRPCRDOAuxContainer', 'NRPCRDOAux.')
233  ]
234  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
235  acc.merge(SGInputLoaderCfg(flags, Load=rdoInputs))
236 
237  from MuonConfig.MuonGeometryConfig import MuonGeoModelCfg
238  acc.merge(MuonGeoModelCfg(flags))
239 
240  from MuonConfig.MuonByteStreamCnvTestConfig import RpcRdoToRpcDigitCfg, TgcRdoToTgcDigitCfg, STGC_RdoToDigitCfg, MM_RdoToDigitCfg
241 
242  acc.merge(RpcRdoToRpcDigitCfg(flags, RpcDigitContainer = "RPC_DIGITS_L1", RpcRdoContainer = RPCRdoName ))
243  acc.merge(TgcRdoToTgcDigitCfg(flags, TgcDigitContainer = "TGC_DIGITS_L1", TgcRdoContainer = TGCRdoName ))
244  if flags.Detector.GeometrysTGC:
245  acc.merge(STGC_RdoToDigitCfg(flags, sTgcRdoContainer = sTGCRdoName, sTgcDigitContainer = "sTGC_DIGITS_L1"))
246  if flags.Detector.GeometryMM:
247  acc.merge(MM_RdoToDigitCfg(flags, MmRdoContainer = MMRdoName, MmDigitContainer = "MM_DIGITS_L1" ))
248 
249  return acc
250 

◆ MuonRdo2PrdConfig()

def python.Lvl1MuonSimulationConfig.MuonRdo2PrdConfig (   flags)

Definition at line 125 of file Lvl1MuonSimulationConfig.py.

125 def MuonRdo2PrdConfig(flags):
126  acc = ComponentAccumulator()
127  if not flags.Trigger.L1MuonSim.EmulateNSW or not flags.Trigger.L1MuonSim.NSWVetoMode:
128  return acc
129  postFix = "_L1MuonSim"
130  suffix = "" if flags.Input.isMC else "_L1"
131  if flags.Input.Format is Format.POOL:
132  rdoInputs = [
133  ('RpcPadContainer','RPCPAD'),
134  ('TgcRdoContainer','TGCRDO'),
135  ('CscRawDataContainer','CSCRDO'),
136  ('MdtCsmContainer','MDTCSM')
137  ]
138  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
139  acc.merge(SGInputLoaderCfg(flags, Load=rdoInputs))
140 
141  if flags.Detector.GeometryCSC:
142  from MuonConfig.MuonRdoDecodeConfig import CscRDODecodeCfg
143  acc.merge(CscRDODecodeCfg(flags,name= "CscRdoToCscPrepData" + postFix, RDOContainer = "CSCRDO"+suffix))
144  CscClusterBuilderTool = CompFactory.CscThresholdClusterBuilderTool(name = "CscThresholdClusterBuilderTool" + postFix)
145  CscClusterBuilder = CompFactory.CscThresholdClusterBuilder(name = "CscThresholdClusterBuilder"+postFix,
146  cluster_builder = CscClusterBuilderTool)
147  acc.addEventAlgo(CscClusterBuilder)
148 
149  from MuonConfig.MuonRdoDecodeConfig import MdtRDODecodeCfg
150  acc.merge(MdtRDODecodeCfg(flags, name = "MdtRdoToMdtPrepData" + postFix,
151  RDOContainer = "MDTCSM"+suffix ))
152 
153  from MuonConfig.MuonRdoDecodeConfig import RpcRDODecodeCfg
154  acc.merge(RpcRDODecodeCfg(flags, name = "RpcRdoToRpcPrepData" + postFix,
155  RDOContainer = "RPCPAD"+suffix))
156 
157  from MuonConfig.MuonRdoDecodeConfig import TgcRDODecodeCfg
158  acc.merge(TgcRDODecodeCfg(flags, name = "TgcRdoToPrepData" + postFix,
159  RDOContainer = "TGCRDO"+suffix))
160  return acc
161 

◆ MuonRdoToMuonDigitToolCfg()

def python.Lvl1MuonSimulationConfig.MuonRdoToMuonDigitToolCfg (   flags,
  name = "MuonRdoToMuonDigitTool",
**  kwargs 
)

Definition at line 187 of file Lvl1MuonSimulationConfig.py.

187 def MuonRdoToMuonDigitToolCfg(flags, name="MuonRdoToMuonDigitTool", **kwargs ):
188  result = ComponentAccumulator()
189  kwargs.setdefault("DecodeSTGC_RDO", flags.Detector.GeometrysTGC)
190  kwargs.setdefault("DecodeMM_RDO", flags.Detector.GeometryMM)
191  kwargs.setdefault("DecodeNrpcRDO", flags.Muon.enableNRPC)
192  from MuonConfig.MuonByteStreamCnvTestConfig import STgcRdoDecoderCfg, MMRdoDecoderCfg, MdtRdoDecoderCfg
193  kwargs.setdefault( "stgcRdoDecoderTool", result.popToolsAndMerge(STgcRdoDecoderCfg(flags))
194  if flags.Detector.GeometrysTGC else "" )
195  kwargs.setdefault("mmRdoDecoderTool", result.popToolsAndMerge(MMRdoDecoderCfg(flags))
196  if flags.Detector.GeometryMM else "" )
197  kwargs.setdefault("mdtRdoDecoderTool", result.popToolsAndMerge(MdtRdoDecoderCfg(flags)))
198  #Set N BCs and central BC consistently with RPC readout settings
199  rpcrdo_decode = CompFactory.Muon.RpcRDO_Decoder("RpcRDO_Decoder", BCZERO=flags.Trigger.L1MuonSim.RPCNBCZ)
200  kwargs.setdefault("rpcRdoDecoderTool", rpcrdo_decode)
201 
202  the_tool = CompFactory.MuonRdoToMuonDigitTool (name, **kwargs)
203  result.setPrivateTools(the_tool)
204  return result
205 

◆ NSWTriggerConfig()

def python.Lvl1MuonSimulationConfig.NSWTriggerConfig (   flags)

Definition at line 251 of file Lvl1MuonSimulationConfig.py.

251 def NSWTriggerConfig(flags):
252  acc = ComponentAccumulator()
253  if not flags.Detector.GeometrysTGC and not flags.Detector.GeometryMM:
254  return acc
255 
256  if flags.Input.Format is Format.POOL and flags.Input.isMC:
257  rdoInputs = [
258  ('McEventCollection','TruthEvent'), # for MM trigger
259  ('TrackRecordCollection','MuonEntryLayer'), # for MM trigger
260  ('MuonSimDataCollection','sTGC_SDO') # for sTGC Pad trigger
261  ]
262  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
263  acc.merge(SGInputLoaderCfg(flags, Load=rdoInputs))
264 
265  PadEmulatorTool = CompFactory.NSWL1.PadEmulatorTool("NSWL1__PadEmulatorTool", DoNtuple=flags.Trigger.L1MuonSim.WritesTGCBranches, IsMC = flags.Input.isMC, sTGC_DigitContainerName="sTGC_DIGITS_L1")
266  PadTdsTool = CompFactory.NSWL1.PadTdsOfflineTool("NSWL1__PadTdsOfflineTool", IsMC = flags.Input.isMC, sTGC_DigitContainerName="sTGC_DIGITS_L1")
267  PadTriggerLogicTool = CompFactory.NSWL1.PadTriggerLogicOfflineTool("NSWL1__PadTriggerLogicOfflineTool")
268  StripTdsTool = CompFactory.NSWL1.StripTdsOfflineTool("NSWL1__StripTdsOfflineTool", IsMC=flags.Input.isMC, sTGC_DigitContainerName="sTGC_DIGITS_L1")
269  StripClusterTool = CompFactory.NSWL1.StripClusterTool("NSWL1__StripClusterTool", IsMC=flags.Input.isMC)
270  StripSegmentTool = CompFactory.NSWL1.StripSegmentTool("NSWL1__StripSegmentTool")
271  MMTriggerTool = CompFactory.NSWL1.MMTriggerTool("NSWL1__MMTriggerTool",DoNtuple=flags.Trigger.L1MuonSim.WriteMMBranches, IsMC = flags.Input.isMC, MmDigitContainer="MM_DIGITS_L1")
272  TriggerProcessorTool = CompFactory.NSWL1.TriggerProcessorTool("NSWL1__TriggerProcessorTool")
273 
274  # Include NswDcsDb Algorithm for data
275  if not flags.Input.isMC:
276  from MuonConfig.MuonCondAlgConfig import NswDcsDbAlgCfg
277  acc.merge(NswDcsDbAlgCfg(flags))
278 
279  dosTGC = flags.Trigger.L1MuonSim.doPadTrigger or flags.Trigger.L1MuonSim.doStripTrigger
280  if dosTGC:
281  from RegionSelector.RegSelToolConfig import regSelTool_STGC_Cfg
282  stgcRegSel = acc.popToolsAndMerge(regSelTool_STGC_Cfg( flags )) # noqa: F841 (adds a conditions algo as a side-effect)
283 
284  nswAlg = CompFactory.NSWL1.NSWL1Simulation("NSWL1Simulation",
285  DoNtuple = flags.Trigger.L1MuonSim.WriteNSWDebugNtuple,
286  DoMM = flags.Trigger.L1MuonSim.doMMTrigger,
287  DoMMDiamonds = flags.Trigger.L1MuonSim.doMMTrigger,
288  DosTGC = dosTGC,
289  DoPad = flags.Trigger.L1MuonSim.doPadTrigger,
290  PadEmulatorTool = PadEmulatorTool,
291  DoStrip = flags.Trigger.L1MuonSim.doStripTrigger,
292  PadTdsTool = PadTdsTool,
293  PadTriggerTool = PadTriggerLogicTool,
294  StripTdsTool = StripTdsTool,
295  StripClusterTool = StripClusterTool,
296  StripSegmentTool = StripSegmentTool,
297  MMTriggerTool = MMTriggerTool,
298  TriggerProcessorTool = TriggerProcessorTool,
299  NSWTrigRDOContainerName = "L1_NSWTrigContainer" )
300  acc.addEventAlgo(nswAlg)
301  return acc
302 

◆ RecoMuonSegmentSequence()

def python.Lvl1MuonSimulationConfig.RecoMuonSegmentSequence (   flags)

Definition at line 162 of file Lvl1MuonSimulationConfig.py.

162 def RecoMuonSegmentSequence(flags):
163  acc = ComponentAccumulator()
164  if not flags.Trigger.L1MuonSim.EmulateNSW or not flags.Trigger.L1MuonSim.NSWVetoMode:
165  return acc
166  postFix = "_L1MuonSim"
167  theMuonLayerHough = CompFactory.MuonLayerHoughAlg("MuonLayerHoughAlg" + postFix,
168  TgcPrepDataContainer = "TGC_Measurements",
169  RpcPrepDataContainer = "RPC_Measurements",
170  CscPrepDataContainer = ("CSC_Clusters" if flags.Detector.GeometryCSC else ""),
171  MdtPrepDataContainer = "MDT_DriftCircles",
172  sTgcPrepDataContainer = ("STGC_Measurements" if flags.Detector.GeometrysTGC else ""),
173  MMPrepDataContainer = ("MM_Measurements" if flags.Detector.GeometryMM else "") )
174  acc.addEventAlgo(theMuonLayerHough)
175  theSegmentFinderAlg = CompFactory.MuonSegmentFinderAlg("MuonSegmentFinderAlg" + postFix)
176  if not flags.Detector.GeometryCSC:
177  theSegmentFinderAlg.CSC_clusterkey = ""
178  theSegmentFinderAlg.Csc2dSegmentMaker = ""
179  theSegmentFinderAlg.Csc4dSegmentMaker = ""
180  acc.addEventAlgo(theSegmentFinderAlg)
181  xAODMuonSegmentCnv = CompFactory.xAODMaker.MuonSegmentCnvAlg("MuonSegmentCnvAlg" + postFix)
182  acc.addEventAlgo(xAODMuonSegmentCnv)
183  return acc
184 
185 
186 

◆ RPCTriggerConfig()

def python.Lvl1MuonSimulationConfig.RPCTriggerConfig (   flags)

Definition at line 303 of file Lvl1MuonSimulationConfig.py.

303 def RPCTriggerConfig(flags):
304  acc = ComponentAccumulator()
305  rpcAlg = CompFactory.TrigT1RPC("TrigT1RPC",
306  Hardware = True,
307  DataDetail = False,
308  RPCbytestream = False,
309  RPCbytestreamFile = "",
310  RPCDigitContainer = "RPC_DIGITS_L1",
311  useRun3Config = True,
312  NOBXS=flags.Trigger.L1MuonSim.RPCNBX,
313  BCZERO=flags.Trigger.L1MuonSim.RPCNBCZ)
314  acc.addEventAlgo(rpcAlg)
315  from MuonConfig.MuonCablingConfig import RPCCablingConfigCfg
316  acc.merge( RPCCablingConfigCfg(flags) ) # trigger roads
317  return acc
318 

◆ TGCModifierConfig()

def python.Lvl1MuonSimulationConfig.TGCModifierConfig (   flags)

Definition at line 358 of file Lvl1MuonSimulationConfig.py.

358 def TGCModifierConfig(flags):
359  acc = ComponentAccumulator()
360  if not flags.Trigger.L1MuonSim.EmulateNSW:
361  return acc
362  recTool = CompFactory.LVL1.TrigT1TGCRecRoiTool("TrigT1TGCRecRoiToolLegacy")
363  recTool.UseRun3Config=False # this is intentional
364  tgcModifier = CompFactory.LVL1TGCTrigger.TGCOutputModifier("TGCOutputModifier",
365  TrigT1TGCRecRoiTool=recTool,
366  InputMuctpiLocation = "L1MuctpiStoreTGCint",
367  OutputMuctpiLocation = "L1MuctpiStoreTGC",
368  EmulateA = True,
369  EmulateC = True,
370  NSWVetoMode = flags.Trigger.L1MuonSim.NSWVetoMode )
371  acc.addEventAlgo(tgcModifier)
372  return acc
373 

◆ TGCTriggerConfig()

def python.Lvl1MuonSimulationConfig.TGCTriggerConfig (   flags)

Definition at line 319 of file Lvl1MuonSimulationConfig.py.

319 def TGCTriggerConfig(flags):
320  acc = ComponentAccumulator()
321  tgcAlg = CompFactory.LVL1TGCTrigger.LVL1TGCTrigger("LVL1TGCTrigger",
322  InputData_perEvent = "TGC_DIGITS_L1",
323  InputRDO = "TGCRDO" if flags.Input.isMC else "TGCRDO_L1",
324  useRun3Config = True,
325  TileMuRcv_Input = "rerunTileMuRcvCnt",
326  TILEMU = True)
327  if (flags.Detector.GeometrysTGC or flags.Detector.GeometryMM):
328  tgcAlg.MaskFileName12 = "TrigT1TGCMaskedChannel.noFI._12.db"
329  tgcAlg.USENSW = True
330  tgcAlg.NSWSideInfo = "AC"
331  tgcAlg.NSWTrigger_Input = "L1_NSWTrigContainer"
332  tgcAlg.FORCENSWCOIN = not flags.Trigger.L1MuonSim.NSWVetoMode
333  tgcAlg.USEBIS78 = flags.Trigger.L1MuonSim.doBIS78
334  else:
335  tgcAlg.MaskFileName12 = "TrigT1TGCMaskedChannel._12.db"
336 
337  if flags.Trigger.L1MuonSim.EmulateNSW:
338  tgcAlg.MuctpiPhase1LocationTGC = "L1MuctpiStoreTGCint"
339 
340  if flags.Input.Format is Format.BS:
341  from TriggerJobOpts.TriggerByteStreamConfig import ByteStreamReadCfg
342  readBSConfig = ByteStreamReadCfg(flags, ['ByteStreamMetadataContainer/ByteStreamMetadata'])
343  acc.merge(readBSConfig)
344  else:
345  tgcAlg.ByteStreamMetadataRHKey = ''
346  acc.addEventAlgo(tgcAlg)
347 
348  from PathResolver import PathResolver
349  bwCW_Run3_filePath=PathResolver.FindCalibFile("TrigT1TGC_CW/BW/CW_BW_Run3.v01.db")
350  acc.merge(addFolders(flags, '<db>sqlite://;schema={0};dbname=OFLP200</db> /TGC/TRIGGER/CW_BW_RUN3'.format(bwCW_Run3_filePath),
351  tag='TgcTriggerCwBwRun3-01',
352  className='CondAttrListCollection'))
353  acc.addCondAlgo(CompFactory.TGCTriggerCondAlg())
354  from MuonConfig.MuonCablingConfig import TGCCablingConfigCfg
355  acc.merge( TGCCablingConfigCfg(flags) )
356  return acc
357 

◆ TMDBConfig()

def python.Lvl1MuonSimulationConfig.TMDBConfig (   flags)

Definition at line 8 of file Lvl1MuonSimulationConfig.py.

8 def TMDBConfig(flags):
10 
11  # Read MuRcvRawChCnt from the input file (for POOL directly, for BS via converter)
12  if flags.Input.Format is Format.POOL:
13  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
14  acc.merge(SGInputLoaderCfg(flags, ["TileRawChannelContainer/MuRcvRawChCnt"]))
15  else:
16  from TriggerJobOpts.TriggerByteStreamConfig import ByteStreamReadCfg
17  acc.merge(ByteStreamReadCfg(flags, ["TileRawChannelContainer/MuRcvRawChCnt"]))
18 
19  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
20  acc.merge( TileInfoLoaderCfg(flags) )
21 
22  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
23  acc.merge(TileCablingSvcCfg(flags))
24 
25  from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
26  acc.merge( TileEMScaleCondAlgCfg(flags) )
27 
28  tmdbAlg = CompFactory.TileMuonReceiverDecision('TileMuonReceiverDecision'
29  , TileRawChannelContainer = "MuRcvRawChCnt" # input
30  , TileMuonReceiverContainer = "rerunTileMuRcvCnt" # output
31  , ManualRunPeriod = 2 # forcing Run 2 format (=2) for now, until TGC implements Run 3 format (=3)
32  # run 2 thresholds
33  , MuonReceiverEneThreshCellD6Low = 500
34  , MuonReceiverEneThreshCellD6andD5Low = 500
35  , MuonReceiverEneThreshCellD6High = 600
36  , MuonReceiverEneThreshCellD6andD5High = 600
37  # run 3 thresholds
38  , MuonReceiverEneThreshCellD5 = 500
39  , MuonReceiverEneThreshCellD6 = 500
40  , MuonReceiverEneThreshCellD5andD6 = 500)
41  acc.addEventAlgo(tmdbAlg)
42  return acc
43 

Variable Documentation

◆ acc

python.Lvl1MuonSimulationConfig.acc

Definition at line 429 of file Lvl1MuonSimulationConfig.py.

◆ Files

python.Lvl1MuonSimulationConfig.Files

Definition at line 421 of file Lvl1MuonSimulationConfig.py.

◆ flags

python.Lvl1MuonSimulationConfig.flags

Definition at line 420 of file Lvl1MuonSimulationConfig.py.

◆ MaxEvents

python.Lvl1MuonSimulationConfig.MaxEvents

Definition at line 422 of file Lvl1MuonSimulationConfig.py.

◆ NumThreads

python.Lvl1MuonSimulationConfig.NumThreads

Definition at line 423 of file Lvl1MuonSimulationConfig.py.

◆ printDefaults

python.Lvl1MuonSimulationConfig.printDefaults

Definition at line 439 of file Lvl1MuonSimulationConfig.py.

◆ summariseProps

python.Lvl1MuonSimulationConfig.summariseProps

Definition at line 439 of file Lvl1MuonSimulationConfig.py.

◆ triggerMenuSetup

python.Lvl1MuonSimulationConfig.triggerMenuSetup

Definition at line 424 of file Lvl1MuonSimulationConfig.py.

◆ True

python.Lvl1MuonSimulationConfig.True

Definition at line 439 of file Lvl1MuonSimulationConfig.py.

◆ withDetails

python.Lvl1MuonSimulationConfig.withDetails

Definition at line 439 of file Lvl1MuonSimulationConfig.py.

python.Lvl1MuonSimulationConfig.MuonRdoToMuonDigitToolCfg
def MuonRdoToMuonDigitToolCfg(flags, name="MuonRdoToMuonDigitTool", **kwargs)
Definition: Lvl1MuonSimulationConfig.py:187
MuonByteStreamCnvTestConfig.MM_RdoToDigitCfg
def MM_RdoToDigitCfg(flags, name="MM_RdoToDigitAlg", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:140
PathResolver::FindCalibFile
static std::string FindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.h:63
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
python.Lvl1MuonSimulationConfig.TGCTriggerConfig
def TGCTriggerConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:319
RegSelToolConfig.regSelTool_STGC_Cfg
def regSelTool_STGC_Cfg(flags)
Definition: RegSelToolConfig.py:185
MuonRdoDecodeConfig.CscRDODecodeCfg
def CscRDODecodeCfg(flags, name="CscRdoToCscPrepData", RDOContainer=None, **kwargs)
Definition: MuonRdoDecodeConfig.py:314
MuonByteStreamCnvTestConfig.RpcRdoToRpcDigitCfg
def RpcRdoToRpcDigitCfg(flags, name="RpcRdoToRpcDigitAlg", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:44
MuonBytestreamDecodeConfig.sTgcRODDecoderCfg
def sTgcRODDecoderCfg(flags, name="sTgcROD_Decoder", **kwargs)
Definition: MuonBytestreamDecodeConfig.py:222
python.Lvl1MuonSimulationConfig.NSWTriggerConfig
def NSWTriggerConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:251
MuonBytestreamDecodeConfig.MmRDODDecoderCfg
def MmRDODDecoderCfg(flags, name="MmROD_Decoder", **kwargs)
Definition: MuonBytestreamDecodeConfig.py:332
python.ByteStreamConfig.ByteStreamReadCfg
def ByteStreamReadCfg(flags, type_names=None)
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:25
MuonByteStreamCnvTestConfig.TgcRdoToTgcDigitCfg
def TgcRdoToTgcDigitCfg(flags, name="TgcRdoToTgcDigitAlg", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:91
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:11
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
python.Lvl1MuonSimulationConfig.RPCTriggerConfig
def RPCTriggerConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:303
MuonGeometryConfig.MuonGeoModelCfg
def MuonGeoModelCfg(flags)
Definition: MuonGeometryConfig.py:28
MuonCablingConfig.TGCCablingConfigCfg
def TGCCablingConfigCfg(flags)
Definition: MuonCablingConfig.py:86
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:86
python.TileEMScaleConfig.TileEMScaleCondAlgCfg
def TileEMScaleCondAlgCfg(flags, **kwargs)
Definition: TileEMScaleConfig.py:10
python.Lvl1MuonSimulationConfig.Lvl1MuonSimulationCfg
def Lvl1MuonSimulationCfg(flags)
Definition: Lvl1MuonSimulationConfig.py:401
python.Lvl1MuonSimulationConfig.MuctpiConfig
def MuctpiConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:374
python.Lvl1MuonSimulationConfig.RecoMuonSegmentSequence
def RecoMuonSegmentSequence(flags)
Definition: Lvl1MuonSimulationConfig.py:162
python.TrigConfigSvcCfg.L1ConfigSvcCfg
def L1ConfigSvcCfg(flags)
Definition: TrigConfigSvcCfg.py:203
MuonCondAlgConfig.NswDcsDbAlgCfg
def NswDcsDbAlgCfg(flags, **kwargs)
Definition: MuonCondAlgConfig.py:358
python.Lvl1MuonSimulationConfig.MuonRdo2PrdConfig
def MuonRdo2PrdConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:125
MuonRdoDecodeConfig.RpcRDODecodeCfg
def RpcRDODecodeCfg(flags, name="RpcRdoToRpcPrepData", RDOContainer=None, **kwargs)
Definition: MuonRdoDecodeConfig.py:140
python.Lvl1MuonSimulationConfig.MuonRdo2DigitConfig
def MuonRdo2DigitConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:206
python.Lvl1MuonSimulationConfig.TMDBConfig
def TMDBConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:8
MuonByteStreamCnvTestConfig.MdtRdoDecoderCfg
def MdtRdoDecoderCfg(flags, name="MDT_RDO_Decoder", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:348
MuonRdoDecodeConfig.TgcRDODecodeCfg
def TgcRDODecodeCfg(flags, name="TgcRdoToTgcPrepData", RDOContainer=None, **kwargs)
Definition: MuonRdoDecodeConfig.py:166
python.Lvl1MuonSimulationConfig.MuonBytestream2RdoConfig
def MuonBytestream2RdoConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:44
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition: MagFieldServicesConfig.py:8
python.Lvl1MuonSimulationConfig.TGCModifierConfig
def TGCModifierConfig(flags)
Definition: Lvl1MuonSimulationConfig.py:358
MuonByteStreamCnvTestConfig.STgcRdoDecoderCfg
def STgcRdoDecoderCfg(flags, name="STGC_RDO_Decoder", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:332
MuonRdoDecodeConfig.MdtRDODecodeCfg
def MdtRDODecodeCfg(flags, name="MdtRdoToMdtPrepData", RDOContainer=None, **kwargs)
Definition: MuonRdoDecodeConfig.py:272
MuonCablingConfig.RPCCablingConfigCfg
def RPCCablingConfigCfg(flags)
Definition: MuonCablingConfig.py:33
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
MuonByteStreamCnvTestConfig.STGC_RdoToDigitCfg
def STGC_RdoToDigitCfg(flags, name="STGC_RdoToDigitAlg", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:116
MuonByteStreamCnvTestConfig.MMRdoDecoderCfg
def MMRdoDecoderCfg(flags, name="MM_RDO_Decoder", **kwargs)
Definition: MuonByteStreamCnvTestConfig.py:340