Public Member Functions | Private Attributes

CbmRichRingLight Class Reference

#include <CbmRichRingLight.h>

Public Member Functions

 CbmRichRingLight ()
 Standard constructor.
virtual ~CbmRichRingLight ()
 Destructor.
void AddHit (CbmRichHitLight hit, unsigned short id=-1)
 Add new hit to the ring.
bool RemoveHit (int hitId)
 Remove hit from the ring.
int GetNofHits () const
 Return number of hits in ring.
CbmRichHitLight GetHit (int ind)
 Return hit by the index.
unsigned short GetHitId (int ind)
 Return hit index in TClonesArray.
void SetCenterX (float x)
void SetCenterY (float y)
void SetRadius (float r)
void SetXYR (float x, float y, float r)
 Set all 3 circle parameters.
void SetXYABP (float x, float y, float a, float b, float p)
 Set all 5 ellipse parameters.
void SetChi2 (float chi2)
void SetAngle (float angle)
void SetNofHitsOnRing (unsigned short onring)
void SetSelectionNN (float selectionNN)
float GetCenterX () const
float GetCenterY () const
float GetRadius () const
float GetAaxis () const
float GetBaxis () const
float GetPhi () const
void SetAaxis (double a)
void SetBaxis (double b)
void SetPhi (double phi)
double GetXF1 () const
 Calculate and return X coordinate of the first focus.
double GetYF1 () const
 Calculate and return Y coordinate of the first focus.
double GetXF2 () const
 Calculate and return X coordinate of the second focus.
double GetYF2 () const
 Calculate and return Y coordinate of the second focus.
void SetABCDEF (float a, float b, float c, float d, float e, float f)
 Set all 6 parameters of curve equation Axx+Bxy+Cyy+Dx+Ey+F.
float GetAPar () const
float GetBPar () const
float GetCPar () const
float GetDPar () const
float GetEPar () const
float GetFPar () const
float GetSelectionNN () const
float GetChi2 () const
float GetRadialPosition () const
 Return radial position of the ring.
float GetAngle () const
unsigned short GetNofHitsOnRing () const
int GetRecFlag () const
void SetRecFlag (int r)
 CbmRichRingLight ()
 Standard constructor.
virtual ~CbmRichRingLight ()
 Destructor.
void AddHit (CbmRichHitLight hit, unsigned short id=-1)
 Add new hit to the ring.
bool RemoveHit (int hitId)
 Remove hit from the ring.
int GetNofHits () const
 Return number of hits in ring.
CbmRichHitLight GetHit (int ind)
 Return hit by the index.
unsigned short GetHitId (int ind)
 Return hit index in TClonesArray.
void SetCenterX (float x)
void SetCenterY (float y)
void SetRadius (float r)
void SetXYR (float x, float y, float r)
 Set all 3 circle parameters.
void SetXYABP (float x, float y, float a, float b, float p)
 Set all 5 ellipse parameters.
void SetChi2 (float chi2)
void SetAngle (float angle)
void SetNofHitsOnRing (unsigned short onring)
void SetSelectionNN (float selectionNN)
float GetCenterX () const
float GetCenterY () const
float GetRadius () const
float GetAaxis () const
float GetBaxis () const
float GetPhi () const
void SetAaxis (double a)
void SetBaxis (double b)
void SetPhi (double phi)
double GetXF1 () const
 Calculate and return X coordinate of the first focus.
double GetYF1 () const
 Calculate and return Y coordinate of the first focus.
double GetXF2 () const
 Calculate and return X coordinate of the second focus.
double GetYF2 () const
 Calculate and return Y coordinate of the second focus.
void SetABCDEF (float a, float b, float c, float d, float e, float f)
 Set all 6 parameters of curve equation Axx+Bxy+Cyy+Dx+Ey+F.
float GetAPar () const
float GetBPar () const
float GetCPar () const
float GetDPar () const
float GetEPar () const
float GetFPar () const
float GetSelectionNN () const
float GetChi2 () const
float GetRadialPosition () const
 Return radial position of the ring.
float GetAngle () const
unsigned short GetNofHitsOnRing () const
int GetRecFlag () const
void SetRecFlag (int r)

Private Attributes

vector< CbmRichHitLightfHits
vector< unsigned short > fHitIds
float fCenterX
float fCenterY
float fRadius
float fAaxis
float fBaxis
float fPhi
float fAPar
float fBPar
float fCPar
float fDPar
float fEPar
float fFPar
int fRecFlag
float fChi2
float fAngle
unsigned short fNofHitsOnRing
float fSelectionNN

Detailed Description

Definition at line 46 of file CbmRichRingLight.h.


Constructor & Destructor Documentation

CbmRichRingLight::CbmRichRingLight (  )  [inline]

Standard constructor.

Definition at line 53 of file CbmRichRingLight.h.

References fHitIds, and fHits.

virtual CbmRichRingLight::~CbmRichRingLight (  )  [inline, virtual]

Destructor.

Definition at line 87 of file CbmRichRingLight.h.

References fHitIds, and fHits.

CbmRichRingLight::CbmRichRingLight (  )  [inline]

Standard constructor.

Definition at line 53 of file CbmRichRingLight.h.

References fHitIds, and fHits.

virtual CbmRichRingLight::~CbmRichRingLight (  )  [inline, virtual]

Destructor.

Definition at line 87 of file CbmRichRingLight.h.

References fHitIds, and fHits.


Member Function Documentation

void CbmRichRingLight::AddHit ( CbmRichHitLight  hit,
unsigned short  id = -1 
) [inline]

Add new hit to the ring.

Parameters:
[in] hit New hit to be added.
[in] id index of hit in TClonesArray.

Definition at line 98 of file CbmRichRingLight.h.

References fHitIds, and fHits.

Referenced by CbmRichRingFinderHoughImpl::FindPeak().

void CbmRichRingLight::AddHit ( CbmRichHitLight  hit,
unsigned short  id = -1 
) [inline]

Add new hit to the ring.

Parameters:
[in] hit New hit to be added.
[in] id index of hit in TClonesArray.

Definition at line 98 of file CbmRichRingLight.h.

References fHitIds, and fHits.

float CbmRichRingLight::GetAaxis (  )  const [inline]
float CbmRichRingLight::GetAaxis (  )  const [inline]

Definition at line 192 of file CbmRichRingLight.h.

References fAaxis.

float CbmRichRingLight::GetAngle (  )  const [inline]

Definition at line 296 of file CbmRichRingLight.h.

References fAngle.

float CbmRichRingLight::GetAngle (  )  const [inline]

Definition at line 296 of file CbmRichRingLight.h.

References fAngle.

float CbmRichRingLight::GetAPar (  )  const [inline]

Definition at line 274 of file CbmRichRingLight.h.

References fAPar.

float CbmRichRingLight::GetAPar (  )  const [inline]

Definition at line 274 of file CbmRichRingLight.h.

References fAPar.

float CbmRichRingLight::GetBaxis (  )  const [inline]
float CbmRichRingLight::GetBaxis (  )  const [inline]

Definition at line 193 of file CbmRichRingLight.h.

References fBaxis.

float CbmRichRingLight::GetBPar (  )  const [inline]

Definition at line 275 of file CbmRichRingLight.h.

References fBPar.

float CbmRichRingLight::GetBPar (  )  const [inline]

Definition at line 275 of file CbmRichRingLight.h.

References fBPar.

float CbmRichRingLight::GetCenterX (  )  const [inline]

Definition at line 188 of file CbmRichRingLight.h.

References fCenterX.

float CbmRichRingLight::GetCenterX (  )  const [inline]
float CbmRichRingLight::GetCenterY (  )  const [inline]
float CbmRichRingLight::GetCenterY (  )  const [inline]

Definition at line 189 of file CbmRichRingLight.h.

References fCenterY.

float CbmRichRingLight::GetChi2 (  )  const [inline]
float CbmRichRingLight::GetChi2 (  )  const [inline]

Definition at line 282 of file CbmRichRingLight.h.

References fChi2.

float CbmRichRingLight::GetCPar (  )  const [inline]

Definition at line 276 of file CbmRichRingLight.h.

References fCPar.

float CbmRichRingLight::GetCPar (  )  const [inline]

Definition at line 276 of file CbmRichRingLight.h.

References fCPar.

float CbmRichRingLight::GetDPar (  )  const [inline]

Definition at line 277 of file CbmRichRingLight.h.

References fDPar.

float CbmRichRingLight::GetDPar (  )  const [inline]

Definition at line 277 of file CbmRichRingLight.h.

References fDPar.

float CbmRichRingLight::GetEPar (  )  const [inline]

Definition at line 278 of file CbmRichRingLight.h.

References fEPar.

float CbmRichRingLight::GetEPar (  )  const [inline]

Definition at line 278 of file CbmRichRingLight.h.

References fEPar.

float CbmRichRingLight::GetFPar (  )  const [inline]

Definition at line 279 of file CbmRichRingLight.h.

References fFPar.

float CbmRichRingLight::GetFPar (  )  const [inline]

Definition at line 279 of file CbmRichRingLight.h.

References fFPar.

CbmRichHitLight CbmRichRingLight::GetHit ( int  ind  )  [inline]
CbmRichHitLight CbmRichRingLight::GetHit ( int  ind  )  [inline]

Return hit by the index.

Parameters:
[in] ind Index of hit in local array.

Definition at line 133 of file CbmRichRingLight.h.

References fHits.

unsigned short CbmRichRingLight::GetHitId ( int  ind  )  [inline]

Return hit index in TClonesArray.

Parameters:
[in] ind Index of hit in local array.

Definition at line 139 of file CbmRichRingLight.h.

References fHitIds.

unsigned short CbmRichRingLight::GetHitId ( int  ind  )  [inline]

Return hit index in TClonesArray.

Parameters:
[in] ind Index of hit in local array.

Definition at line 139 of file CbmRichRingLight.h.

References fHitIds.

int CbmRichRingLight::GetNofHits (  )  const [inline]

Return number of hits in ring.

Definition at line 127 of file CbmRichRingLight.h.

References fHitIds.

int CbmRichRingLight::GetNofHits (  )  const [inline]
unsigned short CbmRichRingLight::GetNofHitsOnRing (  )  const [inline]

Definition at line 298 of file CbmRichRingLight.h.

References fNofHitsOnRing.

unsigned short CbmRichRingLight::GetNofHitsOnRing (  )  const [inline]

Definition at line 298 of file CbmRichRingLight.h.

References fNofHitsOnRing.

float CbmRichRingLight::GetPhi (  )  const [inline]
float CbmRichRingLight::GetPhi (  )  const [inline]

Definition at line 194 of file CbmRichRingLight.h.

References fPhi.

float CbmRichRingLight::GetRadialPosition (  )  const [inline]

Return radial position of the ring.

Definition at line 287 of file CbmRichRingLight.h.

References fCenterX, and fCenterY.

float CbmRichRingLight::GetRadialPosition (  )  const [inline]

Return radial position of the ring.

Definition at line 287 of file CbmRichRingLight.h.

References fCenterX, and fCenterY.

float CbmRichRingLight::GetRadius (  )  const [inline]
float CbmRichRingLight::GetRadius (  )  const [inline]

Definition at line 190 of file CbmRichRingLight.h.

References fRadius.

int CbmRichRingLight::GetRecFlag (  )  const [inline]

Definition at line 300 of file CbmRichRingLight.h.

References fRecFlag.

int CbmRichRingLight::GetRecFlag (  )  const [inline]

Definition at line 300 of file CbmRichRingLight.h.

References fRecFlag.

float CbmRichRingLight::GetSelectionNN (  )  const [inline]

Definition at line 281 of file CbmRichRingLight.h.

References fSelectionNN.

float CbmRichRingLight::GetSelectionNN (  )  const [inline]

Definition at line 281 of file CbmRichRingLight.h.

References fSelectionNN.

Referenced by CbmRichRingComparatorMore::operator()().

double CbmRichRingLight::GetXF1 (  )  const [inline]

Calculate and return X coordinate of the first focus.

Definition at line 202 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, and fPhi.

double CbmRichRingLight::GetXF1 (  )  const [inline]

Calculate and return X coordinate of the first focus.

Definition at line 202 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, and fPhi.

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

double CbmRichRingLight::GetXF2 (  )  const [inline]

Calculate and return X coordinate of the second focus.

Definition at line 227 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, and fPhi.

double CbmRichRingLight::GetXF2 (  )  const [inline]

Calculate and return X coordinate of the second focus.

Definition at line 227 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, and fPhi.

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

double CbmRichRingLight::GetYF1 (  )  const [inline]

Calculate and return Y coordinate of the first focus.

Definition at line 213 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterY, and fPhi.

double CbmRichRingLight::GetYF1 (  )  const [inline]

Calculate and return Y coordinate of the first focus.

Definition at line 213 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterY, and fPhi.

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

double CbmRichRingLight::GetYF2 (  )  const [inline]

Calculate and return Y coordinate of the second focus.

Definition at line 238 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterY, and fPhi.

double CbmRichRingLight::GetYF2 (  )  const [inline]

Calculate and return Y coordinate of the second focus.

Definition at line 238 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterY, and fPhi.

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

bool CbmRichRingLight::RemoveHit ( int  hitId  )  [inline]

Remove hit from the ring.

Parameters:
[in] hitId index of hit in TClonesArray.
Returns:
true if hit was removed, false if hit was NOT removed.

Definition at line 111 of file CbmRichRingLight.h.

References fHitIds.

bool CbmRichRingLight::RemoveHit ( int  hitId  )  [inline]

Remove hit from the ring.

Parameters:
[in] hitId index of hit in TClonesArray.
Returns:
true if hit was removed, false if hit was NOT removed.

Definition at line 111 of file CbmRichRingLight.h.

References fHitIds.

void CbmRichRingLight::SetAaxis ( double  a  )  [inline]

Definition at line 195 of file CbmRichRingLight.h.

References fAaxis.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

void CbmRichRingLight::SetAaxis ( double  a  )  [inline]

Definition at line 195 of file CbmRichRingLight.h.

References fAaxis.

void CbmRichRingLight::SetABCDEF ( float  a,
float  b,
float  c,
float  d,
float  e,
float  f 
) [inline]

Set all 6 parameters of curve equation Axx+Bxy+Cyy+Dx+Ey+F.

Parameters:
[in] a A parameter.
[in] b B parameter.
[in] c C parameter.
[in] d D parameter.
[in] e E parameter.
[in] f F parameter.

Definition at line 258 of file CbmRichRingLight.h.

References fAPar, fBPar, fCPar, fDPar, fEPar, and fFPar.

void CbmRichRingLight::SetABCDEF ( float  a,
float  b,
float  c,
float  d,
float  e,
float  f 
) [inline]

Set all 6 parameters of curve equation Axx+Bxy+Cyy+Dx+Ey+F.

Parameters:
[in] a A parameter.
[in] b B parameter.
[in] c C parameter.
[in] d D parameter.
[in] e E parameter.
[in] f F parameter.

Definition at line 258 of file CbmRichRingLight.h.

References fAPar, fBPar, fCPar, fDPar, fEPar, and fFPar.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

void CbmRichRingLight::SetAngle ( float  angle  )  [inline]

Definition at line 184 of file CbmRichRingLight.h.

References fAngle.

void CbmRichRingLight::SetAngle ( float  angle  )  [inline]

Definition at line 184 of file CbmRichRingLight.h.

References fAngle.

void CbmRichRingLight::SetBaxis ( double  b  )  [inline]

Definition at line 196 of file CbmRichRingLight.h.

References fBaxis.

void CbmRichRingLight::SetBaxis ( double  b  )  [inline]

Definition at line 196 of file CbmRichRingLight.h.

References fBaxis.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

void CbmRichRingLight::SetCenterX ( float  x  )  [inline]

Definition at line 141 of file CbmRichRingLight.h.

References fCenterX.

void CbmRichRingLight::SetCenterX ( float  x  )  [inline]

Definition at line 141 of file CbmRichRingLight.h.

References fCenterX.

Referenced by CbmRichRingFitterCOP::FitRing().

void CbmRichRingLight::SetCenterY ( float  y  )  [inline]

Definition at line 142 of file CbmRichRingLight.h.

References fCenterY.

void CbmRichRingLight::SetCenterY ( float  y  )  [inline]

Definition at line 142 of file CbmRichRingLight.h.

References fCenterY.

Referenced by CbmRichRingFitterCOP::FitRing().

void CbmRichRingLight::SetChi2 ( float  chi2  )  [inline]

Definition at line 183 of file CbmRichRingLight.h.

References fChi2.

void CbmRichRingLight::SetChi2 ( float  chi2  )  [inline]

Definition at line 183 of file CbmRichRingLight.h.

References fChi2.

Referenced by CbmRichRingFitterEllipseBase::CalcChi2(), and CbmRichRingFitterBase::CalcChi2().

void CbmRichRingLight::SetNofHitsOnRing ( unsigned short  onring  )  [inline]

Definition at line 185 of file CbmRichRingLight.h.

References fNofHitsOnRing.

void CbmRichRingLight::SetNofHitsOnRing ( unsigned short  onring  )  [inline]

Definition at line 185 of file CbmRichRingLight.h.

References fNofHitsOnRing.

void CbmRichRingLight::SetPhi ( double  phi  )  [inline]

Definition at line 197 of file CbmRichRingLight.h.

References fPhi.

void CbmRichRingLight::SetPhi ( double  phi  )  [inline]

Definition at line 197 of file CbmRichRingLight.h.

References fPhi.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

void CbmRichRingLight::SetRadius ( float  r  )  [inline]
void CbmRichRingLight::SetRadius ( float  r  )  [inline]

Definition at line 143 of file CbmRichRingLight.h.

References fRadius.

void CbmRichRingLight::SetRecFlag ( int  r  )  [inline]

Definition at line 301 of file CbmRichRingLight.h.

References fRecFlag.

void CbmRichRingLight::SetRecFlag ( int  r  )  [inline]

Definition at line 301 of file CbmRichRingLight.h.

References fRecFlag.

void CbmRichRingLight::SetSelectionNN ( float  selectionNN  )  [inline]

Definition at line 186 of file CbmRichRingLight.h.

References fSelectionNN.

void CbmRichRingLight::SetSelectionNN ( float  selectionNN  )  [inline]

Definition at line 186 of file CbmRichRingLight.h.

References fSelectionNN.

void CbmRichRingLight::SetXYABP ( float  x,
float  y,
float  a,
float  b,
float  p 
) [inline]

Set all 5 ellipse parameters.

Parameters:
[in] x X coordinate of ellipse center.
[in] y Y coordinate of ellipse center.
[in] a Major half axis of ellipse.
[in] b Minor half axis of ellipse.
[in] p Rotation angle of ellipse [rad].

Definition at line 169 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, fCenterY, and fPhi.

void CbmRichRingLight::SetXYABP ( float  x,
float  y,
float  a,
float  b,
float  p 
) [inline]

Set all 5 ellipse parameters.

Parameters:
[in] x X coordinate of ellipse center.
[in] y Y coordinate of ellipse center.
[in] a Major half axis of ellipse.
[in] b Minor half axis of ellipse.
[in] p Rotation angle of ellipse [rad].

Definition at line 169 of file CbmRichRingLight.h.

References fAaxis, fBaxis, fCenterX, fCenterY, and fPhi.

Referenced by CbmRichRingFitterEllipseTau::DoFit(), and CbmRichRingFitterEllipseTau::TransformEllipse().

void CbmRichRingLight::SetXYR ( float  x,
float  y,
float  r 
) [inline]

Set all 3 circle parameters.

Parameters:
[in] x X coordinate of circle center.
[in] y Y coordinate of circle center.
[in] r Radius of circle.

Definition at line 151 of file CbmRichRingLight.h.

References fCenterX, fCenterY, and fRadius.

void CbmRichRingLight::SetXYR ( float  x,
float  y,
float  r 
) [inline]

Set all 3 circle parameters.

Parameters:
[in] x X coordinate of circle center.
[in] y Y coordinate of circle center.
[in] r Radius of circle.

Definition at line 151 of file CbmRichRingLight.h.

References fCenterX, fCenterY, and fRadius.


Field Documentation

float CbmRichRingLight::fAaxis [private]

Definition at line 311 of file CbmRichRingLight.h.

Referenced by GetAaxis(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetAaxis(), and SetXYABP().

float CbmRichRingLight::fAngle [private]

Definition at line 325 of file CbmRichRingLight.h.

Referenced by GetAngle(), and SetAngle().

float CbmRichRingLight::fAPar [private]

Definition at line 315 of file CbmRichRingLight.h.

Referenced by GetAPar(), and SetABCDEF().

float CbmRichRingLight::fBaxis [private]

Definition at line 312 of file CbmRichRingLight.h.

Referenced by GetBaxis(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetBaxis(), and SetXYABP().

float CbmRichRingLight::fBPar [private]

Definition at line 316 of file CbmRichRingLight.h.

Referenced by GetBPar(), and SetABCDEF().

float CbmRichRingLight::fCenterX [private]
float CbmRichRingLight::fCenterY [private]
float CbmRichRingLight::fChi2 [private]

Definition at line 324 of file CbmRichRingLight.h.

Referenced by GetChi2(), and SetChi2().

float CbmRichRingLight::fCPar [private]

Definition at line 317 of file CbmRichRingLight.h.

Referenced by GetCPar(), and SetABCDEF().

float CbmRichRingLight::fDPar [private]

Definition at line 318 of file CbmRichRingLight.h.

Referenced by GetDPar(), and SetABCDEF().

float CbmRichRingLight::fEPar [private]

Definition at line 319 of file CbmRichRingLight.h.

Referenced by GetEPar(), and SetABCDEF().

float CbmRichRingLight::fFPar [private]

Definition at line 320 of file CbmRichRingLight.h.

Referenced by GetFPar(), and SetABCDEF().

vector< unsigned short > CbmRichRingLight::fHitIds [private]

Definition at line 304 of file CbmRichRingLight.h.

Referenced by AddHit(), CbmRichRingLight(), GetHit(), and ~CbmRichRingLight().

unsigned short CbmRichRingLight::fNofHitsOnRing [private]

Definition at line 326 of file CbmRichRingLight.h.

Referenced by GetNofHitsOnRing(), and SetNofHitsOnRing().

float CbmRichRingLight::fPhi [private]

Definition at line 313 of file CbmRichRingLight.h.

Referenced by GetPhi(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetPhi(), and SetXYABP().

float CbmRichRingLight::fRadius [private]

Definition at line 309 of file CbmRichRingLight.h.

Referenced by GetRadius(), SetRadius(), and SetXYR().

Definition at line 322 of file CbmRichRingLight.h.

Referenced by GetRecFlag(), and SetRecFlag().

Definition at line 327 of file CbmRichRingLight.h.

Referenced by GetSelectionNN(), and SetSelectionNN().


The documentation for this class was generated from the following files: