#!/usr/bin/env python # # Ported to GlueX by Sean Dobbs (s-dobbs@northwestern.edu), 2014 # # Copyright 2004, 2005 # Cornell University, Ithaca, NY 14853. All rights reserved. # # Author: Valentin Kuznetsov, 2004 # """Base class to read IDXA files""" import sys, string, re class IDXAFileReader: """Base class to read information from IDXA files.""" def __init__(self,fileName): """Base class to read information from IDXA files. You may access information from data members: eventList @type fileName: string @param fileName: name of the file @rtype: none @return: none """ idxaFile = open(fileName,'r') lines = idxaFile.readlines() self.eventList = [] self.runList = [] self.runUidList = [] self.svList = [] idx = 0 while idx