]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tof_digits_strips.C
Clarify cluster loop. Add check for cluster being 0 (seen in online reco-viz).
[u/mrichter/AliRoot.git] / EVE / alice-macros / tof_digits_strips.C
index f5ef1e98c7717811dc24e6000823d249ea4c0ad4..6be8c4b74528c7d2ca5b61cfd783f5b6826af751 100644 (file)
@@ -13,7 +13,8 @@ void tof_digits_strips(Int_t selectedSector=-1)
 
   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");
   }
@@ -40,7 +41,7 @@ void tof_digits_strips(Int_t selectedSector=-1)
 
   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++) {
@@ -48,7 +49,7 @@ void tof_digits_strips(Int_t selectedSector=-1)
     sprintf(sectorName,"Sector%2i",iSector);
     TEveElementList* l = new TEveElementList(sectorName);
     l->SetTitle(sectorTitle);
-    l->SetMainColor((Color_t)2);
+    l->SetMainColor(2);
     gEve->AddElement(l, ll);
 
 
@@ -62,7 +63,7 @@ void tof_digits_strips(Int_t selectedSector=-1)
       sPlate=bsPlate;
       sPlate+=iPlate;
       TEveElementList* relPlate = new TEveElementList(sPlate.Data());
-      relPlate->SetMainColor((Color_t)2);
+      relPlate->SetMainColor(2);
       gEve->AddElement(relPlate, l);