#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>
if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT");
cdb->SetRun(0);
- AliCDBStorage* storage;
+ AliCDBStorage* storage = 0;
- if( gSystem->Getenv("TOCDB") == TString("kTRUE") ){
+ if( TString(gSystem->Getenv("TOCDB")) == TString("kTRUE") ){
TString Storage = gSystem->Getenv("STORAGE");
if(!Storage.BeginsWith("local://") && !Storage.BeginsWith("alien://")) {
Error(macroname,"STORAGE variable set to %s is not valid. Exiting\n",Storage.Data());
// 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;
}