ATLAS Offline Software
Loading...
Searching...
No Matches
TileDQstatusToolTestConfig Namespace Reference

Classes

class  TestAlg
class  TileFragHash

Functions

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

Variables

int BEAM_TDC_FRAG = 0x000
int BEAM_ADC_FRAG = 0x001
int MUON_ADC_FRAG = 0x002
int ADDR_ADC_FRAG = 0x003
int LASE_PTN_FRAG = 0x004
int LASE_ADC_FRAG = 0x005
int ADD_FADC_FRAG = 0x006
int ECAL_ADC_FRAG = 0x007
int DIGI_PAR_FRAG = 0x0ff
int LASER_OBJ_FRAG = 0x016
list hits_0
 flags = initConfigFlags()
 Files
 RunType
 MaxEvents
 cfg = MainServicesCfg(flags)
 withDetails
 sc = cfg.run()

Function Documentation

◆ check_exc()

TileDQstatusToolTestConfig.check_exc ( args,
exclist )

Definition at line 120 of file TileDQstatusToolTestConfig.py.

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

◆ check_flag()

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

Definition at line 124 of file TileDQstatusToolTestConfig.py.

124def 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()

TileDQstatusToolTestConfig.compare_args ( args,
pat )

Definition at line 114 of file TileDQstatusToolTestConfig.py.

114def 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()

TileDQstatusToolTestConfig.TileDQstatusToolTestCfg ( flags)

Definition at line 497 of file TileDQstatusToolTestConfig.py.

497def 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

int TileDQstatusToolTestConfig.ADD_FADC_FRAG = 0x006

Definition at line 46 of file TileDQstatusToolTestConfig.py.

◆ ADDR_ADC_FRAG

int TileDQstatusToolTestConfig.ADDR_ADC_FRAG = 0x003

Definition at line 43 of file TileDQstatusToolTestConfig.py.

◆ BEAM_ADC_FRAG

int TileDQstatusToolTestConfig.BEAM_ADC_FRAG = 0x001

Definition at line 41 of file TileDQstatusToolTestConfig.py.

◆ BEAM_TDC_FRAG

int TileDQstatusToolTestConfig.BEAM_TDC_FRAG = 0x000

Definition at line 40 of file TileDQstatusToolTestConfig.py.

◆ cfg

TileDQstatusToolTestConfig.cfg = MainServicesCfg(flags)

Definition at line 538 of file TileDQstatusToolTestConfig.py.

◆ DIGI_PAR_FRAG

int TileDQstatusToolTestConfig.DIGI_PAR_FRAG = 0x0ff

Definition at line 48 of file TileDQstatusToolTestConfig.py.

◆ ECAL_ADC_FRAG

int TileDQstatusToolTestConfig.ECAL_ADC_FRAG = 0x007

Definition at line 47 of file TileDQstatusToolTestConfig.py.

◆ Files

TileDQstatusToolTestConfig.Files

Definition at line 530 of file TileDQstatusToolTestConfig.py.

◆ flags

TileDQstatusToolTestConfig.flags = initConfigFlags()

Definition at line 529 of file TileDQstatusToolTestConfig.py.

◆ hits_0

list TileDQstatusToolTestConfig.hits_0

Definition at line 52 of file TileDQstatusToolTestConfig.py.

◆ LASE_ADC_FRAG

int TileDQstatusToolTestConfig.LASE_ADC_FRAG = 0x005

Definition at line 45 of file TileDQstatusToolTestConfig.py.

◆ LASE_PTN_FRAG

int TileDQstatusToolTestConfig.LASE_PTN_FRAG = 0x004

Definition at line 44 of file TileDQstatusToolTestConfig.py.

◆ LASER_OBJ_FRAG

int TileDQstatusToolTestConfig.LASER_OBJ_FRAG = 0x016

Definition at line 49 of file TileDQstatusToolTestConfig.py.

◆ MaxEvents

TileDQstatusToolTestConfig.MaxEvents

Definition at line 532 of file TileDQstatusToolTestConfig.py.

◆ MUON_ADC_FRAG

int TileDQstatusToolTestConfig.MUON_ADC_FRAG = 0x002

Definition at line 42 of file TileDQstatusToolTestConfig.py.

◆ RunType

TileDQstatusToolTestConfig.RunType

Definition at line 531 of file TileDQstatusToolTestConfig.py.

◆ sc

TileDQstatusToolTestConfig.sc = cfg.run()

Definition at line 550 of file TileDQstatusToolTestConfig.py.

◆ withDetails

TileDQstatusToolTestConfig.withDetails

Definition at line 547 of file TileDQstatusToolTestConfig.py.