]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MakeMUONZeroMisAlignment.C
Update of ACORDE-QA-Raw data histograms (now they go from -0.5 to 59.5)
[u/mrichter/AliRoot.git] / MUON / MakeMUONZeroMisAlignment.C
index 88db417928bfa0e5906f0e244b30db3830601da7..f4e0dae46e1b3fd98c1b9dc3765eb10a38023bb8 100644 (file)
 
 // $Id$
 
-// Macro for generating the zero misalignment data.
-//
-// Author: I. Hrivnacova, IPN Orsay
+/// \ingroup macros
+/// \file MakeMUONZeroMisAlignment.C
+/// \brief Macro for generating the zero misalignment data.
+///
+/// \author: I. Hrivnacova, IPN Orsay
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 
 #include "AliGeomManager.h"
 #include "AliCDBManager.h"
 #include "AliCDBStorage.h"
+#include "AliCDBEntry.h"
 #include "AliCDBId.h"
 
 #include <TSystem.h>
+#include <TError.h>
 #include <TClonesArray.h>
 #include <TString.h>
 #include <TFile.h>
@@ -41,10 +45,10 @@ void MakeMUONZeroMisAlignment()
   const char* macroname = "MakeMUONZeroMisAlignment.C";
   // Activate CDB storage and load geometry from CDB
   AliCDBManager* cdb = AliCDBManager::Instance();
-  if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT");
+  if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   cdb->SetRun(0);
   
-  AliCDBStorage* storage;
+  AliCDBStorage* storage = 0;
   
   if( TString(gSystem->Getenv("TOCDB")) == TString("kTRUE") ){
     TString Storage = gSystem->Getenv("STORAGE");
@@ -75,7 +79,7 @@ void MakeMUONZeroMisAlignment()
     // Create a file to store the alignment data
     const char* filename = "MUONZeroMisalignment.root";
     TFile f(filename,"RECREATE");
-    if(!f){
+    if(!f.IsOpen()){
       Error(macroname,"cannot open file for output\n");
       return;
     }