CbmRoot
CbmRichElectronIdAnn.h
Go to the documentation of this file.
1 
11 #ifndef CBM_RICH_ELECTRONID_ANN
12 #define CBM_RICH_ELECTRONID_ANN
13 
14 #include <string>
15 
16 #include "TClonesArray.h" // for ROOTCLING
17 
18 class CbmRichRing;
19 class TMultiLayerPerceptron;
20 
21 using std::string;
22 
33 private:
38 
39 public:
44  static CbmRichElectronIdAnn fInstance;
45  return fInstance;
46  }
47 
48 
52  virtual ~CbmRichElectronIdAnn();
53 
60  double CalculateAnnValue(int globalTrackIndex, double momentum);
61 
66  //void SetAnnWeights(const string& fileName){fAnnWeights = fileName;}
67 
68 private:
69  string fAnnWeights; // path to the file with weights for ANN
70  TMultiLayerPerceptron* fNN; // Pointer to the ANN
71 
72  TClonesArray* fGlobalTracks;
73  TClonesArray* fRichRings;
74 
78  void Init();
79 
80 private:
85 
90 };
91 
92 #endif
CbmRichElectronIdAnn::fRichRings
TClonesArray * fRichRings
Definition: CbmRichElectronIdAnn.h:73
CbmRichElectronIdAnn::operator=
CbmRichElectronIdAnn & operator=(const CbmRichElectronIdAnn &)
Assignment operator.
CbmRichElectronIdAnn::CbmRichElectronIdAnn
CbmRichElectronIdAnn(const CbmRichElectronIdAnn &)
Copy constructor.
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichElectronIdAnn
Implementation of the electron identification algorithm in the RICH detector using Artificial Neural ...
Definition: CbmRichElectronIdAnn.h:32
CbmRichElectronIdAnn::CbmRichElectronIdAnn
CbmRichElectronIdAnn()
Standard constructor.
Definition: CbmRichElectronIdAnn.cxx:26
CbmRichElectronIdAnn::fAnnWeights
string fAnnWeights
Set path to the file with ANN weights.
Definition: CbmRichElectronIdAnn.h:69
CbmRichElectronIdAnn::GetInstance
static CbmRichElectronIdAnn & GetInstance()
Definition: CbmRichElectronIdAnn.h:43
CbmRichElectronIdAnn::fNN
TMultiLayerPerceptron * fNN
Definition: CbmRichElectronIdAnn.h:70
CbmRichElectronIdAnn::CalculateAnnValue
double CalculateAnnValue(int globalTrackIndex, double momentum)
Calculate output value of the ANN.
Definition: CbmRichElectronIdAnn.cxx:84
CbmRichElectronIdAnn::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmRichElectronIdAnn.h:72
CbmRichElectronIdAnn::~CbmRichElectronIdAnn
virtual ~CbmRichElectronIdAnn()
Destructor.
Definition: CbmRichElectronIdAnn.cxx:31
CbmRichElectronIdAnn::Init
void Init()
Initialize ANN before use.
Definition: CbmRichElectronIdAnn.cxx:33