]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/TPCCEda.cxx
Adding stream level and debug streamer to the base class
[u/mrichter/AliRoot.git] / TPC / TPCCEda.cxx
index 1a261948e1158185659df80d1a3a36d49a96bb99..ba40d97a02e536cecfb5781da678729edc1227b6 100644 (file)
@@ -8,6 +8,7 @@ DA Type: MON
 Number of events needed: 500
 Input Files: 
 Output Files: tpcCE.root, to be exported to the DAQ FXS
+fileId:   CE
 Trigger types used: PHYSICS_EVENT
 
 */
@@ -28,6 +29,7 @@ and save results in a file (named from RESULT_FILE define - see below).
 */
 
 #define RESULT_FILE "tpcCE.root"
+#define FILE_ID "CE"
 #define MAPPING_FILE "tpcMapping.root"
 
 
@@ -77,23 +79,14 @@ int main(int argc, char **argv) {
                                          "RIO",
                                          "TStreamerInfo()");
 
-  AliLog::SetClassDebugLevel("AliTPCRawStream",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliRawReaderDate",AliLog::kFatal);
-  AliLog::SetClassDebugLevel("AliTPCAltroMapping",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("TPC",AliLog::kFatal);
-  AliLog::SetModuleDebugLevel("RAW",AliLog::kFatal);
+  AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
+  AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
+  AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
+  AliLog::SetModuleDebugLevel("RAW",-5);
 
   int i,status;
   AliTPCmapper *mapping = 0;   // The TPC mapping
   // if  test setup get parameters from $DAQDA_TEST_DIR 
-  if (gSystem->Getenv("DAQDA_TEST_DIR")){
-    printf("Test setup\tGetting data from local storage\n");
-    char localname[1000];
-    sprintf(localname,"%s/%s",gSystem->Getenv("DAQDA_TEST_DIR"),MAPPING_FILE);
-    TFile *fileMapping = new TFile(localname,"read");
-    mapping = (AliTPCmapper*) fileMapping->Get("tpcMapping");
-    delete fileMapping;
-  }
   
   if (!mapping){
     /* copy locally the mapping file from daq detector config db */
@@ -194,13 +187,13 @@ int main(int argc, char **argv) {
   printf ("%d events processed\n",nevents);
 
   TFile * fileTPC = new TFile (RESULT_FILE,"recreate");
-  calibCE.Write("calibCE");
+  calibCE.Write("tpcCalibCE");
   delete fileTPC;
   printf("Wrote %s\n",RESULT_FILE);
 
   /* store the result file on FES */
 
-  status=daqDA_FES_storeFile(RESULT_FILE,RESULT_FILE);
+  status=daqDA_FES_storeFile(RESULT_FILE,FILE_ID);
   if (status) {
     status = -2;
   }