CbmRoot
Loading...
Searching...
No Matches
CbmRichRingLight Class Reference

#include <CbmRichRingLight.h>

Public Member Functions

 CbmRichRingLight ()
 Standard constructor.
 
virtual ~CbmRichRingLight ()
 Destructor.
 
void AddHit (CbmRichHitLight hit)
 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 int 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

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 42 of file CbmRichRingLight.h.

Constructor & Destructor Documentation

◆ CbmRichRingLight()

CbmRichRingLight::CbmRichRingLight ( )
inline

Standard constructor.

Definition at line 47 of file CbmRichRingLight.h.

References fHits.

◆ ~CbmRichRingLight()

virtual CbmRichRingLight::~CbmRichRingLight ( )
inlinevirtual

Destructor.

Definition at line 84 of file CbmRichRingLight.h.

References fHits.

Member Function Documentation

◆ AddHit()

◆ GetAaxis()

◆ GetAngle()

float CbmRichRingLight::GetAngle ( ) const
inline

Definition at line 265 of file CbmRichRingLight.h.

References fAngle.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ GetAPar()

float CbmRichRingLight::GetAPar ( ) const
inline

Definition at line 243 of file CbmRichRingLight.h.

References fAPar.

◆ GetBaxis()

◆ GetBPar()

float CbmRichRingLight::GetBPar ( ) const
inline

Definition at line 244 of file CbmRichRingLight.h.

References fBPar.

◆ GetCenterX()

◆ GetCenterY()

◆ GetChi2()

◆ GetCPar()

float CbmRichRingLight::GetCPar ( ) const
inline

Definition at line 245 of file CbmRichRingLight.h.

References fCPar.

◆ GetDPar()

float CbmRichRingLight::GetDPar ( ) const
inline

Definition at line 246 of file CbmRichRingLight.h.

References fDPar.

◆ GetEPar()

float CbmRichRingLight::GetEPar ( ) const
inline

Definition at line 247 of file CbmRichRingLight.h.

References fEPar.

◆ GetFPar()

float CbmRichRingLight::GetFPar ( ) const
inline

Definition at line 248 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 124 of file CbmRichRingLight.h.

References fHits.

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

◆ GetNofHits()

◆ GetNofHitsOnRing()

unsigned short CbmRichRingLight::GetNofHitsOnRing ( ) const
inline

Definition at line 267 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 256 of file CbmRichRingLight.h.

References fCenterX, fCenterY, and sqrt().

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

◆ GetRadius()

◆ GetRecFlag()

int CbmRichRingLight::GetRecFlag ( ) const
inline

Definition at line 269 of file CbmRichRingLight.h.

References fRecFlag.

◆ GetSelectionNN()

float CbmRichRingLight::GetSelectionNN ( ) const
inline

Definition at line 250 of file CbmRichRingLight.h.

References fSelectionNN.

Referenced by CbmRichRingFinderHoughImpl::FindPeak().

◆ GetXF1()

double CbmRichRingLight::GetXF1 ( ) const
inline

Calculate and return X coordinate of the first focus.

Definition at line 179 of file CbmRichRingLight.h.

References cos(), fAaxis, 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 203 of file CbmRichRingLight.h.

References cos(), fAaxis, 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 190 of file CbmRichRingLight.h.

References fAaxis, 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 214 of file CbmRichRingLight.h.

References fAaxis, 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 97 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 233 of file CbmRichRingLight.h.

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

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

◆ SetAngle()

void CbmRichRingLight::SetAngle ( float angle)
inline

Definition at line 161 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

◆ SetNofHitsOnRing()

void CbmRichRingLight::SetNofHitsOnRing ( unsigned short onring)
inline

Definition at line 162 of file CbmRichRingLight.h.

References fNofHitsOnRing.

Referenced by CbmRichRingSelectAnn::DoSelect().

◆ SetPhi()

void CbmRichRingLight::SetPhi ( double phi)
inline

Definition at line 174 of file CbmRichRingLight.h.

References fPhi.

Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().

◆ SetRadius()

◆ SetRecFlag()

void CbmRichRingLight::SetRecFlag ( int r)
inline

Definition at line 270 of file CbmRichRingLight.h.

References fRecFlag.

Referenced by CbmRichRingFinderHoughImpl::RingSelection().

◆ SetSelectionNN()

void CbmRichRingLight::SetSelectionNN ( float selectionNN)
inline

Definition at line 163 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 151 of file CbmRichRingLight.h.

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

Referenced by CbmRichRingFitterEllipseMinuit::DoFit(), CbmRichRingFitterEllipseTau::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 136 of file CbmRichRingLight.h.

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

Member Data Documentation

◆ fAaxis

float CbmRichRingLight::fAaxis
private

Definition at line 279 of file CbmRichRingLight.h.

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

◆ fAngle

float CbmRichRingLight::fAngle
private

Definition at line 293 of file CbmRichRingLight.h.

Referenced by GetAngle(), and SetAngle().

◆ fAPar

float CbmRichRingLight::fAPar
private

Definition at line 283 of file CbmRichRingLight.h.

Referenced by GetAPar(), and SetABCDEF().

◆ fBaxis

float CbmRichRingLight::fBaxis
private

Definition at line 280 of file CbmRichRingLight.h.

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

◆ fBPar

float CbmRichRingLight::fBPar
private

Definition at line 284 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 292 of file CbmRichRingLight.h.

Referenced by GetChi2(), and SetChi2().

◆ fCPar

float CbmRichRingLight::fCPar
private

Definition at line 285 of file CbmRichRingLight.h.

Referenced by GetCPar(), and SetABCDEF().

◆ fDPar

float CbmRichRingLight::fDPar
private

Definition at line 286 of file CbmRichRingLight.h.

Referenced by GetDPar(), and SetABCDEF().

◆ fEPar

float CbmRichRingLight::fEPar
private

Definition at line 287 of file CbmRichRingLight.h.

Referenced by GetEPar(), and SetABCDEF().

◆ fFPar

float CbmRichRingLight::fFPar
private

Definition at line 288 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 294 of file CbmRichRingLight.h.

Referenced by GetNofHitsOnRing(), and SetNofHitsOnRing().

◆ fPhi

float CbmRichRingLight::fPhi
private

Definition at line 281 of file CbmRichRingLight.h.

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

◆ fRadius

float CbmRichRingLight::fRadius
private

Definition at line 277 of file CbmRichRingLight.h.

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

◆ fRecFlag

int CbmRichRingLight::fRecFlag
private

Definition at line 290 of file CbmRichRingLight.h.

Referenced by GetRecFlag(), and SetRecFlag().

◆ fSelectionNN

float CbmRichRingLight::fSelectionNN
private

Definition at line 295 of file CbmRichRingLight.h.

Referenced by GetSelectionNN(), and SetSelectionNN().


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