* full copyright notice. *
**************************************************************************/
-void tof_digits_strips()
+void tof_digits_strips(Int_t selectedSector=-1)
{
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");
}
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++) {
-
+ if (selectedSector!=-1 && iSector!=selectedSector) continue;
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);
sPlate=bsPlate;
sPlate+=iPlate;
TEveElementList* relPlate = new TEveElementList(sPlate.Data());
- relPlate->SetMainColor((Color_t)2);
+ relPlate->SetMainColor(2);
gEve->AddElement(relPlate, l);
array = di->GetDigits(iSector,iPlate, iStrip);
- AliEveTOFStrip* m = new AliEveTOFStrip(localGeoManager,iSector,iPlate,iStrip,array);
+ AliEveTOFStrip* m = new AliEveTOFStrip(localGeoManager,
+ iSector,iPlate,iStrip,array);
gEve->AddElement(m, relPlate);
}