ATLAS Offline Software
Functions
python.FPEAndCoreDumpConfig Namespace Reference

Functions

def FPEAndCoreDumpCfg (flags)
 

Function Documentation

◆ FPEAndCoreDumpCfg()

def python.FPEAndCoreDumpConfig.FPEAndCoreDumpCfg (   flags)

Definition at line 11 of file FPEAndCoreDumpConfig.py.

11 def FPEAndCoreDumpCfg(flags):
13  cds=CompFactory.CoreDumpSvc(FastStackTrace=True)
14 
15  #AthGeneration & AthAnalysis don't contain the FPEAuditor
16  if flags.Exec.FPE != -2 and hasattr(CompFactory,"FPEAuditor"):
17  #If we run with FPEAuditor, the CoreDumpSvc should not catch SIGFPE
18  #(but otherwise use the default list of signals)
19  signalsToCatch=[int(i) for i in cds.Signals] # Get the default
20 
21  if flags.Exec.FPE<0:
22  cfg.addService(CompFactory.FPEControlSvc(),create=True)
23  else:
24  cfg.addAuditor(CompFactory.FPEAuditor(NStacktracesOnFPE=flags.Exec.FPE))
25  from signal import SIGFPE
26  signalsToCatch.remove(SIGFPE)
27  cds.Signals=signalsToCatch
28  pass
29 
30  cfg.addService(cds,create=True)
31 
32  return cfg
33 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.FPEAndCoreDumpConfig.FPEAndCoreDumpCfg
def FPEAndCoreDumpCfg(flags)
Definition: FPEAndCoreDumpConfig.py:11