]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tof_digits_strips.C
Increased the default window for the TOF signal visualization
[u/mrichter/AliRoot.git] / EVE / alice-macros / tof_digits_strips.C
index cb1a8c2ce0566df61dd19ce73e572ce6d231a18d..f5ef1e98c7717811dc24e6000823d249ea4c0ad4 100644 (file)
@@ -7,7 +7,7 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-void tof_digits_strips()
+void tof_digits_strips(Int_t selectedSector=-1)
 {
   TClonesArray *array = 0x0;
 
@@ -44,7 +44,7 @@ void tof_digits_strips()
   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);
@@ -70,7 +70,8 @@ void tof_digits_strips()
 
        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);
 
       }