From 8d0a15a49588aad0849475d82cb68ba6346889a1 Mon Sep 17 00:00:00 2001 From: alla Date: Wed, 4 Apr 2007 11:35:33 +0000 Subject: [PATCH] macros from Raffaele --- T0/MakeT0FullMisAlignment.C | 6 +++--- T0/MakeT0ResMisAlignment.C | 6 +++--- T0/MakeT0ZeroMisAlignment.C | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/T0/MakeT0FullMisAlignment.C b/T0/MakeT0FullMisAlignment.C index b76cc1ad9d1..67b08cddeca 100644 --- a/T0/MakeT0FullMisAlignment.C +++ b/T0/MakeT0FullMisAlignment.C @@ -39,7 +39,7 @@ void MakeT0FullMisAlignment(){ new(alobj[j++]) AliAlignObjAngles(symName.Data(), volid, dx, dy, dz, dpsi, dtheta, dphi, kTRUE); } - if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){ + if(!gSystem->Getenv("$TOCDB")){ // save on file TFile f("T0fullMisalignment.root","RECREATE"); if(!f) cerr<<"cannot open file for output\n"; @@ -48,13 +48,13 @@ void MakeT0FullMisAlignment(){ 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("Full 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); } diff --git a/T0/MakeT0ResMisAlignment.C b/T0/MakeT0ResMisAlignment.C index 5f61b9e197d..49c4f62c7cb 100644 --- a/T0/MakeT0ResMisAlignment.C +++ b/T0/MakeT0ResMisAlignment.C @@ -40,7 +40,7 @@ void MakeT0ResMisAlignment(){ new(alobj[j++]) AliAlignObjAngles(symName.Data(), volid, dx, dy, dz, dpsi, dtheta, dphi, kTRUE); } - if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){ + if(!gSystem->Getenv("$TOCDB")){ // save on file TFile f("T0residualMisalignment.root","RECREATE"); if(!f) cerr<<"cannot open file for output\n"; @@ -49,13 +49,13 @@ void MakeT0ResMisAlignment(){ 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("Residual 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); } diff --git a/T0/MakeT0ZeroMisAlignment.C b/T0/MakeT0ZeroMisAlignment.C index f4228dbd049..c684c56fb9f 100644 --- a/T0/MakeT0ZeroMisAlignment.C +++ b/T0/MakeT0ZeroMisAlignment.C @@ -28,7 +28,7 @@ void MakeT0ZeroMisAlignment(){ new(alobj[j++]) AliAlignObjAngles(symName.Data(), volid, dx, dy, dz, dpsi, dtheta, dphi, kTRUE); } - if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){ + if(!gSystem->Getenv("$TOCDB")){ // 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); } -- 2.43.5