
Thomas Feser
university of Mainz
Feb, 2002, south pole
Besides the main wavemerger executable there is a second application called cleanup.wm.pl, which basicaly does some clean up work and keeps you (the poor winterovers...) informed if something goes seriously wrong. This will hopefully never happen. ;-)
The package constists basically of two executable files:
Both file handling methods keep track of the input files they have processed already in specific files in the log directory (default: /home/monitor/wavemerger/log)
The file handling routines basically assume that the incoming data files arrive ordered by time. If this is not the case, nothing serious should happen. However, whenever the central loop described below reaches the end of a file, this file will be considered as processed and not being opened again. This leads to a possible loss of data, but I can't think of a managable way to avoid this.
Incoming f2k and twr files are transferred into the directories
/net/disk3/twr_online/incoming_f2k_files and
/net/disk3/twr_online/incoming_twr_files
by polechomper. WAVEMERGER writes its outgoing data files into
/net/disk3/twr_online/outgoing_f2k_files.
Further monitoring histograms are written into
/net/disk3/twr_online/merger_monitoring.
The inner merging structure located in wavemerger.C is summarized by the following algorithm. The parameter epsilon turns up at two positions in the code and is a very important value to configure... the sake of our merging effort depends on it!
The handling of output files is quite difficult to understand. Don't mess with it unless you're sure you have to!
Finally I apologize to the poor folks who undertake the effort to understand this software. Especially the buffer classes are not very well constructed, and also the file handling is far from being perfect. However, WAVEMERGER merges, and it merges fast, and after all, we're at south pole.
From May, you can mail to Thomas.Feser@spole.gov with some hope to get an answer. ;-)