/* - "Contact: r.bailhache@gsi.de" - "Link: http://www-linux.gsi.de/~bailhach/PEDESTAL/raw.root.date" - "Run Type: dedicated pedestals run" - "DA Type: LDC" - "Number of events needed: 100" - "Input Files: no config files, no previous result files, RAW DATA files from DDL = 1024 to DDL = 1041 included" - "Output Files: trdCalibration.root, trdCalibration.root, no persitent file over runs" - "Trigger types used: PEDESTAL_RUN" */ #define RESULT_FILE "trdCalibration.root" extern "C" { #include } #include "event.h" #include "monitor.h" #include #include // // Root includes // #include #include // // AliRoot includes // #include "AliRawReader.h" #include "AliRawReaderDate.h" #include "AliTRDRawStreamV2.h" #include "AliCDBManager.h" // // AliRoot TRD calib classes // #include "AliTRDCalibPadStatus.h" /* Main routine Arguments: list of DATE raw data files */ int main(int argc, char **argv) { int status; /* log start of process */ printf("TRD DA PEDESTAL started\n"); /* check that we got some arguments = list of files */ if (argc<2) { printf("Wrong number of arguments\n"); return -1; } /* copy locally a file from daq detector config db */ //status=daqDA_DB_getFile("myconfig","./myconfig.txt"); //if (status) { // printf("Failed to get config file : %d\n",status); // return -1; //} /* and possibly use it */ /* init some counters */ int nevents_total=0; int nevents =0; //Instance of AliCDBManager: needed by AliTRDRawStream AliCDBManager *man = AliCDBManager::Instance(); man->SetDefaultStorage("local://$ALICE_ROOT"); man->SetRun(0); // AliTRDCalibPadStatus object AliTRDCalibPadStatus calipad = AliTRDCalibPadStatus(); Bool_t passpadstatus = kTRUE; /*see the time*/ TStopwatch timer; timer.Start(); /* read the data files */ int n; for (n=1;nClose(); printf("Wrote local file %s\n",RESULT_FILE); /*see the time*/ timer1.Stop(); timer1.Print(); /* store the result file on FES */ status=daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE); if (status) { printf("Failed to export file : %d\n",status); return -1; } /* report progress */ daqDA_progressReport(100); return status; }