]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/MakeTPCFullMisAlignment.C
classes for alignment from Tomek
[u/mrichter/AliRoot.git] / TPC / MakeTPCFullMisAlignment.C
index 427e90bfd2cd717144aed9ebffd2d140cbe2210f..3160ba97d3d792442cb301bde136e739a52b544a 100644 (file)
@@ -9,7 +9,7 @@ void MakeTPCFullMisAlignment(){
   
   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());
@@ -59,7 +59,7 @@ void MakeTPCFullMisAlignment(){
     }
   }
 
-  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
+  if( TString(gSystem->Getenv("TOCDB")) != TString("kTRUE") ){
     // save on file
     const char* filename = "TPCfullMisalignment.root";
     TFile f(filename,"RECREATE");