]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/trd_analyse.C
add print-out for MC hits
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_analyse.C
index d82035cd41059e88e49d5781ef465652c662d095..5ccf2d069a18508054fc7bdd9bb1d7cfcdfed7ac 100644 (file)
 // Author:
 // Alex Bercuci (A.Bercuci@gsi.de)
 // 
+
+//_______________________________________________________
+void analyseHits(AliEveTRDHits *hits = 0x0)
+{
+// Simple print hits from a detector
+
+  if(!hits) {
+    Info("analyseHits", "Invalid hits set.");
+    return;
+  }
+
+  AliTRDhit *h = 0x0;
+  for(Int_t ih=0; ih<hits->GetN(); ih++){
+    hits->PointSelected(ih);
+  }
+}
+
 //_______________________________________________________
 void analyseDigits(AliEveTRDDigits *digits = 0x0)
 {
@@ -51,7 +68,7 @@ void analyseClusters(TEvePointSet *points = 0x0)
   for(Int_t ic=0; ic<points->Size(); ic++){
     if(!(c = (AliTRDcluster*)points->GetPointId(ic))) continue;
   
-    printf("%2d[%p] Det[%d] LabelMC[%d] TB[%d]\n", ic, c, c->GetDetector(), c->GetLabel(0), c->GetLocalTimeBin());
+    c->Print();
   }
 }