]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/MakeTPCZeroMisAlignment.C
Adding stream level and debug streamer to the base class
[u/mrichter/AliRoot.git] / TPC / MakeTPCZeroMisAlignment.C
index 183c32f602557bffd87d19f66844d19cda404cd3..1fa5347ba17f73a554f5668478269db67bc3e203 100644 (file)
@@ -1,18 +1,11 @@
 void MakeTPCZeroMisAlignment(){
   // Create TClonesArray of zero misalignment objects for TPC
   //
-  if(!AliGeomManager::GetGeometry()){
-    if(!(AliCDBManager::Instance())->IsDefaultStorageSet())
-      AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
-      AliCDBManager::Instance()->SetRun(0);
-    AliGeomManager::LoadGeometry();
-  }
-  // needed for the constructors with local coordinates not to fail
+  const char* macroname = "MakeTPCZeroMisAlignment.C";
 
   TClonesArray *array = new TClonesArray("AliAlignObjParams",100);
   TClonesArray &alobj = *array;
   
-  AliAlignObjParams o;
   Double_t dx=0., dy=0., dz=0., dpsi=0., dtheta=0., dphi=0.;
   Int_t j = 0;
 
@@ -27,9 +20,7 @@ void MakeTPCZeroMisAlignment(){
     }
   }
 
-
-  const char* macroname = "MakeTPCZeroMisAlignment.C";
-  if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
+  if( TString(gSystem->Getenv("TOCDB")) != TString("kTRUE") ){
     // save on file
     const char* filename = "TPCzeroMisalignment.root";
     TFile f(filename,"RECREATE");