#include "AliMUONHit.h"
#include "AliMUONConstants.h"
#include "AliLog.h"
+#include "Riostream.h"
ClassImp(AliMUONHitForRec) // Class implementation in ROOT context
chi2 = chi2 + normDiff;
return chi2;
}
+
+//______________________________________________________________________________
+void
+AliMUONHitForRec::Print(Option_t* /*opt*/) const
+{
+ cout << "<AliMUONHitForRec> Coordinates (B,NB,Z) = ("
+ << setw(8) << setprecision(5) << fBendingCoor
+ << "," << setw(8) << setprecision(5) << fNonBendingCoor << ","
+ << setw(8) << setprecision(5) << fZ << ") "
+ << "Reso (B,NB)=(" << setw(8) << setprecision(5) << TMath::Sqrt(fBendingReso2)
+ << "," << setw(8) << setprecision(5) << TMath::Sqrt(fNonBendingReso2)
+ << ") "
+ << "Number " << setw(3) << fHitNumber
+ << " within chamber " << setw(3) <<fChamberNumber
+ << " DE " << setw(4) << fDetElemId
+ << endl;
+}
Bool_t IsSortable() const { return kTRUE; }
Int_t Compare(const TObject* HitForRec) const; // "Compare" function for sorting
-
+ virtual void Print(Option_t* opt="") const;
+
private:
Double_t fBendingCoor; ///< coordinate (cm) in bending plane
Double_t fNonBendingCoor; ///< coordinate (cm) in non bending plane
// fNonBendingSlopeReso2 = sReso2 + 2.0 * MCSfactor;
// return;
// }
+
+//_____________________________________________________________________________
+void
+AliMUONSegment::Print(Option_t*) const
+{
+ cout.precision(5);
+ cout.width(5);
+
+ cout << "<AliMUONSegment>"
+ << "(Coor,Slope,Impact)Bending=("
+ << fBendingCoor << "," << fBendingSlope << "," << fBendingImpact
+ << ")" << endl
+ << "(Coor,Slope,Impact)NonBending=("
+ << fNonBendingCoor << "," << fNonBendingSlope << "," << fNonBendingImpact
+ << ")" << endl
+ << "Cov (coor,slope,coor & slope)Bending=("
+ << fBendingCoorReso2 << "," << fBendingSlopeReso2 << "," << fBendingCoorSlopeReso2 << endl
+ << "Cov (coor,slope,coor & slope)NonBending=("
+ << fNonBendingCoorReso2 << "," << fNonBendingSlopeReso2 << "," << fNonBendingCoorSlopeReso2 << endl;
+ if ( fHitForRecPtr1 )
+ {
+ cout << "HitForRec1=";
+ fHitForRecPtr1->Print();
+ }
+ if ( fHitForRecPtr2 )
+ {
+ cout << "HitForRec2=";
+ fHitForRecPtr2->Print();
+ }
+}
Bool_t IsSortable() const { return kTRUE; }
Int_t Compare(const TObject* Segment) const; // "Compare" function for sorting
+ void Print(Option_t* opt="") const;
+
private:
AliMUONHitForRec* fHitForRecPtr1; ///< pointer to HitForRec in first chamber
AliMUONHitForRec* fHitForRecPtr2; ///< pointer to HitForRec in second chamber