This is a class capable of parsing TileCal conditions data stored in
ASCII files.
Definition at line 1454 of file TileCalibTools.py.
◆ __init__()
def python.TileCalibTools.TileASCIIParser3.__init__ |
( |
|
self, |
|
|
|
fileName, |
|
|
|
calibId |
|
) |
| |
Input:
- fileName : input file name
- calibId : like Trip, ...
Definition at line 1461 of file TileCalibTools.py.
1461 def __init__(self, fileName, calibId):
1464 - fileName : input file name
1465 - calibId : like Trip, ...
1468 TileCalibLogger.__init__(self,
"TileASCIIParser3")
1469 self.__dataDict = {}
1471 lines =
open(fileName,
"r").readlines()
1472 except Exception
as e:
1473 self.log().
error(
"TileCalibASCIIParser3::ERROR: Problem opening input file:" )
1474 self.log().
error( e )
1478 fields = line.strip().
split()
1480 if not len(fields) :
1482 if fields[0].startswith(
"#"):
1492 raise Exception(
"%s is not calibId=%s" % (type, calibId))
1495 if not (frag.startswith(
'0x')
or frag.startswith(
'-0x')):
1496 raise Exception(
"Misformated fragment %s" % frag)
1506 dictKey = (ros, mod)
1507 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: