CbmRoot
|
#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< CbmRichHitLight > | fHits |
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 |
Definition at line 39 of file CbmRichRingLight.h.
|
inline |
|
inlinevirtual |
|
inline |
Add new hit to the ring.
[in] | hit | New hit to be added. |
Definition at line 87 of file CbmRichRingLight.h.
References fHits.
Referenced by CbmKresConversionKF::CheckIfElectron(), CbmKresEta::CheckIfElectron(), CbmKresConversionManualmbias4::CheckIfElectron(), CbmKresConversionManualmbias1::CheckIfElectron(), CbmKresConversionManualmbias2::CheckIfElectron(), CbmKresConversionManualmbias3::CheckIfElectron(), CbmKresConversionManual::CheckIfElectron(), CbmKresConversionPhotons::CheckIfElectron(), CbmKresConversionCorrectedPhotons::CheckIfElectron(), CbmRichConverter::CopyHitsToRingLight(), CbmKresConversionGeneral::Exec(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichGeoTest::RingParameters(), CbmRichPMTMapping::RotateAndCopyHitsToRingLight(), and CbmRichCorrectionVector::RotateAndCopyHitsToRingLight().
|
inline |
Definition at line 163 of file CbmRichRingLight.h.
References fAaxis.
Referenced by CbmLitMCTrackCreator::AddRingParameters(), CbmRichRingFitterEllipseBase::CalcChi2(), CbmKresConversionKF::CheckIfElectron(), CbmKresEta::CheckIfElectron(), CbmKresConversionManualmbias4::CheckIfElectron(), CbmKresConversionManualmbias1::CheckIfElectron(), CbmKresConversionManualmbias2::CheckIfElectron(), CbmKresConversionManualmbias3::CheckIfElectron(), CbmKresConversionManual::CheckIfElectron(), CbmKresConversionPhotons::CheckIfElectron(), CbmKresConversionCorrectedPhotons::CheckIfElectron(), CbmRichConverter::CopyParamsToRing(), CbmRichRadiusCorrection::DoCorrection(), CbmKresConversionGeneral::Exec(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichGeoTest::RingParameters(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Definition at line 258 of file CbmRichRingLight.h.
References fAngle.
Referenced by CbmRichRingSelectAnn::DoSelect().
|
inline |
Definition at line 234 of file CbmRichRingLight.h.
References fAPar.
|
inline |
Definition at line 164 of file CbmRichRingLight.h.
References fBaxis.
Referenced by CbmLitMCTrackCreator::AddRingParameters(), CbmRichRingFitterEllipseBase::CalcChi2(), CbmKresConversionKF::CheckIfElectron(), CbmKresEta::CheckIfElectron(), CbmKresConversionManualmbias4::CheckIfElectron(), CbmKresConversionManualmbias1::CheckIfElectron(), CbmKresConversionManualmbias2::CheckIfElectron(), CbmKresConversionManualmbias3::CheckIfElectron(), CbmKresConversionManual::CheckIfElectron(), CbmKresConversionPhotons::CheckIfElectron(), CbmKresConversionCorrectedPhotons::CheckIfElectron(), CbmRichConverter::CopyParamsToRing(), CbmRichRadiusCorrection::DoCorrection(), CbmKresConversionGeneral::Exec(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichGeoTest::RingParameters(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Definition at line 235 of file CbmRichRingLight.h.
References fBPar.
|
inline |
Definition at line 159 of file CbmRichRingLight.h.
References fCenterX.
Referenced by CbmLitMCTrackCreator::AddRingParameters(), CbmRichRingFitterBase::CalcChi2(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmRichRingFitterQa::CalculateFitErrors(), CbmRichConverter::CopyParamsToRing(), CbmRichMirrorSortingAlignment::CreateHistoMap(), CbmRichRadiusCorrection::DoCorrection(), CbmRichGeoTest::DrawRing(), CbmKresConversionGeneral::Exec(), CbmRichMirrorSortingAlignment::Exec(), CbmRichMirrorSortingCorrection::Exec(), CbmRichMirrorSortingCorrection::FillHistProjection(), CbmRichCorrection::FillHistProjection(), CbmRichCorrectionVector::FillHistProjection(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichRingSelectImpl::GetAngle(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichPMTMapping::MatchFinder(), CbmRichCorrectionVector::MatchFinder(), CbmRichPMTMapping::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer2(), CbmRichRingFinderHoughImpl::ReAssignSharedHits(), CbmRichRingFinderHoughImpl::RemoveHitsAroundRing(), and CbmRichGeoTest::RingParameters().
|
inline |
Definition at line 160 of file CbmRichRingLight.h.
References fCenterY.
Referenced by CbmLitMCTrackCreator::AddRingParameters(), CbmRichRingFitterBase::CalcChi2(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmRichRingFitterQa::CalculateFitErrors(), CbmRichConverter::CopyParamsToRing(), CbmRichMirrorSortingAlignment::CreateHistoMap(), CbmRichRadiusCorrection::DoCorrection(), CbmRichGeoTest::DrawRing(), CbmKresConversionGeneral::Exec(), CbmRichMirrorSortingAlignment::Exec(), CbmRichMirrorSortingCorrection::Exec(), CbmRichMirrorSortingCorrection::FillHistProjection(), CbmRichCorrection::FillHistProjection(), CbmRichCorrectionVector::FillHistProjection(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichRingSelectImpl::GetAngle(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichPMTMapping::MatchFinder(), CbmRichCorrectionVector::MatchFinder(), CbmRichPMTMapping::ProjectionProducer(), CbmRichPMTMapping::ProjectionProducer2(), CbmRichRingFinderHoughImpl::ReAssignSharedHits(), CbmRichRingFinderHoughImpl::RemoveHitsAroundRing(), and CbmRichGeoTest::RingParameters().
|
inline |
Definition at line 242 of file CbmRichRingLight.h.
References fChi2.
Referenced by CbmRichConverter::CopyParamsToRing(), CbmRichTrainAnnSelect::DiffFakeTrueCircle(), CbmRichRingSelectAnn::DoSelect(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), and CbmRichRingFinderHoughImpl::RemoveHitsAroundRing().
|
inline |
Definition at line 236 of file CbmRichRingLight.h.
References fCPar.
|
inline |
Definition at line 237 of file CbmRichRingLight.h.
References fDPar.
|
inline |
Definition at line 238 of file CbmRichRingLight.h.
References fEPar.
|
inline |
Definition at line 239 of file CbmRichRingLight.h.
References fFPar.
|
inline |
Return hit by the index.
[in] | ind | Index of hit in local array. |
Definition at line 114 of file CbmRichRingLight.h.
References fHits.
Referenced by CbmRichRingFitterEllipseBase::CalcChi2(), CbmRichRingFitterBase::CalcChi2(), CbmRichRingFitterQa::CalculateFitErrors(), CbmRichMirrorSortingAlignment::CreateHistoMap(), CbmRichRingFitterRobustCOP::DoFit(), CbmRichRingFitterTAU::DoFit(), CbmRichRingFitterCircle::DoFit(), CbmRichRingFitterEllipseMinuit::DoFit(), CbmRichGeoTest::DrawRing(), CbmKresConversionGeneral::Exec(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichRingFitterCOP::FitRing(), CbmRichRingSelectImpl::GetAngle(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichRingFitterEllipseTau::InitMatrices(), and CbmRichGeoTest::RingParameters().
|
inline |
Return hit index in TClonesArray.
[in] | ind | Index of hit in local array. |
Definition at line 120 of file CbmRichRingLight.h.
References fHits.
Referenced by CbmRichRingFinderHoughImpl::ReAssignSharedHits(), and CbmRichRingFinderHoughImpl::RingSelection().
|
inline |
Return number of hits in ring.
Definition at line 108 of file CbmRichRingLight.h.
References fHits.
Referenced by CbmRichRingFitterEllipseBase::CalcChi2(), CbmRichRingFitterBase::CalcChi2(), CbmRichAlignment::CalculateAnglesAndDrawDistrib(), CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib(), CbmRichRingFitterQa::CalculateFitErrors(), CbmRichMirrorSortingAlignment::CreateHistoMap(), CbmRichTrainAnnSelect::DiffFakeTrueCircle(), CbmRichRingFitterRobustCOP::DoFit(), CbmRichRingFitterTAU::DoFit(), CbmRichRingFitterCircle::DoFit(), CbmRichRingFitterEllipseTau::DoFit(), CbmRichRingFitterEllipseMinuit::DoFit(), CbmRichRingSelectAnn::DoSelect(), CbmRichGeoTest::DrawRing(), CbmKresConversionGeneral::Exec(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichGeoTest::FillMcVsHitFitEllipse(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichGeoTest::FitAndFillHistEllipse(), CbmRichRingFitterCOP::FitRing(), CbmRichRingSelectImpl::GetAngle(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichRingFitterEllipseTau::InitMatrices(), CbmRichRingFinderHoughImpl::ReAssignSharedHits(), CbmRichRingFinderHoughImpl::RemoveHitsAroundRing(), CbmRichGeoTest::RingParameters(), and CbmRichRingFinderHoughImpl::RingSelection().
|
inline |
Definition at line 260 of file CbmRichRingLight.h.
References fNofHitsOnRing.
Referenced by CbmRichRingSelectAnn::DoSelect().
|
inline |
Definition at line 165 of file CbmRichRingLight.h.
References fPhi.
Referenced by CbmRichConverter::CopyParamsToRing(), CbmKresConversionGeneral::Exec(), CbmRichRingFitterQa::GenerateEllipse(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
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().
|
inline |
Definition at line 161 of file CbmRichRingLight.h.
References fRadius.
Referenced by CbmRichRingFitterBase::CalcChi2(), CbmRichRingFitterQa::CalculateFitErrors(), CbmRichConverter::CopyParamsToRing(), CbmRichTrainAnnSelect::DiffFakeTrueCircle(), CbmRichRingSelectAnn::DoSelect(), CbmRichGeoTest::DrawRing(), CbmRichGeoTest::FillMcVsHitFitCircle(), CbmRichRingFinderHoughImpl::FindPeak(), CbmRichGeoTest::FitAndFillHistCircle(), CbmRichRingFitterQa::GenerateEllipse(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichRingFinderHoughImpl::ReAssignSharedHits(), CbmRichRingFinderHoughImpl::RemoveHitsAroundRing(), and CbmRichGeoTest::RingParameters().
|
inline |
Definition at line 262 of file CbmRichRingLight.h.
References fRecFlag.
|
inline |
Definition at line 241 of file CbmRichRingLight.h.
References fSelectionNN.
Referenced by CbmRichRingFinderHoughImpl::FindPeak(), and CbmRichRingComparatorMore::operator()().
|
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().
|
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().
|
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().
|
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().
|
inline |
Remove hit from the ring.
[in] | hitId | index of hit in TClonesArray. |
Definition at line 94 of file CbmRichRingLight.h.
References fHits.
Referenced by CbmRichRingFinderHoughImpl::ReAssignSharedHits().
|
inline |
Definition at line 166 of file CbmRichRingLight.h.
References fAaxis.
Referenced by CbmRichRadiusCorrection::DoCorrection(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Set all 6 parameters of curve equation Axx+Bxy+Cyy+Dx+Ey+F.
[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 225 of file CbmRichRingLight.h.
References d, f, fAPar, fBPar, fCPar, fDPar, fEPar, and fFPar.
Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Definition at line 155 of file CbmRichRingLight.h.
References fAngle.
Referenced by CbmRichRingSelectAnn::DoSelect().
|
inline |
Definition at line 167 of file CbmRichRingLight.h.
References fBaxis.
Referenced by CbmRichRadiusCorrection::DoCorrection(), and CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Definition at line 122 of file CbmRichRingLight.h.
Referenced by CbmRichRingFitterRobustCOP::DoFit(), CbmRichRingFitterTAU::DoFit(), CbmRichRingFitterCircle::DoFit(), and CbmRichRingFitterCOP::FitRing().
|
inline |
Definition at line 123 of file CbmRichRingLight.h.
Referenced by CbmRichRingFitterRobustCOP::DoFit(), CbmRichRingFitterTAU::DoFit(), CbmRichRingFitterCircle::DoFit(), and CbmRichRingFitterCOP::FitRing().
|
inline |
Definition at line 154 of file CbmRichRingLight.h.
References fChi2.
Referenced by CbmRichRingFitterEllipseBase::CalcChi2(), and CbmRichRingFitterBase::CalcChi2().
|
inline |
Definition at line 156 of file CbmRichRingLight.h.
References fNofHitsOnRing.
Referenced by CbmRichRingSelectAnn::DoSelect().
|
inline |
Definition at line 168 of file CbmRichRingLight.h.
References fPhi.
Referenced by CbmRichRingFitterEllipseTau::TransformEllipse().
|
inline |
Definition at line 124 of file CbmRichRingLight.h.
References fRadius.
Referenced by CbmRichRingFitterRobustCOP::DoFit(), CbmRichRingFitterTAU::DoFit(), CbmRichRingFitterCircle::DoFit(), CbmRichRingFitterEllipseTau::DoFit(), CbmRichRingFitterEllipseMinuit::DoFit(), CbmRichRingFitterCOP::FitRing(), CbmRichRingFitterEllipseTau::TransformEllipse(), and CbmRichRingFitterEllipseMinuit::TransformToRichRing().
|
inline |
Definition at line 263 of file CbmRichRingLight.h.
References fRecFlag.
Referenced by CbmRichRingFinderHoughImpl::RingSelection().
|
inline |
Definition at line 157 of file CbmRichRingLight.h.
References fSelectionNN.
Referenced by CbmRichRingSelectAnn::DoSelect().
|
inline |
Set all 5 ellipse 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 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().
|
inline |
|
private |
Definition at line 272 of file CbmRichRingLight.h.
Referenced by GetAaxis(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetAaxis(), and SetXYABP().
|
private |
Definition at line 286 of file CbmRichRingLight.h.
Referenced by GetAngle(), and SetAngle().
|
private |
Definition at line 276 of file CbmRichRingLight.h.
Referenced by GetAPar(), and SetABCDEF().
|
private |
Definition at line 273 of file CbmRichRingLight.h.
Referenced by GetBaxis(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetBaxis(), and SetXYABP().
|
private |
Definition at line 277 of file CbmRichRingLight.h.
Referenced by GetBPar(), and SetABCDEF().
|
private |
Definition at line 268 of file CbmRichRingLight.h.
Referenced by GetCenterX(), GetRadialPosition(), GetXF1(), GetXF2(), SetCenterX(), SetXYABP(), and SetXYR().
|
private |
Definition at line 269 of file CbmRichRingLight.h.
Referenced by GetCenterY(), GetRadialPosition(), GetYF1(), GetYF2(), SetCenterY(), SetXYABP(), and SetXYR().
|
private |
Definition at line 285 of file CbmRichRingLight.h.
|
private |
Definition at line 278 of file CbmRichRingLight.h.
Referenced by GetCPar(), and SetABCDEF().
|
private |
Definition at line 279 of file CbmRichRingLight.h.
Referenced by GetDPar(), and SetABCDEF().
|
private |
Definition at line 280 of file CbmRichRingLight.h.
Referenced by GetEPar(), and SetABCDEF().
|
private |
Definition at line 281 of file CbmRichRingLight.h.
Referenced by GetFPar(), and SetABCDEF().
|
private |
Definition at line 266 of file CbmRichRingLight.h.
Referenced by AddHit(), CbmRichRingLight(), GetHit(), GetHitId(), GetNofHits(), RemoveHit(), and ~CbmRichRingLight().
|
private |
Definition at line 287 of file CbmRichRingLight.h.
Referenced by GetNofHitsOnRing(), and SetNofHitsOnRing().
|
private |
Definition at line 274 of file CbmRichRingLight.h.
Referenced by GetPhi(), GetXF1(), GetXF2(), GetYF1(), GetYF2(), SetPhi(), and SetXYABP().
|
private |
Definition at line 270 of file CbmRichRingLight.h.
Referenced by GetRadius(), SetRadius(), and SetXYR().
|
private |
Definition at line 283 of file CbmRichRingLight.h.
Referenced by GetRecFlag(), and SetRecFlag().
|
private |
Definition at line 288 of file CbmRichRingLight.h.
Referenced by GetSelectionNN(), and SetSelectionNN().