X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=MUON%2FAliMUONHitForRec.cxx;h=5f98fad7a4a6df4f658c2c551bb57f294c3d161d;hp=b9bdcde1007cc7605011110898690b169e6279c6;hb=ed9bfb0dbfdcb2b28086084fb057b767562d4dc0;hpb=2a941f4e098ff79a7f285b70f2ffd3b33e176064 diff --git a/MUON/AliMUONHitForRec.cxx b/MUON/AliMUONHitForRec.cxx index b9bdcde1007..5f98fad7a4a 100644 --- a/MUON/AliMUONHitForRec.cxx +++ b/MUON/AliMUONHitForRec.cxx @@ -13,33 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$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 - -Revision 1.1.2.4 2000/06/12 10:11:10 morsch -Dummy copy constructor and assignment operator added - -Revision 1.1.2.3 2000/06/09 22:14:43 morsch -Make includes consistent with new file naming. - -Revision 1.1.2.2 2000/06/09 12:58:05 gosset -Removed comment beginnings in Log sections of .cxx files -Suppressed most violations of coding rules - -Revision 1.1.2.1 2000/06/07 14:44:53 gosset -Addition of files for track reconstruction in C++ -*/ +/* $Id$ */ //__________________________________________________________________________ // @@ -97,8 +71,8 @@ AliMUONHitForRec::AliMUONHitForRec(AliMUONRawCluster* RawCluster) { // Constructor for AliMUONHitForRec from a raw cluster. // Fills the bending and non bending coordinates. - fNonBendingCoor = RawCluster->fX[0]; - fBendingCoor = RawCluster->fY[0]; + fNonBendingCoor = RawCluster->GetX(0); + fBendingCoor = RawCluster->GetY(0); // other fields will be updated in // AliMUONEventReconstructor::AddHitsForRecFromRawClusters, // except the following ones @@ -111,17 +85,18 @@ AliMUONHitForRec::AliMUONHitForRec(AliMUONRawCluster* RawCluster) return; } -AliMUONHitForRec::AliMUONHitForRec (const AliMUONHitForRec& MUONHitForRec) +AliMUONHitForRec::AliMUONHitForRec (const AliMUONHitForRec& MUONHitForRec):TObject(MUONHitForRec) { // Dummy copy constructor } -AliMUONHitForRec & AliMUONHitForRec::operator=(const AliMUONHitForRec& MUONHitForRec) +AliMUONHitForRec & AliMUONHitForRec::operator=(const AliMUONHitForRec& /*MUONHitForRec*/) { // Dummy assignment operator return *this; } //__________________________________________________________________________ +/*AZ Int_t AliMUONHitForRec::Compare(const TObject* Hit) const { // "Compare" function to sort with increasing chamber number. @@ -131,6 +106,17 @@ Int_t AliMUONHitForRec::Compare(const TObject* Hit) const else if (fChamberNumber == ((AliMUONHitForRec*)Hit)->fChamberNumber) return( 0); else return(+1); } +*/ + //__________________________________________________________________________ +Int_t AliMUONHitForRec::Compare(const TObject* Hit) const +{ + // "Compare" function to sort with decreasing Z-coordinate (spectro. MUON z<0). + // Returns 1 (0, -1) if Z-coordinate of current HitForRec + // is smaller than (equal to, larger than) Z-coordinate of Hit + if (fZ < ((AliMUONHitForRec*)Hit)->fZ) return(1); + else if (fZ == ((AliMUONHitForRec*)Hit)->fZ) return( 0); + else return(-1); +} //__________________________________________________________________________ Double_t AliMUONHitForRec::NormalizedChi2WithHitForRec(AliMUONHitForRec* HitForRec, Double_t Sigma2Cut)