contact: basanta@phy.iitb.ac.in
Link:
Reference Run:/afs/cern.ch/user/b/bnandi/public/pedestaldata/run37820.raw
-Run Type: STANDALONE
+Run Type: PEDESTAL
DA Type: LDC
Number of events needed: 1000
Input Files:
#include "TROOT.h"
#include "TPluginManager.h"
-
-
/* Main routine
Arguments:
1- monitoring data source
break;
case PHYSICS_EVENT:
- //if(iev%100 == 0)printf(" event number = %i \n",iev);
AliRawReader *rawReader = new AliRawReaderDate((void*)event);
TObjArray *pmdddlcont = new TObjArray();
/* exit when last event received, no need to wait for TERM signal */
+ // either END_OF_RUN or 1000 events
+
+ if (iev == 1000)
+ {
+ printf("-- 1000 pedestal events processed : terminating --\n");
+ printf("-- eventT is set to END_OF_RUN --\n");
+ eventT = END_OF_RUN;
+ break;
+ }
+
}
printf(" Total number of events processed = %i \n",iev);
delete ped;
ped = 0;
+/* store the pedestal file in database */
-/* store the result file on FES */
+ status = daqDA_DB_storeFile("PMD_PED.root","PMD_PED.root");
+
+ if (!status)
+ {
+ printf("--- PEDESTAL root FILE IS IN THE DAQ DATABASE\n");
+ }
+ else
+ {
+ printf("--- Storing the root file into the database failed\n");
+ }
+
+/* store the pedestal file on FES */
- status = daqDA_FES_storeFile("PMD_PED.root","pedestal");
+ status = daqDA_FES_storeFile("PMD_PED.root","PMD_PED.root");
if (status) {
status = -2;
}
+
+
+
return status;
}