]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/MakeTRDResMisAlignment.C
Updated names of the environment variables (no dollar sign). Gaussian distribution...
[u/mrichter/AliRoot.git] / TRD / MakeTRDResMisAlignment.C
index a5a38c0f3b69eceaf3fa724fd2f1bde567e67345..80783c31589133d10bc12f55b4f88f7540e86772 100644 (file)
@@ -42,7 +42,7 @@ void MakeTRDResMisAlignment(){
     }
   }
 
-  if(!gSystem->Getenv("$TOCDB")){
+  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
     // save on file
     TFile f("TRDresidualMisalignment.root","RECREATE");
     if(!f) cerr<<"cannot open file for output\n";
@@ -51,13 +51,13 @@ void MakeTRDResMisAlignment(){
     f.Close();
   }else{
     // save in CDB storage
-    const char* Storage = gSystem->Getenv("$STORAGE");
+    const char* Storage = gSystem->Getenv("STORAGE");
     AliCDBManager* cdb = AliCDBManager::Instance();
     AliCDBStorage* storage = cdb->GetStorage(Storage);
     AliCDBMetaData* md = new AliCDBMetaData();
     md->SetResponsible("Dariusz Miskowiec");
     md->SetComment("Residual misalignment for TRD");
-    md->SetAliRootVersion(gSystem->Getenv("$ARVERSION"));
+    md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
     AliCDBId id("TRD/Align/Data",0,9999999);
     storage->Put(array,id,md);
   }