CbmRoot
Loading...
Searching...
No Matches
CbmKresTrainAnn.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef CBM_KRES_TRAIN_ANN
6#define CBM_KRES_TRAIN_ANN
7
8#include "TCanvas.h"
9#include "TH2D.h"
10#include "TVector3.h"
11#include <TClonesArray.h>
12
13#include <vector>
14
15using namespace std;
16
18
19public:
20 //***** brief Standard constructor.
22 //***** brief Standard destructor.
23 virtual ~CbmKresTrainAnn();
24
25
26 void Init();
27 void InitHistograms();
28
29 void Exec(int event, int IdForANN, double InvariantMass, double OpeningAngle, double PlaneAngle_last, double ZPos,
30 TVector3 Momentum1, TVector3 Momentum2);
31 void TrainAndTestAnn();
32 void Draw();
33
34
35private:
36 unsigned int fMaxNofTrainSamples;
37 double fAnnCut;
40
41 vector<double> IM_correct;
42 vector<double> OA_correct;
43 vector<double> Angle_correct;
44 vector<double> Z_correct;
45 vector<double> Mom1_correct;
46 vector<double> Mom2_correct;
47 vector<double> IM_wrong;
48 vector<double> OA_wrong;
49 vector<double> Angle_wrong;
50 vector<double> Z_wrong;
51 vector<double> Mom1_wrong;
52 vector<double> Mom2_wrong;
53
54 vector<TH1*> fHists;
59
60
61 //***** brief Copy constructor.
63
64 //***** brief Assignment operator.
66
67
68 ClassDef(CbmKresTrainAnn, 1)
69};
70
71#endif
vector< double > IM_wrong
vector< double > Mom2_correct
virtual ~CbmKresTrainAnn()
vector< double > OA_wrong
unsigned int fMaxNofTrainSamples
vector< double > Z_wrong
vector< double > Mom1_correct
CbmKresTrainAnn(const CbmKresTrainAnn &)
vector< double > Angle_wrong
vector< double > Mom1_wrong
CbmKresTrainAnn operator=(const CbmKresTrainAnn &)
vector< double > OA_correct
vector< double > Mom2_wrong
vector< double > Angle_correct
vector< TH1 * > fHists
void Exec(int event, int IdForANN, double InvariantMass, double OpeningAngle, double PlaneAngle_last, double ZPos, TVector3 Momentum1, TVector3 Momentum2)
vector< double > Z_correct
vector< double > IM_correct
Hash for CbmL1LinkKey.