CbmRoot
CbmRichRingLight Class Reference

#include <CbmRichRingLight.h>

Public Member Functions

 CbmRichRingLight ()
 Standard constructor. More...
 
virtual ~CbmRichRingLight ()
 Destructor. More...
 
void AddHit (CbmRichHitLight hit)
 Add new hit to the ring. More...
 
bool RemoveHit (int hitId)
 Remove hit from the ring. More...
 
int GetNofHits () const
 Return number of hits in ring. More...
 
CbmRichHitLight GetHit (int ind)
 Return hit by the index. More...
 
unsigned int GetHitId (int ind)
 Return hit index in TClonesArray. More...
 
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. More...
 
void SetXYABP (float x, float y, float a, float b, float p)
 Set all 5 ellipse parameters. More...
 
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. More...
 
double GetYF1 () const
 Calculate and return Y coordinate of the first focus. More...
 
double GetXF2 () const
 Calculate and return X coordinate of the second focus. More...
 
double GetYF2 () const
 Calculate and return Y coordinate of the second focus. More...
 
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. More...
 
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. More...
 
float GetAngle () const
 
unsigned short GetNofHitsOnRing () const
 
int GetRecFlag () const
 
void SetRecFlag (int r)
 

Private Attributes

std::vector< CbmRichHitLightfHits
 
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 39 of file CbmRichRingLight.h.

Constructor & Destructor Documentation

◆ CbmRichRingLight()

CbmRichRingLight::CbmRichRingLight ( )
inline

Standard constructor.

Definition at line 44 of file CbmRichRingLight.h.

References fHits.

◆ ~CbmRichRingLight()

virtual CbmRichRingLight::~CbmRichRingLight ( )
inlinevirtual

Destructor.

Definition at line 81 of file CbmRichRingLight.h.

References fHits.

Member Function Documentation

◆ AddHit()

◆ GetAaxis()

◆ GetAngle()

float CbmRichRingLight::GetAngle ( ) const
inline

Definition at line 258 of file CbmRichRingLight.h.

References fAngle.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ GetAPar()

float CbmRichRingLight::GetAPar ( ) const
inline

Definition at line 234 of file CbmRichRingLight.h.

References fAPar.

◆ GetBaxis()

◆ GetBPar()

float CbmRichRingLight::GetBPar ( ) const
inline

Definition at line 235 of file CbmRichRingLight.h.

References fBPar.

◆ GetCenterX()

◆ GetCenterY()

◆ GetChi2()

◆ GetCPar()

float CbmRichRingLight::GetCPar ( ) const
inline

Definition at line 236 of file CbmRichRingLight.h.

References fCPar.

◆ GetDPar()

float CbmRichRingLight::GetDPar ( ) const
inline

Definition at line 237 of file CbmRichRingLight.h.

References fDPar.

◆ GetEPar()

float CbmRichRingLight::GetEPar ( ) const
inline

Definition at line 238 of file CbmRichRingLight.h.

References fEPar.

◆ GetFPar()

float CbmRichRingLight::GetFPar ( ) const
inline

Definition at line 239 of file CbmRichRingLight.h.

References fFPar.

◆ GetHit()

◆ GetHitId()

unsigned int CbmRichRingLight::GetHitId ( int  ind)
inline

Return hit index in TClonesArray.

Parameters
[in]indIndex of hit in local array.

Definition at line 120 of file CbmRichRingLight.h.

References fHits.

Referenced by CbmRichRingFinderHoughImpl::ReAssignSharedHits(), and CbmRichRingFinderHoughImpl::RingSelection().

◆ GetNofHits()

◆ GetNofHitsOnRing()

unsigned short CbmRichRingLight::GetNofHitsOnRing ( ) const
inline

Definition at line 260 of file CbmRichRingLight.h.

References fNofHitsOnRing.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ GetPhi()

◆ GetRadialPosition()

float CbmRichRingLight::GetRadialPosition ( ) const
inline

Return radial position of the ring.

Definition at line 247 of file CbmRichRingLight.h.

References f, fCenterX, fCenterY, and sqrt().

Referenced by CbmRichTrainAnnSelect::DiffFakeTrueCircle(), and CbmRichRingSelectAnn::DoSelect().

◆ GetRadius()

◆ GetRecFlag()

int CbmRichRingLight::GetRecFlag ( ) const
inline

Definition at line 262 of file CbmRichRingLight.h.

References fRecFlag.

◆ GetSelectionNN()

float CbmRichRingLight::GetSelectionNN ( ) const
inline

◆ GetXF1()

double CbmRichRingLight::GetXF1 ( ) const
inline

Calculate and return X coordinate of the first focus.

Definition at line 173 of file CbmRichRingLight.h.

References cos(), fAaxis, fabs(), fBaxis, fCenterX, fPhi, and sqrt().

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

◆ GetXF2()

double CbmRichRingLight::GetXF2 ( ) const
inline

Calculate and return X coordinate of the second focus.

Definition at line 196 of file CbmRichRingLight.h.

References cos(), fAaxis, fabs(), fBaxis, fCenterX, fPhi, and sqrt().

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

◆ GetYF1()

double CbmRichRingLight::GetYF1 ( ) const
inline

Calculate and return Y coordinate of the first focus.

Definition at line 183 of file CbmRichRingLight.h.

References fAaxis, fabs(), fBaxis, fCenterY, fPhi, sin(), and sqrt().

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

◆ GetYF2()

double CbmRichRingLight::GetYF2 ( ) const
inline

Calculate and return Y coordinate of the second focus.

Definition at line 206 of file CbmRichRingLight.h.

References fAaxis, fabs(), fBaxis, fCenterY, fPhi, sin(), and sqrt().

Referenced by CbmRichRingFitterEllipseBase::CalcChi2().

◆ RemoveHit()

bool CbmRichRingLight::RemoveHit ( int  hitId)
inline

Remove hit from the ring.

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

Definition at line 94 of file CbmRichRingLight.h.

References fHits.

Referenced by CbmRichRingFinderHoughImpl::ReAssignSharedHits().

◆ SetAaxis()

void CbmRichRingLight::SetAaxis ( double  a)
inline

◆ SetABCDEF()

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]aA parameter.
[in]bB parameter.
[in]cC parameter.
[in]dD parameter.
[in]eE parameter.
[in]fF parameter.

Definition at line 225 of file CbmRichRingLight.h.

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

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

◆ SetAngle()

void CbmRichRingLight::SetAngle ( float  angle)
inline

Definition at line 155 of file CbmRichRingLight.h.

References fAngle.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ SetBaxis()

void CbmRichRingLight::SetBaxis ( double  b)
inline

◆ SetCenterX()

void CbmRichRingLight::SetCenterX ( float  x)
inline

◆ SetCenterY()

void CbmRichRingLight::SetCenterY ( float  y)
inline

◆ SetChi2()

void CbmRichRingLight::SetChi2 ( float  chi2)
inline

Definition at line 154 of file CbmRichRingLight.h.

References fChi2.

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

◆ SetNofHitsOnRing()

void CbmRichRingLight::SetNofHitsOnRing ( unsigned short  onring)
inline

Definition at line 156 of file CbmRichRingLight.h.

References fNofHitsOnRing.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ SetPhi()

void CbmRichRingLight::SetPhi ( double  phi)
inline

Definition at line 168 of file CbmRichRingLight.h.

References fPhi.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

◆ SetRadius()

◆ SetRecFlag()

void CbmRichRingLight::SetRecFlag ( int  r)
inline

Definition at line 263 of file CbmRichRingLight.h.

References fRecFlag.

Referenced by CbmRichRingFinderHoughImpl::RingSelection().

◆ SetSelectionNN()

void CbmRichRingLight::SetSelectionNN ( float  selectionNN)
inline

Definition at line 157 of file CbmRichRingLight.h.

References fSelectionNN.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ SetXYABP()

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

Set all 5 ellipse parameters.

Parameters
[in]xX coordinate of ellipse center.
[in]yY coordinate of ellipse center.
[in]aMajor half axis of ellipse.
[in]bMinor half axis of ellipse.
[in]pRotation angle of ellipse [rad].

Definition at line 146 of file CbmRichRingLight.h.

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

Referenced by CbmRichRingFitterEllipseTau::DoFit(), CbmRichRingFitterEllipseMinuit::DoFit(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichRingFitterEllipseTau::TransformEllipse(), and CbmRichRingFitterEllipseMinuit::TransformToRichRing().

◆ SetXYR()

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

Set all 3 circle parameters.

Parameters
[in]xX coordinate of circle center.
[in]yY coordinate of circle center.
[in]rRadius of circle.

Definition at line 132 of file CbmRichRingLight.h.

References fCenterX, fCenterY, fRadius, x, and y.

Member Data Documentation

◆ fAaxis

float CbmRichRingLight::fAaxis
private

Definition at line 272 of file CbmRichRingLight.h.

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

◆ fAngle

float CbmRichRingLight::fAngle
private

Definition at line 286 of file CbmRichRingLight.h.

Referenced by GetAngle(), and SetAngle().

◆ fAPar

float CbmRichRingLight::fAPar
private

Definition at line 276 of file CbmRichRingLight.h.

Referenced by GetAPar(), and SetABCDEF().

◆ fBaxis

float CbmRichRingLight::fBaxis
private

Definition at line 273 of file CbmRichRingLight.h.

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

◆ fBPar

float CbmRichRingLight::fBPar
private

Definition at line 277 of file CbmRichRingLight.h.

Referenced by GetBPar(), and SetABCDEF().

◆ fCenterX

float CbmRichRingLight::fCenterX
private

◆ fCenterY

float CbmRichRingLight::fCenterY
private

◆ fChi2

float CbmRichRingLight::fChi2
private

Definition at line 285 of file CbmRichRingLight.h.

Referenced by GetChi2(), and SetChi2().

◆ fCPar

float CbmRichRingLight::fCPar
private

Definition at line 278 of file CbmRichRingLight.h.

Referenced by GetCPar(), and SetABCDEF().

◆ fDPar

float CbmRichRingLight::fDPar
private

Definition at line 279 of file CbmRichRingLight.h.

Referenced by GetDPar(), and SetABCDEF().

◆ fEPar

float CbmRichRingLight::fEPar
private

Definition at line 280 of file CbmRichRingLight.h.

Referenced by GetEPar(), and SetABCDEF().

◆ fFPar

float CbmRichRingLight::fFPar
private

Definition at line 281 of file CbmRichRingLight.h.

Referenced by GetFPar(), and SetABCDEF().

◆ fHits

std::vector<CbmRichHitLight> CbmRichRingLight::fHits
private

◆ fNofHitsOnRing

unsigned short CbmRichRingLight::fNofHitsOnRing
private

Definition at line 287 of file CbmRichRingLight.h.

Referenced by GetNofHitsOnRing(), and SetNofHitsOnRing().

◆ fPhi

float CbmRichRingLight::fPhi
private

Definition at line 274 of file CbmRichRingLight.h.

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

◆ fRadius

float CbmRichRingLight::fRadius
private

Definition at line 270 of file CbmRichRingLight.h.

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

◆ fRecFlag

int CbmRichRingLight::fRecFlag
private

Definition at line 283 of file CbmRichRingLight.h.

Referenced by GetRecFlag(), and SetRecFlag().

◆ fSelectionNN

float CbmRichRingLight::fSelectionNN
private

Definition at line 288 of file CbmRichRingLight.h.

Referenced by GetSelectionNN(), and SetSelectionNN().


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