|
ATLAS Offline Software
|
|
def | findAbsPath (path) |
|
def | getRefPath (directory) |
|
def | getRefAndDumpDirectories (flags, directory) |
|
def | getInputFile (fileName) |
|
def | TileDigitsReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
def | TileRawChannelReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
def | TileLaserObjectReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
def | TileL2ReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
def | TileBeamElemReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
def | TileMuRcvReadTestCfg (flags, refDirectory, dumpDirectory, **kwargs) |
|
◆ findAbsPath()
def TileRawDataReadTestConfig.findAbsPath |
( |
|
path | ) |
|
Definition at line 13 of file TileRawDataReadTestConfig.py.
14 refPaths = [os.environ.get(
'ATLAS_REFERENCE_DATA',
None),
15 '/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art',
16 '/afs/cern.ch/atlas/maxidisk/d33/referencefiles']
17 for refPath
in refPaths:
19 absPath = os.path.join(refPath, path)
20 if os.path.exists(absPath):
23 from AthenaCommon.Logging
import logging
24 msg = logging.getLogger(
'findAbsPath')
25 msg.error(f
'Cannot find abs path: {path}')
◆ getInputFile()
def TileRawDataReadTestConfig.getInputFile |
( |
|
fileName | ) |
|
Find input file.
Definition at line 48 of file TileRawDataReadTestConfig.py.
49 """ Find input file. """
50 filePath = os.environ.get(
'ATLAS_REFERENCE_DATA',
51 '/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests')
52 inputFile = os.path.join(filePath, fileName)
53 if not os.path.exists(inputFile):
◆ getRefAndDumpDirectories()
def TileRawDataReadTestConfig.getRefAndDumpDirectories |
( |
|
flags, |
|
|
|
directory |
|
) |
| |
Definition at line 42 of file TileRawDataReadTestConfig.py.
44 dumpDirectory = f
'{directory}-{flags.Concurrency.NumThreads}'
45 return refDirectory, dumpDirectory
◆ getRefPath()
def TileRawDataReadTestConfig.getRefPath |
( |
|
directory | ) |
|
Find reference directory.
Definition at line 30 of file TileRawDataReadTestConfig.py.
31 """ Find reference directory."""
32 referenceTag = os.environ.get(
'ATLAS_REFERENCE_TAG',
'TileByteStream-02-00-00')
33 directoryPath =
find_datafile(os.path.join(
'TileByteStream', referenceTag))
36 refDirectory = os.path.join(directoryPath, directory)
37 if not refDirectory
or not os.path.exists(refDirectory):
38 refDirectory =
findAbsPath(os.path.join(
'TileByteStream', referenceTag, directory))
◆ TileBeamElemReadTestCfg()
def TileRawDataReadTestConfig.TileBeamElemReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile beam elements container from BS
Definition at line 144 of file TileRawDataReadTestConfig.py.
145 """ Configure test of reading the Tile beam elements container from BS """
147 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
148 cfg =
TileRawDataReadingCfg(flags, readDigits=
False, readRawChannel=
False, readMuRcv=
False, readBeamElem=
True)
150 TileBeamElemDumper = CompFactory.TileBeamElemDumper
152 TileBeamElemContainer=
'TileBeamElemCnt',
153 Prefix=f
'{dumpDirectory}/'))
155 cfg.addEventAlgo(Finalizer(
'TileBeamElemCompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
◆ TileDigitsReadTestCfg()
def TileRawDataReadTestConfig.TileDigitsReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile digits container from BS
Definition at line 76 of file TileRawDataReadTestConfig.py.
77 """ Configure test of reading the Tile digits container from BS """
79 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
80 cfg =
TileRawDataReadingCfg(flags, readDigits=
True, readRawChannel=
False, readMuRcv=
False, readMuRcvDigits=
True)
82 TileDigitsDumper = CompFactory.TileDigitsDumper
84 TileDigitsContainer=
'TileDigitsCnt',
85 Prefix=f
'{dumpDirectory}/'))
88 TileDigitsContainer=
'MuRcvDigitsCnt',
89 Prefix=f
'{dumpDirectory}/'))
91 cfg.addEventAlgo(Finalizer(
'TileDigitsCompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
◆ TileL2ReadTestCfg()
def TileRawDataReadTestConfig.TileL2ReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile L2 container from BS
Definition at line 129 of file TileRawDataReadTestConfig.py.
130 """ Configure test of reading the Tile L2 container from BS """
132 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
133 cfg =
TileRawDataReadingCfg(flags, readDigits=
False, readRawChannel=
False, readMuRcv=
False, readL2=
True)
135 TileL2Dumper = CompFactory.TileL2Dumper
137 TileL2Container=
'TileL2Cnt',
138 Prefix=f
'{dumpDirectory}/'))
140 cfg.addEventAlgo(Finalizer(
'TileL2CompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
◆ TileLaserObjectReadTestCfg()
def TileRawDataReadTestConfig.TileLaserObjectReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile laser object from BS
Definition at line 114 of file TileRawDataReadTestConfig.py.
115 """ Configure test of reading the Tile laser object from BS """
117 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
118 cfg =
TileRawDataReadingCfg(flags, readDigits=
False, readRawChannel=
False, readMuRcv=
False, readLaserObj=
True)
120 TileLaserObjectDumper = CompFactory.TileLaserObjectDumper
122 TileLaserObject=
'TileLaserObj',
123 Prefix=f
'{dumpDirectory}/'))
125 cfg.addEventAlgo(Finalizer(
'TileLaserObjCompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
◆ TileMuRcvReadTestCfg()
def TileRawDataReadTestConfig.TileMuRcvReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile muon receiver container from BS
Definition at line 159 of file TileRawDataReadTestConfig.py.
160 """ Configure test of reading the Tile muon receiver container from BS """
162 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
165 TileMuonReceiverDumper = CompFactory.TileMuonReceiverDumper
167 TileMuonReceiverContainer=
'TileMuRcvCnt',
168 Prefix=f
'{dumpDirectory}/'))
170 cfg.addEventAlgo(Finalizer(
'TileMuRcvCompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
◆ TileRawChannelReadTestCfg()
def TileRawDataReadTestConfig.TileRawChannelReadTestCfg |
( |
|
flags, |
|
|
|
refDirectory, |
|
|
|
dumpDirectory, |
|
|
** |
kwargs |
|
) |
| |
Configure test of reading the Tile raw channel container from BS
Definition at line 95 of file TileRawDataReadTestConfig.py.
96 """ Configure test of reading the Tile raw channel container from BS """
98 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
99 cfg =
TileRawDataReadingCfg(flags, readDigits=
False, readRawChannel=
True, readMuRcv=
False, readMuRcvRawCh=
True)
101 TileRawChannelDumper = CompFactory.TileRawChannelDumper
103 TileRawChannelContainer=
'TileRawChannelCnt',
104 Prefix=f
'{dumpDirectory}/'))
107 TileRawChannelContainer=
'MuRcvRawChCnt',
108 Prefix=f
'{dumpDirectory}/'))
110 cfg.addEventAlgo(Finalizer(
'TileRawChannelCompareAlg', refDirectory=refDirectory, dumpDirectory=dumpDirectory))
TileRawDataReadTestConfig._ |
|
private |
◆ action
TileRawDataReadTestConfig.action |
◆ args
TileRawDataReadTestConfig.args |
◆ AtlasVersion
TileRawDataReadTestConfig.AtlasVersion |
◆ cfg
TileRawDataReadTestConfig.cfg |
◆ DatabaseInstance
TileRawDataReadTestConfig.DatabaseInstance |
◆ dest
TileRawDataReadTestConfig.dest |
◆ dumpDirectory
TileRawDataReadTestConfig.dumpDirectory |
◆ Files
TileRawDataReadTestConfig.Files |
◆ flags
TileRawDataReadTestConfig.flags |
◆ help
TileRawDataReadTestConfig.help |
◆ MaxEvents
TileRawDataReadTestConfig.MaxEvents |
◆ parser
TileRawDataReadTestConfig.parser |
◆ refDirectory
TileRawDataReadTestConfig.refDirectory |
◆ RunType
TileRawDataReadTestConfig.RunType |
◆ sc
TileRawDataReadTestConfig.sc |
◆ tests
TileRawDataReadTestConfig.tests |
◆ tests_group
TileRawDataReadTestConfig.tests_group |
◆ withDetails
TileRawDataReadTestConfig.withDetails |
def TileDigitsReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
def getInputFile(fileName)
def TileRawChannelReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
Dump a TileBeamElemContainer to a text file.
Dump a TileDigitsContainer to a text file.
def TileBeamElemReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
Dump a TileMuonReceiverContainer to a text file.
def TileL2ReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
def getRefAndDumpDirectories(flags, directory)
Dump a TileLaserObject to a text file.
def TileRawDataReadingCfg(flags, readDigits=True, readRawChannel=True, readMuRcv=None, readMuRcvDigits=False, readMuRcvRawCh=False, readBeamElem=None, readLaserObj=None, readDigitsFlx=False, readL2=False, stateless=False, **kwargs)
Dump a TileRawChannelContainer to a text file.
Dump a TileL2Container to a text file.
def TileLaserObjectReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
def TileMuRcvReadTestCfg(flags, refDirectory, dumpDirectory, **kwargs)
def getRefPath(directory)