EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmRichElectronIdAnn.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmRichElectronIdAnn.h
1 
11 #ifndef CBM_RICH_ELECTRONID_ANN
12 #define CBM_RICH_ELECTRONID_ANN
13 
14 #include <string>
15 
16 class CbmRichRing;
17 class TMultiLayerPerceptron;
18 
19 using std::string;
20 
31 {
32 private:
33  string fAnnWeights; // path to the file with weights for ANN
34  TMultiLayerPerceptron* fNN; // Pointer to the ANN
35 public:
36 
41 
45  virtual ~CbmRichElectronIdAnn();
46 
50  void Init();
51 
58  double DoSelect(
59  CbmRichRing* ring,
60  double momentum);
61 
66  void SetAnnWeights(const string& fileName){fAnnWeights = fileName;}
67 
68 private:
73 
78 };
79 
80 #endif
81