]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/MakeT0ZeroMisAlignment.C
Updated names of the environment variables (no dollar sign). Gaussian distribution...
[u/mrichter/AliRoot.git] / T0 / MakeT0ZeroMisAlignment.C
index c684c56fb9f610a8cb6a2e720f9a7fa1f1b53a3b..f4228dbd04962cfb07f23dac6c0cdf2b4285d744 100644 (file)
@@ -28,7 +28,7 @@ void MakeT0ZeroMisAlignment(){
       new(alobj[j++]) AliAlignObjAngles(symName.Data(), volid, dx, dy, dz, dpsi, dtheta, dphi, kTRUE);
     }
 
-  if(!gSystem->Getenv("$TOCDB")){
+  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
     // save on file
     TFile f("T0zeroMisalignment.root","RECREATE");
     if(!f) cerr<<"cannot open file for output\n";
@@ -37,13 +37,13 @@ void MakeT0ZeroMisAlignment(){
     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("Tomasz Malkiewicz");
     md->SetComment("Zero misalignment for T0, produced with sigmatr=0.05 and sigmarot=0.3 in the local RS");
-    md->SetAliRootVersion(gSystem->Getenv("$ARVERSION"));
+    md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
     AliCDBId id("T0/Align/Data",0,9999999);
     storage->Put(array,id,md);
   }