Christian, It seems that you have defined a run to be the reading of one file in MainModule as well, as in the definition of the BrIOModule. when either an EOF is reached, or #events reached the limit the control transfers out of the event loop call End() and then subsequently goes on to next file. This is the correct behaviour if the next file is indeed a new run, but not if it is another sequence of the same run. In that case you really want just to continue reading and just go to End() when everything is read. One reason here- e.g. for DB access you do not want this per seq file; for writting to DB you would certainly not want it on each sequence. One possible way of dealing with this is to add one more mode to the BrIOModule e.g. kBrSeqFile with the implication that File is opened at Begin() on Eof() the next file in list is openened (The specific files should all be set by the AddFile() such that the IOModule should only deal with it's list of files) -- or the logic is built into the MainModule, but since it does not know anything about files it is not so nice. ------------------------------------------------------ Flemming Videbaek Physics Department Brookhaven National Laboratory tlf: 631-344-4106 fax 631-344-1334 e-mail: videbaek@bnl.gov
This archive was generated by hypermail 2b29 : Tue Jun 05 2001 - 12:39:24 EDT