]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/TestPreprocessorSDD.C
New default values for baselines (F.Prino)
[u/mrichter/AliRoot.git] / ITS / TestPreprocessorSDD.C
index fb40eeafaa87baeee05a0638afa3ca5e9c27034e..0887ed26085ac8281be6f9a3fcf84548cab04cfb 100644 (file)
@@ -6,7 +6,7 @@ void TestPreprocessorSDD(Char_t *optRunType="PULSER"){
   // - 4 tar files with simulated output of INJECTOR DA
   // - 1 root file with simulated output of DCS
   // all these files can be found on 
-  gSystem->Load("libTestShuttle.so");
+  gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle.so");
 
   // The parameters are run, startTime, endTime
   AliTestShuttle* shuttle = new AliTestShuttle(7, 0, 1);
@@ -64,18 +64,26 @@ void TestPreprocessorSDD(Char_t *optRunType="PULSER"){
     doCheck=kTRUE;
   }
   if(doCheck){
-    AliCDBEntry* chkEntry = AliCDBManager::Instance()->GetStorage(AliShuttleInterface::GetMainCDB())
-                       ->Get(theDir, 7);
+    AliCDBEntry* chkEntry = AliCDBManager::Instance()->GetStorage(AliShuttleInterface::GetMainCDB())->Get(theDir, 7);
     if (!chkEntry){
-      printf("The file is not there. Something went wrong.\n");
-      return;
+      printf("The Calib file is not there. Something went wrong.\n");
+    }else{
+      chkEntry->PrintMetaData();
+      TObjArray* arr=(TObjArray*)chkEntry->GetObject();
+      arr->Inspect();
     }
   }
 
-  AliTestDataDCS* output = dynamic_cast<AliTestDataDCS*> (chkEntry->GetObject());
-  // If everything went fine, draw the result
-  if (output)
-    output->Inspect();
+  sprintf(theDir,"ITS/DCS/DataSDD");
+  AliCDBEntry* chkEntryDCS = AliCDBManager::Instance()->GetStorage(AliShuttleInterface::GetMainCDB())
+                       ->Get(theDir, 7);
+  if (!chkEntryDCS){
+    printf("The DCS data points file is not there. Something went wrong.\n");
+  }else{
+    chkEntryDCS->PrintMetaData();
+    TObjArray* arrdcs=(TObjArray*)chkEntryDCS->GetObject();
+    arrdcs->Inspect();
+  }
 }