Skip to content

Commit

Permalink
macros from Raffaele
Browse files Browse the repository at this point in the history
  • Loading branch information
alla committed Apr 4, 2007
1 parent 2ac1078 commit 623de5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions T0/MakeT0FullMisAlignment.C
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions T0/MakeT0ResMisAlignment.C
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions T0/MakeT0ZeroMisAlignment.C
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
}
Expand Down

0 comments on commit 623de5d

Please sign in to comment.