This is a class capable of parsing TileCal conditions data stored in
ASCII files.
Definition at line 1449 of file TileCalibTools.py.
◆ __init__()
def python.TileCalibTools.TileASCIIParser3.__init__ |
( |
|
self, |
|
|
|
fileName, |
|
|
|
calibId |
|
) |
| |
Input:
- fileName : input file name
- calibId : like Trip, ...
Definition at line 1456 of file TileCalibTools.py.
1456 def __init__(self, fileName, calibId):
1459 - fileName : input file name
1460 - calibId : like Trip, ...
1463 TileCalibLogger.__init__(self,
"TileASCIIParser3")
1464 self.__dataDict = {}
1466 lines =
open(fileName,
"r").readlines()
1467 except Exception
as e:
1468 self.log().
error(
"TileCalibASCIIParser3::ERROR: Problem opening input file:" )
1469 self.log().
error( e )
1473 fields = line.strip().
split()
1475 if not len(fields) :
1477 if fields[0].startswith(
"#"):
1487 raise Exception(
"%s is not calibId=%s" % (type, calibId))
1490 if not (frag.startswith(
'0x')
or frag.startswith(
'-0x')):
1491 raise Exception(
"Misformated fragment %s" % frag)
1501 dictKey = (ros, mod)
1502 self.__dataDict[dictKey] = data
◆ getData()
def python.TileCalibTools.TileASCIIParser3.getData |
( |
|
self, |
|
|
|
ros, |
|
|
|
drawer |
|
) |
| |
◆ getDict()
def python.TileCalibTools.TileASCIIParser3.getDict |
( |
|
self | ) |
|
◆ __dataDict
python.TileCalibTools.TileASCIIParser3.__dataDict |
|
private |
The documentation for this class was generated from the following file: