]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPoints.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / MUON / AliMUONPoints.cxx
index 2a6a6ac090de7ec4dc04cb88d23755b2c40f386e..4352e730a85337c9190d39e041c72102f7e4b097 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-/*
-$Log$
-Revision 1.4  2000/07/03 11:54:57  morsch
-AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHitMap in STEER
-The methods GetPadIxy and GetPadXxy of AliMUONSegmentation have changed name to GetPadI and GetPadC.
-
-Revision 1.3  2000/06/27 10:13:01  morsch
-Obsolete global variables removed from file.
-
-Revision 1.2  2000/06/15 07:58:48  morsch
-Code from MUON-dev joined
-
-Revision 1.1.2.6  2000/06/09 21:57:40  morsch
-Most coding rule violations corrected.
 
-Revision 1.1.2.5  2000/05/05 11:33:56  morsch
-Log inside comments.
-
-Revision 1.1.2.4  2000/05/05 10:12:09  morsch
-Log messages included
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -69,7 +50,7 @@ Log messages included
 #include <TPaveText.h>
 #include <TView.h>
 #include <TMath.h>
-
+#include <TMarker3DBox.h>
  
 ClassImp(AliMUONPoints)
 
@@ -198,8 +179,9 @@ void AliMUONPoints::InspectDigit()
       //      sprintf(ptitle[11],"Tracks making this digit");
       //      pad->AddText(ptitle[11]);
   for (int i=0;i<10;i++) {
-      if (digit->fTracks[i] == 0) continue;  
-      sprintf(ptitle[i],"fTrackIndex: %d  Charge: %d",digit->fTracks[i],digit->fTcharges[i]);
+      if (digit->Track(i) == 0) continue;  
+      sprintf(ptitle[i],"fTrackIndex: %d  Charge: %d",
+             digit->Track(i), digit->TrackCharge(i));
       pad->AddText(ptitle[i]);
   }
       padinspect->cd();
@@ -234,7 +216,8 @@ AliMUONHit *AliMUONPoints::GetHit() const
   //   Returns pointer to hit index in AliRun::fParticles
   //
   AliMUON *pMUON  = (AliMUON*)gAlice->GetModule("MUON");
-  gAlice->TreeH()->GetEvent(fTrackIndex);
+  
+  pMUON->TreeH()->GetEvent(fTrackIndex);
   TClonesArray *muonHits  = pMUON->Hits();
   Int_t nhits = muonHits->GetEntriesFast();
   if (fHitIndex < 0 || fHitIndex >= nhits) return 0;