X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TPC%2FMakeTPCResMisAlignment.C;h=2462b0d983438f7e0e560b52cca3a19580639053;hp=2c2598bad53eaa2b323e9979bbf0627076be47bf;hb=1db5efb514799c5f4886693484ee9fcdd5e72261;hpb=6fce62af1975e067a08b96e421e6fec691ab4712 diff --git a/TPC/MakeTPCResMisAlignment.C b/TPC/MakeTPCResMisAlignment.C index 2c2598bad53..2462b0d9834 100644 --- a/TPC/MakeTPCResMisAlignment.C +++ b/TPC/MakeTPCResMisAlignment.C @@ -5,12 +5,12 @@ void MakeTPCResMisAlignment(){ // 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; - 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()); @@ -60,7 +60,7 @@ void MakeTPCResMisAlignment(){ } } - if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){ + if( TString(gSystem->Getenv("TOCDB")) != TString("kTRUE") ){ // save on file const char* filename = "TPCresidualMisalignment.root"; TFile f(filename,"RECREATE");