/* $Id: CbmRichRing.cxx,v 1.8 2006/09/13 14:51:28 hoehne Exp $*/ /* History of CVS commits: * * $Log: CbmRichRing.cxx,v $ * Revision 1.8 2006/09/13 14:51:28 hoehne * two variables (Selection2D, SelectionNN) added in which values between 0 and 1 are stored for fake rejection * ReconstructedFlag removed * * Revision 1.7 2006/08/11 14:03:57 hoehne * move SetUncertainty and GetUncertainty to SetChi2 and GetChi2 * * Revision 1.6 2006/07/12 06:27:54 hoehne * new functions: SetDistance and GetDistance added which set/ give the distance between ring center and track attached to this * ring * * Revision 1.5 2006/02/23 11:24:10 hoehne * RecFlag added (Simeon Lebedev) * * Revision 1.4 2006/01/23 11:40:13 hoehne * MCMotherID added * * Revision 1.3 2006/01/19 10:40:06 hoehne * restructured according to new RinfFinder Class: * array of hits belonging to a certain ring added * * * */ // ------------------------------------------------------------------------- // ----- CbmRichRing source file ----- // ----- Created 05/07/04 by A. Soloviev ----- // ------------------------------------------------------------------------- #include "CbmRichRing.h" #include "CbmRichHit.h" #include "TArc.h" #include "TMarker.h" const Double_t CbmRichRing::fgkRadiusMax = 7.; // ----- Default constructor ------------------------------------------- CbmRichRing::CbmRichRing() : TObject(), fCenterX(), fCenterY(), fRadius(), fTrackID ( -1 ), fMCMotherID ( -1 ), fDistance ( 99 ), fChi2 ( 0 ), fSelection2D (-1), fSelectionNN (-1) {} // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmRichRing::CbmRichRing ( const Double_t & x, const Double_t & y, const Double_t & r ) : TObject(), fCenterX ( x ), fCenterY ( y ), fRadius ( r ), fTrackID ( -1 ), fMCMotherID ( -1 ), fDistance ( 99 ), fChi2 ( 0 ), fSelection2D (-1), fSelectionNN (-1) {} // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmRichRing::~CbmRichRing() {} // ------------------------------------------------------------------------- void CbmRichRing::SetCenterX ( const Double_t & x ) { fCenterX = x; } void CbmRichRing::SetCenterY ( const Double_t & y ) { fCenterY = y; } void CbmRichRing::SetRadius ( const Double_t & r ) { fRadius = r; } void CbmRichRing::SetTrackID ( Int_t track ) { fTrackID = track; } void CbmRichRing::SetMCMotherID ( Int_t track ) { fMCMotherID = track; } void CbmRichRing::SetDistance ( Double_t d ) { fDistance = d; } void CbmRichRing::SetChi2 ( const Double_t & chi2 ) { fChi2 = chi2; } void CbmRichRing::SetSelection2D(Double_t selection2D) { fSelection2D = selection2D; } void CbmRichRing::SetSelectionNN(Double_t selectionNN) { fSelectionNN = selectionNN; } const Double_t & CbmRichRing::GetCenterX() const { return fCenterX; } const Double_t & CbmRichRing::GetCenterY() const { return fCenterY; } const Double_t & CbmRichRing::GetRadius() const { return fRadius; } const Int_t CbmRichRing::GetTrackID() const { return fTrackID; } const Int_t CbmRichRing::GetMCMotherID() const { return fMCMotherID; } const Double_t CbmRichRing::GetDistance() const { return fDistance; } const Double_t & CbmRichRing::GetRadiusMax() { return fgkRadiusMax; } const Double_t & CbmRichRing::GetChi2() const { return fChi2; } const Double_t CbmRichRing::GetSelection2D() const { return fSelection2D; } const Double_t CbmRichRing::GetSelectionNN() const { return fSelectionNN; } void CbmRichRing::AddHit(CbmRichHit* pHit) { fHitCollection.push_back(pHit); } CbmRichHit* CbmRichRing::GetHit(Int_t i) { return fHitCollection[i]; } Int_t CbmRichRing::GetNoOfHits() { return fHitCollection.size(); } void CbmRichRing::SetRecFlag ( Int_t iflag ) { fIflag = iflag; } const Int_t CbmRichRing::GetRecFlag() const { return fIflag; } ClassImp(CbmRichRing)