ATLAS Offline Software
Classes | Functions | Variables
TileDQstatusToolTestConfig Namespace Reference

Classes

class  TestAlg
 
class  TileFragHash
 

Functions

def compare_args (args, pat)
 
def check_exc (args, exclist)
 
def check_flag (dq, mname, exp, exc, *args)
 
def TileDQstatusToolTestCfg (flags)
 

Variables

 BEAM_TDC_FRAG
 
 BEAM_ADC_FRAG
 
 MUON_ADC_FRAG
 
 ADDR_ADC_FRAG
 
 LASE_PTN_FRAG
 
 LASE_ADC_FRAG
 
 ADD_FADC_FRAG
 
 ECAL_ADC_FRAG
 
 DIGI_PAR_FRAG
 
 LASER_OBJ_FRAG
 
 hits_0
 
 flags
 
 Files
 
 RunType
 
 MaxEvents
 
 cfg
 
 withDetails
 
 sc
 

Function Documentation

◆ check_exc()

def TileDQstatusToolTestConfig.check_exc (   args,
  exclist 
)

Definition at line 120 of file TileDQstatusToolTestConfig.py.

120 def check_exc (args, exclist):
121  for exc in exclist:
122  if compare_args (args, exc): return True
123  return False

◆ check_flag()

def TileDQstatusToolTestConfig.check_flag (   dq,
  mname,
  exp,
  exc,
args 
)

Definition at line 124 of file TileDQstatusToolTestConfig.py.

124 def check_flag (dq, mname, exp, exc, *args):
125  ret = getattr(dq, mname)(*args)
126  if bool(ret) == bool(exp): return
127  if check_exc (args, exc.get(mname, [])): return
128  print ('xxx', mname, ret, exp, *args)
129  assert 0
130  return
131 
132 

◆ compare_args()

def TileDQstatusToolTestConfig.compare_args (   args,
  pat 
)

Definition at line 114 of file TileDQstatusToolTestConfig.py.

114 def compare_args (args, pat):
115  if len(args) != len(pat): return False
116  for i in range(len(args)):
117  if args[i] != pat[i] and pat[i] != -1:
118  return False
119  return True

◆ TileDQstatusToolTestCfg()

def TileDQstatusToolTestConfig.TileDQstatusToolTestCfg (   flags)

Definition at line 497 of file TileDQstatusToolTestConfig.py.

497 def TileDQstatusToolTestCfg(flags):
498 
499  acc = ComponentAccumulator()
500 
501  from TileGeoModel.TileGMConfig import TileGMCfg
502  acc.merge(TileGMCfg(flags))
503 
504  from RngComps.RngCompsConfig import AthRNGSvcCfg
505  acc.merge( AthRNGSvcCfg(flags) )
506 
507  from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
508  acc.merge( TileBadChannelsCondAlgCfg(flags) )
509 
510  TileDQstatusTool = CompFactory.TileDQstatusTool
511  acc.addPublicTool( TileDQstatusTool('tool1') )
512  acc.addPublicTool( TileDQstatusTool('tool2', SimulateTrips=True) )
513 
514  acc.addEventAlgo( TestAlg('test1') )
515 
516  return acc
517 
518 

Variable Documentation

◆ ADD_FADC_FRAG

TileDQstatusToolTestConfig.ADD_FADC_FRAG

Definition at line 46 of file TileDQstatusToolTestConfig.py.

◆ ADDR_ADC_FRAG

TileDQstatusToolTestConfig.ADDR_ADC_FRAG

Definition at line 43 of file TileDQstatusToolTestConfig.py.

◆ BEAM_ADC_FRAG

TileDQstatusToolTestConfig.BEAM_ADC_FRAG

Definition at line 41 of file TileDQstatusToolTestConfig.py.

◆ BEAM_TDC_FRAG

TileDQstatusToolTestConfig.BEAM_TDC_FRAG

Definition at line 40 of file TileDQstatusToolTestConfig.py.

◆ cfg

TileDQstatusToolTestConfig.cfg

Definition at line 538 of file TileDQstatusToolTestConfig.py.

◆ DIGI_PAR_FRAG

TileDQstatusToolTestConfig.DIGI_PAR_FRAG

Definition at line 48 of file TileDQstatusToolTestConfig.py.

◆ ECAL_ADC_FRAG

TileDQstatusToolTestConfig.ECAL_ADC_FRAG

Definition at line 47 of file TileDQstatusToolTestConfig.py.

◆ Files

TileDQstatusToolTestConfig.Files

Definition at line 530 of file TileDQstatusToolTestConfig.py.

◆ flags

TileDQstatusToolTestConfig.flags

Definition at line 529 of file TileDQstatusToolTestConfig.py.

◆ hits_0

TileDQstatusToolTestConfig.hits_0

Definition at line 52 of file TileDQstatusToolTestConfig.py.

◆ LASE_ADC_FRAG

TileDQstatusToolTestConfig.LASE_ADC_FRAG

Definition at line 45 of file TileDQstatusToolTestConfig.py.

◆ LASE_PTN_FRAG

TileDQstatusToolTestConfig.LASE_PTN_FRAG

Definition at line 44 of file TileDQstatusToolTestConfig.py.

◆ LASER_OBJ_FRAG

TileDQstatusToolTestConfig.LASER_OBJ_FRAG

Definition at line 49 of file TileDQstatusToolTestConfig.py.

◆ MaxEvents

TileDQstatusToolTestConfig.MaxEvents

Definition at line 532 of file TileDQstatusToolTestConfig.py.

◆ MUON_ADC_FRAG

TileDQstatusToolTestConfig.MUON_ADC_FRAG

Definition at line 42 of file TileDQstatusToolTestConfig.py.

◆ RunType

TileDQstatusToolTestConfig.RunType

Definition at line 531 of file TileDQstatusToolTestConfig.py.

◆ sc

TileDQstatusToolTestConfig.sc

Definition at line 550 of file TileDQstatusToolTestConfig.py.

◆ withDetails

TileDQstatusToolTestConfig.withDetails

Definition at line 547 of file TileDQstatusToolTestConfig.py.

TileDQstatusToolTestConfig.check_flag
def check_flag(dq, mname, exp, exc, *args)
Definition: TileDQstatusToolTestConfig.py:124
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileDQstatusToolTestConfig.compare_args
def compare_args(args, pat)
Definition: TileDQstatusToolTestConfig.py:114
TileDQstatusTool
Definition: TileDQstatusTool.h:30
TileDQstatusToolTestConfig.TileDQstatusToolTestCfg
def TileDQstatusToolTestCfg(flags)
Definition: TileDQstatusToolTestConfig.py:497
python.TileBadChannelsConfig.TileBadChannelsCondAlgCfg
def TileBadChannelsCondAlgCfg(flags, **kwargs)
Definition: TileBadChannelsConfig.py:10
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
TileDQstatusToolTestConfig.check_exc
def check_exc(args, exclist)
Definition: TileDQstatusToolTestConfig.py:120
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51