]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tof_digits.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / tof_digits.C
index 86deb4010e100419dc2a276cc6e099199520ca5b..1e167e17bbc5c42ebdb3a33417715832328ffabc 100644 (file)
@@ -4,15 +4,15 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
+
+
 void tof_digits()
 {  
   TClonesArray *array = 0x0;
 
-  Int_t nDigitsInVolume[3] = {-1, -1, -1};
-  Int_t nStrips=19;
-  TGeoManager *localGeoManager = (TGeoManager*)gEve->GetGeometry("./geometry.root");//"$REVESYS/alice-data/alice_fullgeo.root");
+  TGeoManager *localGeoManager = gEve->GetGeometry("./geometry.root");//  gGeoManager = gEve->GetDefaultGeometry();
   if (!localGeoManager) {
     printf("ERROR: no TGeo\n");
   }
@@ -26,14 +26,14 @@ void tof_digits()
   di->LoadDigits();
   di->Dump();
 
-  AliTOFGeometry* g = di->fGeom;
+  AliTOFGeometry* g = di->GetTOFgeometry();
  
   gStyle->SetPalette(1, 0);
   gEve->DisableRedraw();
 
   TEveElementList* ll = new TEveElementList("TOF");
   ll->SetTitle("TOF detector");
-  ll->SetMainColor((Color_t)2);
+  ll->SetMainColor(2);
   gEve->AddElement(ll);
 
   for(Int_t iSector=0; iSector<g->NSectors(); iSector++) {