]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/MakePMDZeroMisAlignment.C
Updated names of the environment variables (no dollar sign). Gaussian distribution...
[u/mrichter/AliRoot.git] / PMD / MakePMDZeroMisAlignment.C
index 93d4f0dabded0ee3b1b46fb330e447f778b5ce35..f1d635d85cf9fbd13a29a78f7af53ca5705a0558 100644 (file)
@@ -54,7 +54,7 @@ void MakePMDZeroMisAlignment(){
     new(alobj[j++]) AliAlignObjAngles(snSector.Data(), volid, dx, dy, dz, dpsi, dtheta, dphi, kTRUE);
   }
 
-  if(!gSystem->Getenv("$TOCDB")){
+  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
     // Create a File to store the alignment data
     TFile f("PMDzeroMisalignment.root","RECREATE");
     if(!f) {cerr<<"cannot open file for output\n";}
@@ -64,13 +64,13 @@ void MakePMDZeroMisAlignment(){
     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("");
     md->SetComment("Zero misalignment for PMD");
-    md->SetAliRootVersion(gSystem->Getenv("$ARVERSION"));
+    md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
     AliCDBId id("PMD/Align/Data",0,9999999);
     storage->Put(array,id,md);
   }