From 6a2679b5471d535a29409eca976f76e21ed1c200 Mon Sep 17 00:00:00 2001 From: cheynis Date: Wed, 2 Jul 2008 09:31:27 +0000 Subject: [PATCH] Added loop on raw data files --- VZERO/VZEROTUNING2da.cxx | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/VZERO/VZEROTUNING2da.cxx b/VZERO/VZEROTUNING2da.cxx index a74c627220e..6ccad718e29 100644 --- a/VZERO/VZEROTUNING2da.cxx +++ b/VZERO/VZEROTUNING2da.cxx @@ -18,8 +18,8 @@ * VZERO Detector Algorithm used for tuning FEE parameters * * * * This program reads data on the LDC * -* It cumulates mean ADC responses (above pedestals), populates local * -* "./V0_Tuning2.dat" file and exports it to the FES. * * +* It cumulates mean ADC responses , populates local "./V0_Tuning2.dat" file * +* and exports it to the FES. * * * * We have 128 channels instead of 64 as expected for V0 due to the two sets of * * charge integrators which are used by the FEE ... * * The program reports about its processing progress. * @@ -49,7 +49,7 @@ #include -/* Main routine --- Arguments: iteration number, data file */ +/* Main routine --- Arguments: list of DATE raw data files */ int main(int argc, char **argv) { @@ -94,19 +94,21 @@ int main(int argc, char **argv) { /* init counters on events */ int nevents_physics=0; int nevents_total=0; - - /* read the data */ - status=monitorSetDataSource( argv[1] ); + /* read the n data files */ + for (int n=1; n