Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
L1CaloFEXSimCfg Namespace Reference

Functions

def ReadSCellFromPoolFileCfg (flags, key='SCell')
 
def ReadSCellFromByteStreamCfg (flags, key='SCell', SCmask=True)
 
def eFEXTOBEtToolCfg (flags)
 
def TriggerTowersInputCfg (flags)
 
def L1CaloFEXSimCfg (flags, eFexTowerInputs=["L1_eFexDataTowers","L1_eFexEmulatedTowers"], deadMaterialCorrections=True, outputSuffix="", simulateAltTau=False)
 

Variables

 p
 
 metavar
 
 default
 
 help
 
 action
 
 type
 
 args
 
 flags
 
 isOnline
 
 Files
 
 AtlasVersion
 
 GlobalTag
 
 AODFileName
 
 MaxEvents
 
 NumThreads
 
 NumConcurrentEvents
 
 ShowDataDeps
 
 CheckDependencies
 
 ShowDataFlow
 
 EDMVersion
 
 doLVL1
 
 enableL1CaloPhase1
 
 triggerConfig
 
 toggle_geometry
 
 acc
 
 FexEDMList
 
 ItemList
 
 OutputLevel
 
 sc
 Save and optionally run the configuration. More...
 

Function Documentation

◆ eFEXTOBEtToolCfg()

def L1CaloFEXSimCfg.eFEXTOBEtToolCfg (   flags)
Configure the eFEX TOB Et Tool which recalculates isolation variables
The tool requires eTowers as inputs (add eTowerMaker algorithm)

Definition at line 47 of file L1CaloFEXSimCfg.py.

47 def eFEXTOBEtToolCfg(flags):
48  """
49  Configure the eFEX TOB Et Tool which recalculates isolation variables
50  The tool requires eTowers as inputs (add eTowerMaker algorithm)
51  """
52  acc = ComponentAccumulator()
53 
54  # had to comment this out for now, because it causes a clash with the eTowerMakerFromEfexTowers algorithm
55  # if that gets scheduled
56  #eTowerMakerAlg = CompFactory.LVL1.eTowerMakerFromSuperCells('eTowerMakerFromSuperCells')
57  #acc.addEventAlgo(eTowerMakerAlg)
58 
59  eFEXTOBEtTool = CompFactory.LVL1.eFEXTOBEtTool
60  acc.setPrivateTools(eFEXTOBEtTool())
61 
62  return acc
63 

◆ L1CaloFEXSimCfg()

def L1CaloFEXSimCfg.L1CaloFEXSimCfg (   flags,
  eFexTowerInputs = ["L1_eFexDataTowers","L1_eFexEmulatedTowers"],
  deadMaterialCorrections = True,
  outputSuffix = "",
  simulateAltTau = False 
)

Definition at line 76 of file L1CaloFEXSimCfg.py.

76 def L1CaloFEXSimCfg(flags, eFexTowerInputs = ["L1_eFexDataTowers","L1_eFexEmulatedTowers"],deadMaterialCorrections=True, outputSuffix="", simulateAltTau=False):
77  from AthenaConfiguration.Enums import Format
78 
79  if not simulateAltTau and flags.DQ.Environment == "tier0":
80  simulateAltTau = True # require alt RoI at tier0 while validating new BDT alg against heuristic
81 
82  acc = ComponentAccumulator()
83 
84  log = logging.getLogger('L1CaloFEXSimCfg')
85 
86 
87  # Configure SCell inputs
88  sCellType = flags.Trigger.L1.L1CaloSuperCellContainerName
89  if flags.Input.Format is Format.POOL:
90  # Read SCell directly from input RDO file unless not necessary
91  if 'L1_eFexEmulatedTowers' in eFexTowerInputs and "L1_eFexEmulatedTowers" not in flags.Input.Collections:
92  acc.merge(ReadSCellFromPoolFileCfg(flags,sCellType))
93  if flags.Input.isMC:
94  # wont have eFexDataTowers available so remove that if it appears in input list
95  eFexTowerInputs = [l for l in eFexTowerInputs if l != "L1_eFexDataTowers"]
96  else:
97  from AthenaConfiguration.Enums import LHCPeriod
98  if flags.GeoModel.Run is LHCPeriod.Run2:
99  # Run-2 data inputs, emulate SCells
100  from TrigT1CaloFexPerf.EmulationConfig import emulateSC_Cfg
101  acc.merge(emulateSC_Cfg(flags))
102  else:
103  # Run-3+ data inputs, decode SCells from ByteStream if needed
104  if 'L1_eFexEmulatedTowers' in eFexTowerInputs and "L1_eFexEmulatedTowers" not in flags.Input.Collections:
105  acc.merge(ReadSCellFromByteStreamCfg(flags,key=sCellType))
106 
107  # Need also TriggerTowers as input .. so reconstruct if not in input collections already
108  if "xAODTriggerTowers" not in flags.Input.Collections:
109  acc.merge(TriggerTowersInputCfg(flags))
110 
111  if 'L1_eFexEmulatedTowers' in eFexTowerInputs and "L1_eFexEmulatedTowers" not in flags.Input.Collections:
112  acc.addEventAlgo( CompFactory.LVL1.eFexTowerBuilder("L1_eFexEmulatedTowers",CaloCellContainerReadKey=sCellType,ApplyMasking=not flags.Input.isMC) ) # builds the emulated towers to use as secondary input to eTowerMaker - name has to match what it gets called in other places to avoid conflict
113 
114  if flags.Trigger.L1.doeFex:
115  if eFexTowerInputs==[]:
116  # no input specified, so use the old eTowerMaker
117  eFEXInputs = CompFactory.LVL1.eTowerMakerFromSuperCells('eTowerMakerFromSuperCells',
118  eSuperCellTowerMapperTool = CompFactory.LVL1.eSuperCellTowerMapper('eSuperCellTowerMapper', SCell=sCellType))
119  else:
120  # if primary is DataTowers, check that caloInputs are enabled (if data towers not already available). If it isn't then skip this
121  if (not flags.Trigger.L1.doCaloInputs) and eFexTowerInputs[0] == "L1_eFexDataTowers" and ("L1_eFexDataTowers" not in flags.Input.Collections):
122  if len(eFexTowerInputs)==1:
123  log.fatal("Requested L1_eFexDataTowers but Trigger.L1.doCaloInputs is False, but not secondary collection given")
124  import sys
125  sys.exit(1)
126  log.warning("Requested L1_eFexDataTowers but Trigger.L1.doCaloInputs is False, falling back to secondary")
127  eFexTowerInputs[0] = eFexTowerInputs[1]
128  eFexTowerInputs[1] = ""
129  eFEXInputs = CompFactory.LVL1.eTowerMakerFromEfexTowers('eTowerMakerFromEfexTowers')
130  eFEXInputs.InputTowers = eFexTowerInputs[0]
131  eFEXInputs.SecondaryInputTowers = eFexTowerInputs[1] if len(eFexTowerInputs) > 1 else ""
132 
133  eFEX = CompFactory.LVL1.eFEXDriver('eFEXDriver')
134  eFEX.eFEXSysSimTool = CompFactory.LVL1.eFEXSysSim('eFEXSysSimTool')
135  eFEX.eFEXSysSimTool.eFEXSimTool = CompFactory.LVL1.eFEXSim('eFEXSimTool')
136  eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool = CompFactory.LVL1.eFEXFPGA('eFEXFPGATool')
137 
138  # read algoVersions from menu and configure the algo tools
139  from TrigConfigSvc.TriggerConfigAccess import getL1MenuAccess
140  L1_menu = getL1MenuAccess(flags)
141 
142  em_algoVersion = L1_menu.thresholdExtraInfo("eEM").get("algoVersion", 0)
143  tau_algoVersion = L1_menu.thresholdExtraInfo("eTAU").get("algoVersion", 0)
144 
145  from PathResolver import PathResolver
146  bdtConfigJsonPath = PathResolver.FindCalibFile("Run3L1CaloSimulation/L1CaloFEXSim/eTAU/" + ("bdt_config_v17.json" if tau_algoVersion==2 else "bdt_config_v16.json"))
147 
148  eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXegAlgoTool = CompFactory.LVL1.eFEXegAlgo('eFEXegAlgoTool',algoVersion=em_algoVersion,dmCorr=deadMaterialCorrections) # only dmCorrections in data for now
149  eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXtauAlgoTool = CompFactory.LVL1.eFEXtauAlgo("eFEXtauAlgo") # heuristic algorithm
150  eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXtauBDTAlgoTool = CompFactory.LVL1.eFEXtauBDTAlgo("eFEXtauBDTAlgo", BDTJsonConfigPath=bdtConfigJsonPath)
151  # To dump supercells as a decorator to the tau TOB, set
152  # eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXtauAlgoTool.DumpSuperCells = True
153  # and/or
154  # eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXtauBDTAlgoTool.DumpSuperCells = True
155 
156 
157 
158 
159  # load noise cuts and dm corrections when running on data
160  from IOVDbSvc.IOVDbSvcConfig import addFolders#, addFoldersSplitOnline
161 
162  acc.merge(addFolders(flags,"/TRIGGER/L1Calo/V1/Calibration/EfexNoiseCuts","TRIGGER_OFL" if flags.Input.isMC else "TRIGGER_ONL",className="CondAttrListCollection"))
163  eFEXInputs.NoiseCutsKey = "/TRIGGER/L1Calo/V1/Calibration/EfexNoiseCuts"
164  acc.merge(addFolders(flags,"/TRIGGER/L1Calo/V1/Calibration/EfexEnergyCalib","TRIGGER_OFL" if flags.Input.isMC else "TRIGGER_ONL",className="CondAttrListCollection")) # dmCorr from DB!
165  eFEX.eFEXSysSimTool.eFEXSimTool.eFEXFPGATool.eFEXegAlgoTool.DMCorrectionsKey = "/TRIGGER/L1Calo/V1/Calibration/EfexEnergyCalib"
166 
167  acc.addEventAlgo(eFEXInputs)
168  acc.addEventAlgo(eFEX)
169 
170  if simulateAltTau:
171  eFEX.eFEXSysSimTool.Key_eFexAltTauOutputContainer="L1_eTauRoIAlt"
172  eFEX.eFEXSysSimTool.Key_eFexAltTauxTOBOutputContainer="L1_eTauxRoIAlt"
173 
174 
175  if flags.Trigger.L1.dojFex:
176 
177  if flags.Input.Format is not Format.POOL:
178  from L1CaloFEXByteStream.L1CaloFEXByteStreamConfig import jFexInputByteStreamToolCfg
179  inputjFexTool = acc.popToolsAndMerge(jFexInputByteStreamToolCfg(flags, 'jFexInputBSDecoderTool'))
180 
181  maybeMissingRobs = []
182  decoderTools = []
183 
184  for module_id in inputjFexTool.ROBIDs:
185  maybeMissingRobs.append(module_id)
186 
187  decoderTools += [inputjFexTool]
188  decoderAlg = CompFactory.L1TriggerByteStreamDecoderAlg(name="L1TriggerByteStreamDecoder", DecoderTools=[inputjFexTool], MaybeMissingROBs=maybeMissingRobs)
189  acc.addEventAlgo(decoderAlg)
190 
191  if "L1_jFexEmulatedTowers" not in flags.Input.Collections:
192  from L1CaloFEXAlgos.FexEmulatedTowersConfig import jFexEmulatedTowersCfg
193  acc.merge(jFexEmulatedTowersCfg(flags))
194 
195  from L1CaloFEXCond.L1CaloFEXCondConfig import jFexDBConfig
196  acc.merge(jFexDBConfig(flags))
197 
198  jFEXInputs = CompFactory.LVL1.jTowerMakerFromJfexTowers('jTowerMakerFromJfexTowers')
199  jFEXInputs.IsMC = flags.Input.isMC
200  jFEXInputs.jSuperCellTowerMapperTool = CompFactory.LVL1.jSuperCellTowerMapper('jSuperCellTowerMapper', SCell=sCellType)
201  jFEXInputs.jSuperCellTowerMapperTool.SCellMasking = not flags.Input.isMC
202  # need to set an IsMC property on a tool deep inside the toolstack:
203  jFEX = CompFactory.LVL1.jFEXDriver('jFEXDriver',jFEXSysSimTool=CompFactory.LVL1.jFEXSysSim(
204  'jFEXSysSimTool',jFEXSimTool=CompFactory.LVL1.jFEXSim(
205  'LVL1::jFEXSim',jFEXFPGATool=CompFactory.LVL1.jFEXFPGA(
206  'LVL1::jFEXFPGA',IjFEXFormTOBsTool=CompFactory.LVL1.jFEXFormTOBs(
207  'LVL1::jFEXFormTOBs',IsMC=flags.Input.isMC)))))
208  acc.addEventAlgo(jFEXInputs)
209  acc.addEventAlgo(jFEX)
210 
211 
212  if flags.Trigger.L1.dogFex:
213 
214  if flags.Input.Format is not Format.POOL:
215  from L1CaloFEXByteStream.L1CaloFEXByteStreamConfig import gFexInputByteStreamToolCfg
216  inputgFexTool = acc.popToolsAndMerge(gFexInputByteStreamToolCfg(flags, 'gFexInputBSDecoderTool'))
217 
218  maybeMissingRobs = []
219  decoderTools = []
220 
221  for module_id in inputgFexTool.ROBIDs:
222  maybeMissingRobs.append(module_id)
223 
224  decoderTools += [inputgFexTool]
225  decoderAlg = CompFactory.L1TriggerByteStreamDecoderAlg(name="L1TriggerByteStreamDecoder", DecoderTools=[inputgFexTool], MaybeMissingROBs=maybeMissingRobs)
226  acc.addEventAlgo(decoderAlg)
227 
228  gFEXInputs = CompFactory.LVL1.gTowerMakerFromGfexTowers('gTowerMakerFromGfexTowers')
229  gFEXInputs.IsMC = flags.Input.isMC
230  gFEXInputs.gSuperCellTowerMapperTool = CompFactory.LVL1.gSuperCellTowerMapper('gSuperCellTowerMapper', SCell=sCellType)
231  gFEXInputs.gSuperCellTowerMapperTool.SCellMasking = not flags.Input.isMC
232 
233  gFEXInputs50 = CompFactory.LVL1.gTowerMakerFromGfexTowers('gTowerMakerFromGfexTowers50')
234  gFEXInputs50.InputDataTowers = "L1_gFexDataTowers50"
235  gFEXInputs50.MyGTowers = "gTower50Container"
236  gFEXInputs50.IsMC = flags.Input.isMC
237  gFEXInputs50.gSuperCellTowerMapperTool = CompFactory.LVL1.gSuperCellTowerMapper('gSuperCellTowerMapper50', SCell=sCellType)
238  gFEXInputs50.gSuperCellTowerMapperTool.SCellMasking = not flags.Input.isMC
239 
240  from L1CaloFEXCond.L1CaloFEXCondConfig import gFexDBConfig
241  acc.merge(gFexDBConfig(flags))
242 
243  gFEX = CompFactory.LVL1.gFEXDriver('gFEXDriver')
244  gFEX.gFEXSysSimTool = CompFactory.LVL1.gFEXSysSim('gFEXSysSimTool')
245  acc.addEventAlgo(gFEXInputs)
246  acc.addEventAlgo(gFEXInputs50)
247  acc.addEventAlgo(gFEX)
248 
249  if flags.Trigger.doHLT:
250  # This will be the case when the offline simulation is actually being run as part of MC
251  # as opposed to running another pass of the simulation on either an MC or data file (e.g in DAOD)
252  # Check the RoI EDM containers are registered in HLT outputs
253  from TrigEDMConfig.TriggerEDM import recordable
254  def check(key):
255  assert key==recordable(key), f'recordable() check failed for {key}'
256  if flags.Trigger.L1.doeFex:
257  check(eFEX.eFEXSysSimTool.Key_eFexEMOutputContainer)
258  check(eFEX.eFEXSysSimTool.Key_eFexTauOutputContainer)
259  if (simulateAltTau):
260  check(eFEX.eFEXSysSimTool.Key_eFexAltTauOutputContainer)
261  if flags.Trigger.L1.dojFex:
262  check(jFEX.jFEXSysSimTool.Key_jFexSRJetOutputContainer)
263  check(jFEX.jFEXSysSimTool.Key_jFexLRJetOutputContainer)
264  check(jFEX.jFEXSysSimTool.Key_jFexTauOutputContainer)
265  check(jFEX.jFEXSysSimTool.Key_jFexSumETOutputContainer)
266  check(jFEX.jFEXSysSimTool.Key_jFexMETOutputContainer)
267  check(jFEX.jFEXSysSimTool.Key_jFexFwdElOutputContainer)
268  if flags.Trigger.L1.dogFex:
269  check(gFEX.gFEXSysSimTool.Key_gFexSRJetOutputContainer)
270  check(gFEX.gFEXSysSimTool.Key_gFexLRJetOutputContainer)
271  check(gFEX.gFEXSysSimTool.Key_gFexRhoOutputContainer)
272  check(gFEX.gFEXSysSimTool.Key_gScalarEJwojOutputContainer)
273  check(gFEX.gFEXSysSimTool.Key_gMETComponentsJwojOutputContainer)
274  check(gFEX.gFEXSysSimTool.Key_gMHTComponentsJwojOutputContainer)
275  check(gFEX.gFEXSysSimTool.Key_gMSTComponentsJwojOutputContainer)
276  check(gFEX.gFEXSysSimTool.Key_gMETComponentsNoiseCutOutputContainer)
277  check(gFEX.gFEXSysSimTool.Key_gMETComponentsRmsOutputContainer)
278  check(gFEX.gFEXSysSimTool.Key_gScalarENoiseCutOutputContainer)
279  check(gFEX.gFEXSysSimTool.Key_gScalarERmsOutputContainer)
280  else:
281  # Rename outputs for monitoring resimulation to avoid clash with standard SG keys
282  def getSimHandle(key):
283  """
284  Add 'Sim' to the standard handle path and include user-specified suffix
285  """
286  key += outputSuffix
287  if not key.endswith("Sim"): key += "Sim"
288  return key
289 
290  if flags.Trigger.L1.doeFex:
291  eFEX.eFEXSysSimTool.Key_eFexEMOutputContainer=getSimHandle("L1_eEMRoI")
292  eFEX.eFEXSysSimTool.Key_eFexTauOutputContainer=getSimHandle("L1_eTauRoI")
293  eFEX.eFEXSysSimTool.Key_eFexEMxTOBOutputContainer=getSimHandle("L1_eEMxRoI")
294  eFEX.eFEXSysSimTool.Key_eFexTauxTOBOutputContainer=getSimHandle("L1_eTauxRoI")
295  if simulateAltTau:
296  eFEX.eFEXSysSimTool.Key_eFexAltTauOutputContainer=getSimHandle("L1_eTauRoIAlt")
297  eFEX.eFEXSysSimTool.Key_eFexAltTauxTOBOutputContainer=getSimHandle("L1_eTauxRoIAlt")
298 
299  if flags.Trigger.L1.dojFex:
300  jFEX.jFEXSysSimTool.Key_jFexSRJetOutputContainer=getSimHandle("L1_jFexSRJetRoI")
301  jFEX.jFEXSysSimTool.Key_jFexLRJetOutputContainer=getSimHandle("L1_jFexLRJetRoI")
302  jFEX.jFEXSysSimTool.Key_jFexTauOutputContainer=getSimHandle("L1_jFexTauRoI")
303  jFEX.jFEXSysSimTool.Key_jFexSumETOutputContainer=getSimHandle("L1_jFexSumETRoI")
304  jFEX.jFEXSysSimTool.Key_jFexMETOutputContainer=getSimHandle("L1_jFexMETRoI")
305  jFEX.jFEXSysSimTool.Key_jFexFwdElOutputContainer=getSimHandle("L1_jFexFwdElRoI")
306  jFEX.jFEXSysSimTool.Key_xTobOutKey_jJ=getSimHandle("L1_jFexSRJetxRoI")
307  jFEX.jFEXSysSimTool.Key_xTobOutKey_jLJ=getSimHandle("L1_jFexLRJetxRoI")
308  jFEX.jFEXSysSimTool.Key_xTobOutKey_jTau=getSimHandle("L1_jFexTauxRoI")
309  jFEX.jFEXSysSimTool.Key_xTobOutKey_jEM=getSimHandle("L1_jFexFwdElxRoI")
310  if flags.Trigger.L1.dogFex:
311  gFEX.gFEXSysSimTool.Key_gFexSRJetOutputContainer=getSimHandle("L1_gFexSRJetRoI")
312  gFEX.gFEXSysSimTool.Key_gFexLRJetOutputContainer=getSimHandle("L1_gFexLRJetRoI")
313  gFEX.gFEXSysSimTool.Key_gFexRhoOutputContainer=getSimHandle("L1_gFexRhoRoI")
314  gFEX.gFEXSysSimTool.Key_gScalarEJwojOutputContainer=getSimHandle("L1_gScalarEJwoj")
315  gFEX.gFEXSysSimTool.Key_gMETComponentsJwojOutputContainer=getSimHandle("L1_gMETComponentsJwoj")
316  gFEX.gFEXSysSimTool.Key_gMHTComponentsJwojOutputContainer=getSimHandle("L1_gMHTComponentsJwoj")
317  gFEX.gFEXSysSimTool.Key_gMSTComponentsJwojOutputContainer=getSimHandle("L1_gMSTComponentsJwoj")
318  gFEX.gFEXSysSimTool.Key_gMETComponentsNoiseCutOutputContainer=getSimHandle("L1_gMETComponentsNoiseCut")
319  gFEX.gFEXSysSimTool.Key_gMETComponentsRmsOutputContainer=getSimHandle("L1_gMETComponentsRms")
320  gFEX.gFEXSysSimTool.Key_gScalarENoiseCutOutputContainer=getSimHandle("L1_gScalarENoiseCut")
321  gFEX.gFEXSysSimTool.Key_gScalarERmsOutputContainer=getSimHandle("L1_gScalarERms")
322 
323  return acc
324 
325 

◆ ReadSCellFromByteStreamCfg()

def L1CaloFEXSimCfg.ReadSCellFromByteStreamCfg (   flags,
  key = 'SCell',
  SCmask = True 
)

Definition at line 24 of file L1CaloFEXSimCfg.py.

24 def ReadSCellFromByteStreamCfg(flags, key='SCell', SCmask=True):
26 
27  # Geometry, conditions and cabling setup
28  from TileGeoModel.TileGMConfig import TileGMCfg
29  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
30  from LArCabling.LArCablingConfig import LArLATOMEMappingCfg
31  from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
32  from LArCellRec.LArRAWtoSuperCellConfig import LArRAWtoSuperCellCfg
33  acc.merge(TileGMCfg(flags))
34  acc.merge(LArGMCfg(flags))
35  acc.merge(LArLATOMEMappingCfg(flags))
36  acc.merge(LArOnOffIdMappingSCCfg(flags))
37 
38  # Conversion from ByteStream to LArRawSCContainer
39  decoderTool = CompFactory.LArLATOMEDecoder('LArLATOMEDecoder', ProtectSourceId = True)
40  decoderAlg = CompFactory.LArRawSCDataReadingAlg('LArRawSCDataReadingAlg', LATOMEDecoder=decoderTool)
41  acc.addEventAlgo(decoderAlg)
42 
43  acc.merge(LArRAWtoSuperCellCfg(flags,mask=SCmask, SCellContainerOut=key) )
44 
45  return acc
46 

◆ ReadSCellFromPoolFileCfg()

def L1CaloFEXSimCfg.ReadSCellFromPoolFileCfg (   flags,
  key = 'SCell' 
)
Configure reading SCell container from a Pool file like RDO or ESD

Definition at line 8 of file L1CaloFEXSimCfg.py.

8 def ReadSCellFromPoolFileCfg(flags, key='SCell'):
9  '''Configure reading SCell container from a Pool file like RDO or ESD'''
10  acc = ComponentAccumulator()
11 
12  # Ensure SCell container is in the input file
13  # TODO this needs to be uncommented once all MC files used in tests contain SCells
14  # e.g. test_trig_mc_v1DevHI_build.py
15  # assert key in flags.Input.Collections or not flags.Input.Collections, 'MC input file is required to contain SCell container'
16 
17  # Need geometry and conditions for the SCell converter from POOL
18  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
19  acc.merge(LArGMCfg(flags))
20 
21  return acc
22 
23 

◆ TriggerTowersInputCfg()

def L1CaloFEXSimCfg.TriggerTowersInputCfg (   flags)
Configuration to provide TriggerTowers as input to the Fex simulation

Definition at line 64 of file L1CaloFEXSimCfg.py.

64 def TriggerTowersInputCfg(flags):
65  '''Configuration to provide TriggerTowers as input to the Fex simulation'''
66  from AthenaConfiguration.Enums import Format
67  if flags.Input.Format is Format.POOL:
68  # For POOL files produce TT with R2TTMaker
69  from TrigT1CaloSim.TrigT1CaloSimRun2Config import Run2TriggerTowerMakerCfg
70  return Run2TriggerTowerMakerCfg(flags)
71  else:
72  # For RAW decode TT from ByteStream
73  from TrigT1CaloByteStream.LVL1CaloRun2ByteStreamConfig import LVL1CaloRun2ReadBSCfg
74  return LVL1CaloRun2ReadBSCfg(flags)
75 

Variable Documentation

◆ acc

L1CaloFEXSimCfg.acc

Definition at line 390 of file L1CaloFEXSimCfg.py.

◆ action

L1CaloFEXSimCfg.action

Definition at line 337 of file L1CaloFEXSimCfg.py.

◆ AODFileName

L1CaloFEXSimCfg.AODFileName

Definition at line 368 of file L1CaloFEXSimCfg.py.

◆ args

L1CaloFEXSimCfg.args

Definition at line 348 of file L1CaloFEXSimCfg.py.

◆ AtlasVersion

L1CaloFEXSimCfg.AtlasVersion

Definition at line 362 of file L1CaloFEXSimCfg.py.

◆ CheckDependencies

L1CaloFEXSimCfg.CheckDependencies

Definition at line 373 of file L1CaloFEXSimCfg.py.

◆ default

L1CaloFEXSimCfg.default

Definition at line 334 of file L1CaloFEXSimCfg.py.

◆ doLVL1

L1CaloFEXSimCfg.doLVL1

Definition at line 376 of file L1CaloFEXSimCfg.py.

◆ EDMVersion

L1CaloFEXSimCfg.EDMVersion

Definition at line 375 of file L1CaloFEXSimCfg.py.

◆ enableL1CaloPhase1

L1CaloFEXSimCfg.enableL1CaloPhase1

Definition at line 377 of file L1CaloFEXSimCfg.py.

◆ FexEDMList

L1CaloFEXSimCfg.FexEDMList

Definition at line 406 of file L1CaloFEXSimCfg.py.

◆ Files

L1CaloFEXSimCfg.Files

Definition at line 359 of file L1CaloFEXSimCfg.py.

◆ flags

L1CaloFEXSimCfg.flags

Definition at line 357 of file L1CaloFEXSimCfg.py.

◆ GlobalTag

L1CaloFEXSimCfg.GlobalTag

Definition at line 364 of file L1CaloFEXSimCfg.py.

◆ help

L1CaloFEXSimCfg.help

Definition at line 335 of file L1CaloFEXSimCfg.py.

◆ isOnline

L1CaloFEXSimCfg.isOnline

Definition at line 358 of file L1CaloFEXSimCfg.py.

◆ ItemList

L1CaloFEXSimCfg.ItemList

Definition at line 427 of file L1CaloFEXSimCfg.py.

◆ MaxEvents

L1CaloFEXSimCfg.MaxEvents

Definition at line 369 of file L1CaloFEXSimCfg.py.

◆ metavar

L1CaloFEXSimCfg.metavar

Definition at line 333 of file L1CaloFEXSimCfg.py.

◆ NumConcurrentEvents

L1CaloFEXSimCfg.NumConcurrentEvents

Definition at line 371 of file L1CaloFEXSimCfg.py.

◆ NumThreads

L1CaloFEXSimCfg.NumThreads

Definition at line 370 of file L1CaloFEXSimCfg.py.

◆ OutputLevel

L1CaloFEXSimCfg.OutputLevel

Definition at line 435 of file L1CaloFEXSimCfg.py.

◆ p

L1CaloFEXSimCfg.p

Definition at line 331 of file L1CaloFEXSimCfg.py.

◆ sc

L1CaloFEXSimCfg.sc

Save and optionally run the configuration.

Definition at line 445 of file L1CaloFEXSimCfg.py.

◆ ShowDataDeps

L1CaloFEXSimCfg.ShowDataDeps

Definition at line 372 of file L1CaloFEXSimCfg.py.

◆ ShowDataFlow

L1CaloFEXSimCfg.ShowDataFlow

Definition at line 374 of file L1CaloFEXSimCfg.py.

◆ toggle_geometry

L1CaloFEXSimCfg.toggle_geometry

Definition at line 382 of file L1CaloFEXSimCfg.py.

◆ triggerConfig

L1CaloFEXSimCfg.triggerConfig

Definition at line 378 of file L1CaloFEXSimCfg.py.

◆ type

L1CaloFEXSimCfg.type

Definition at line 341 of file L1CaloFEXSimCfg.py.

L1CaloFEXSimCfg.ReadSCellFromByteStreamCfg
def ReadSCellFromByteStreamCfg(flags, key='SCell', SCmask=True)
Definition: L1CaloFEXSimCfg.py:24
L1CaloFEXCondConfig.jFexDBConfig
def jFexDBConfig(flags, name="jFEXCondAlgo")
Definition: L1CaloFEXCondConfig.py:8
PathResolver::FindCalibFile
static std::string FindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.h:108
L1CaloFEXSimCfg.TriggerTowersInputCfg
def TriggerTowersInputCfg(flags)
Definition: L1CaloFEXSimCfg.py:64
LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
FEXReprocessingRun3.getSimHandle
def getSimHandle(key)
Definition: FEXReprocessingRun3.py:87
python.EmulationConfig.emulateSC_Cfg
def emulateSC_Cfg(flags, CellsIn="SeedLessFS", CellsOut="")
Definition: EmulationConfig.py:3
LArRAWtoSuperCellConfig.LArRAWtoSuperCellCfg
def LArRAWtoSuperCellCfg(flags, name="LArRAWtoSuperCell", mask=True, SCellContainerOut="", SCIn="", doReco=False, bcidShift=0)
Definition: LArRAWtoSuperCellConfig.py:8
L1CaloFEXSimCfg.L1CaloFEXSimCfg
def L1CaloFEXSimCfg(flags, eFexTowerInputs=["L1_eFexDataTowers","L1_eFexEmulatedTowers"], deadMaterialCorrections=True, outputSuffix="", simulateAltTau=False)
Definition: L1CaloFEXSimCfg.py:76
LVL1CaloRun2ByteStreamConfig.LVL1CaloRun2ReadBSCfg
def LVL1CaloRun2ReadBSCfg(flags, forRoIBResultToxAOD=False)
Definition: LVL1CaloRun2ByteStreamConfig.py:121
L1CaloFEXByteStreamConfig.jFexInputByteStreamToolCfg
def jFexInputByteStreamToolCfg(flags, name, *writeBS=False)
Definition: L1CaloFEXByteStreamConfig.py:232
LArCablingConfig.LArLATOMEMappingCfg
def LArLATOMEMappingCfg(configFlags)
Definition: LArCablingConfig.py:95
python.TriggerConfigAccess.getL1MenuAccess
L1MenuAccess getL1MenuAccess(flags=None)
Definition: TriggerConfigAccess.py:129
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:81
L1CaloFEXSimCfg.eFEXTOBEtToolCfg
def eFEXTOBEtToolCfg(flags)
Definition: L1CaloFEXSimCfg.py:47
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
L1CaloFEXSimCfg.ReadSCellFromPoolFileCfg
def ReadSCellFromPoolFileCfg(flags, key='SCell')
Definition: L1CaloFEXSimCfg.py:8
L1CaloFEXByteStreamConfig.gFexInputByteStreamToolCfg
def gFexInputByteStreamToolCfg(flags, name, *writeBS=False)
Definition: L1CaloFEXByteStreamConfig.py:275
LArNewCalib_Delay_OFC_Cali.check
check
Definition: LArNewCalib_Delay_OFC_Cali.py:267
TrigT1CaloSimRun2Config.Run2TriggerTowerMakerCfg
def Run2TriggerTowerMakerCfg(flags, name='Run2TriggerTowerMaker25ns')
Definition: TrigT1CaloSimRun2Config.py:10
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
FexEmulatedTowersConfig.jFexEmulatedTowersCfg
def jFexEmulatedTowersCfg(flags, name="jFexEmulatedTowerMaker", writeKey="L1_jFexEmulatedTowers")
Definition: FexEmulatedTowersConfig.py:9
L1CaloFEXCondConfig.gFexDBConfig
def gFexDBConfig(flags, name="gFEXCondAlgo")
Definition: L1CaloFEXCondConfig.py:34
python.TriggerEDM.recordable
def recordable(arg, runVersion=3)
Definition: TriggerEDM.py:34
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7