|
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. | |
| virtual | ~CbmRichRingSelectAnn () |
| Destructor. | |
| virtual void | Init () |
| Initialize ANN. | |
| void | DoSelect (CbmRichRingLight *ring) |
| void | SetAnnWeights (const string &fileName) |
| Set path to the file with ANN weights. | |
Private Member Functions | |
| CbmRichRingSelectAnn (const CbmRichRingSelectAnn &) | |
| Copy constructor. | |
| CbmRichRingSelectAnn & | operator= (const CbmRichRingSelectAnn &) |
| Assignment operator. | |
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 43 of file CbmRichRingSelectAnn.h.
| CbmRichRingSelectAnn::CbmRichRingSelectAnn | ( | ) |
Standard constructor.
Definition at line 19 of file CbmRichRingSelectAnn.cxx.
References CbmRichGeometryTypeCylindrical, CbmRichGeometryTypeTwoWings, fAnnWeights, fNN, fSelectImpl, and CbmRichGeoManager::GetInstance().
Referenced by CbmRichRingSelectAnn(), and operator=().
|
virtual |
Destructor.
Definition at line 32 of file CbmRichRingSelectAnn.cxx.
|
private |
Copy constructor.
References CbmRichRingSelectAnn().
| void CbmRichRingSelectAnn::DoSelect | ( | CbmRichRingLight * | ring | ) |
\Perform selection.
| [in,out] | ring | Found and fitted ring. |
Definition at line 55 of file CbmRichRingSelectAnn.cxx.
References fNN, fSelectImpl, CbmRichRingLight::GetAngle(), CbmRichRingLight::GetChi2(), CbmRichRingLight::GetNofHits(), CbmRichRingLight::GetNofHitsOnRing(), CbmRichRingLight::GetRadialPosition(), CbmRichRingLight::GetRadius(), CbmRichRingLight::SetAngle(), CbmRichRingLight::SetNofHitsOnRing(), and CbmRichRingLight::SetSelectionNN().
|
virtual |
Initialize ANN.
Definition at line 34 of file CbmRichRingSelectAnn.cxx.
References fAnnWeights, fNN, fSelectImpl, and x.
|
private |
Assignment operator.
References CbmRichRingSelectAnn().
|
inline |
Set path to the file with ANN weights.
| [in] | fileName | Path to the file name with ANN weights. |
Definition at line 75 of file CbmRichRingSelectAnn.h.
References fAnnWeights.
|
private |
Definition at line 45 of file CbmRichRingSelectAnn.h.
Referenced by CbmRichRingSelectAnn(), Init(), and SetAnnWeights().
|
private |
Definition at line 46 of file CbmRichRingSelectAnn.h.
Referenced by CbmRichRingSelectAnn(), DoSelect(), and Init().
|
private |
Definition at line 47 of file CbmRichRingSelectAnn.h.
Referenced by CbmRichRingSelectAnn(), DoSelect(), and Init().