]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONHitForRec.cxx
new TTask to replace non-working AliITSFindClusterV2.C macro.
[u/mrichter/AliRoot.git] / MUON / AliMUONHitForRec.cxx
index d2abe2dabb075a01389f17d0b385fe51274cb1b8..b9bdcde1007cc7605011110898690b169e6279c6 100644 (file)
 
 /*
 $Log$
+Revision 1.5  2001/01/26 21:46:33  morsch
+Use access functions to MUONHit, ... data members.
+
+Revision 1.4  2000/10/02 21:28:09  fca
+Removal of useless dependecies via forward declarations
+
+Revision 1.3  2000/06/25 13:06:39  hristov
+Inline functions moved from *.cxx to *.h files instead of forward declarations
+
 Revision 1.2  2000/06/15 07:58:48  morsch
 Code from MUON-dev joined
 
@@ -52,11 +61,11 @@ AliMUONHitForRec::AliMUONHitForRec(AliMUONHit* Ghit)
   // which are taken from the coordinates of the GEANT hit,
   // the track number (GEANT and not TH),
   // and the chamber number (0...).
-  fBendingCoor = Ghit->fY;
-  fNonBendingCoor = Ghit->fX;
-  fZ = Ghit->fZ;
+  fBendingCoor = Ghit->Y();
+  fNonBendingCoor = Ghit->X();
+  fZ = Ghit->Z();
   // fTrack = Ghit->fTrack; ?????????
-  fChamberNumber = Ghit->fChamber - 1;
+  fChamberNumber = Ghit->Chamber() - 1;
   // other fields will be updated in
   // AliMUONEventReconstructor::NewHitForRecFromGEANT,
   // except the following ones
@@ -113,7 +122,7 @@ AliMUONHitForRec & AliMUONHitForRec::operator=(const AliMUONHitForRec& MUONHitFo
     return *this;
 }
   //__________________________________________________________________________
-Int_t AliMUONHitForRec::Compare(TObject* Hit)
+Int_t AliMUONHitForRec::Compare(const TObject* Hit) const
 {
   // "Compare" function to sort with increasing chamber number.
   // Returns -1 (0, +1) if ChamberNumber of current HitForRec