]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/test-macros/tpc_raw_test.C
Move contents of EVE/Alieve to EVE/EveDet as most code will remain there.
[u/mrichter/AliRoot.git] / EVE / test-macros / tpc_raw_test.C
index 8becb3145afdd9100deea6eb50ca18d89a6bea32..8682781e4127aa0b97217d6085241626bfc6ff27 100644 (file)
@@ -1,11 +1,18 @@
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
 class AliRawReaderFile;
 
-namespace Alieve {
-class TPCData;
-}
+class AliEveTPCData;
 
-Alieve::TPCData*  x = 0;
-AliRawReaderFilereader = 0;
+AliEveTPCData    *x      = 0;
+AliRawReaderFile *reader = 0;
 
 void tpc_raw_test()
 {
@@ -17,7 +24,7 @@ void tpc_raw_test()
   reader->NextEvent();
   AliTPCRawStream input(reader);
 
-  x = new Alieve::TPCData;
+  x = new AliEveTPCData;
   //x->SetSectorBlockSize(8192);
   //x->SetLoadThreshold(5);
   x->CreateAllSectors();
@@ -25,11 +32,11 @@ void tpc_raw_test()
 
   gStyle->SetPalette(1, 0);
 
-  Alieve::TPCSector2D* s = new Alieve::TPCSector2D();
+  AliEveTPCSector2D* s = new AliEveTPCSector2D();
   s->SetDataSource(x);
   s->SetMainColor(36);
-  gReve->AddRenderElement(s);
-  gReve->DrawRenderElement(s);
+  gEve->AddElement(s);
+  gEve->DrawElement(s);
 
 }
 
@@ -38,8 +45,8 @@ void tpc_raw_pad_dump(Int_t s, Int_t r, Int_t p)
   reader->Reset();
   reader->NextEvent();
 
-  if(r >= Alieve::TPCSectorData::GetInnSeg().fNRows) {
-    r -= Alieve::TPCSectorData::GetInnSeg().fNRows;
+  if(r >= AliEveTPCSectorData::GetInnSeg().fNRows) {
+    r -= AliEveTPCSectorData::GetInnSeg().fNRows;
     s += 36;
   }