Updated display.C. Possibility to select tracks. (M.Ivanov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jun 2002 15:27:05 +0000 (15:27 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jun 2002 15:27:05 +0000 (15:27 +0000)
macros/display.C

index 2324aec73a2cb76f5dc72268a2ab5fc460115113..6355c2ca8bfb99ef8c482e512085a723aa7572eb 100644 (file)
@@ -1,4 +1,10 @@
-void display (const char *filename="galice.root",Int_t nevent=0) {
+// This macro displays the hits belonging to a track for selected detectors
+// Input: in the tracks contains the interesting tracks
+//        ntracks is the number of interesing tracks
+//        The default values correspond to "Show everything"
+// Note: For the moment it works only with HIJING events, the PYTHIA is 
+//       still not supported 
+void display (const char *filename="galice.root",Int_t nevent=0, Int_t * tracks=0, Int_t ntracks=0) {
 // Dynamically link some shared libs
    if (gClassTable->GetID("AliRun") < 0) {
       gROOT->LoadMacro("loadlibs.C");
@@ -27,6 +33,7 @@ void display (const char *filename="galice.root",Int_t nevent=0) {
    
 // Create Event Display object
    AliDisplay *edisplay = new AliDisplay(750);
+   if (ntracks>0) edisplay->SetTracksToDisplay(tracks, ntracks);
 
 // Display the requested event
    gAlice->GetEvent(nevent);