CbmRoot
|
Implementation for concrete RICH ring selection algorithm: reject rings using a trained neural net (input file with weights needed!) store resulting value (0-1) in "SelectionNN": 0 = good rings 1 = rings to be rejected --> choose a value in between depending on required purity/ efficiency. More...
#include <CbmRichRingSelectAnn.h>
Public Member Functions | |
CbmRichRingSelectAnn () | |
Standard constructor. More... | |
virtual | ~CbmRichRingSelectAnn () |
Destructor. More... | |
virtual void | Init () |
Initialize ANN. More... | |
void | DoSelect (CbmRichRingLight *ring) |
void | SetAnnWeights (const string &fileName) |
Set path to the file with ANN weights. More... | |
Private Member Functions | |
CbmRichRingSelectAnn (const CbmRichRingSelectAnn &) | |
Copy constructor. More... | |
CbmRichRingSelectAnn & | operator= (const CbmRichRingSelectAnn &) |
Assignment operator. More... | |
Private Attributes | |
std::string | fAnnWeights |
TMultiLayerPerceptron * | fNN |
CbmRichRingSelectImpl * | fSelectImpl |
Implementation for concrete RICH ring selection algorithm: reject rings using a trained neural net (input file with weights needed!) store resulting value (0-1) in "SelectionNN": 0 = good rings 1 = rings to be rejected --> choose a value in between depending on required purity/ efficiency.
Definition at line 39 of file CbmRichRingSelectAnn.h.
CbmRichRingSelectAnn::CbmRichRingSelectAnn | ( | ) |
Standard constructor.
Definition at line 14 of file CbmRichRingSelectAnn.cxx.
References CbmRichGeometryTypeCylindrical, CbmRichGeometryTypeTwoWings, fAnnWeights, and CbmRichGeoManager::GetInstance().
|
virtual |
Destructor.
Definition at line 30 of file CbmRichRingSelectAnn.cxx.
|
private |
Copy constructor.
void CbmRichRingSelectAnn::DoSelect | ( | CbmRichRingLight * | ring | ) |
\Perform selection.
[in,out] | ring | Found and fitted ring. |
Definition at line 53 of file CbmRichRingSelectAnn.cxx.
References f, fNN, fSelectImpl, CbmRichRingSelectImpl::GetAngle(), CbmRichRingLight::GetAngle(), CbmRichRingLight::GetChi2(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::GetNofHitsOnRing(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichRingLight::GetRadialPosition(), CbmRichRingLight::GetRadius(), CbmRichRingLight::SetAngle(), CbmRichRingLight::SetNofHitsOnRing(), and CbmRichRingLight::SetSelectionNN().
Referenced by CbmRichRingFinderHoughImpl::FindPeak().
|
virtual |
Initialize ANN.
Definition at line 32 of file CbmRichRingSelectAnn.cxx.
References fAnnWeights, fNN, fSelectImpl, and x.
Referenced by CbmRichRingFinderHoughImpl::Init().
|
private |
Assignment operator.
|
inline |
Set path to the file with ANN weights.
[in] | fileName | Path to the file name with ANN weights. |
Definition at line 71 of file CbmRichRingSelectAnn.h.
|
private |
Definition at line 41 of file CbmRichRingSelectAnn.h.
Referenced by CbmRichRingSelectAnn(), and Init().
|
private |
Definition at line 42 of file CbmRichRingSelectAnn.h.
Referenced by DoSelect(), and Init().
|
private |
Definition at line 43 of file CbmRichRingSelectAnn.h.
Referenced by DoSelect(), and Init().