10#ifndef CBM_TRD_ELECTRONS_TRAIN_ANN
11#define CBM_TRD_ELECTRONS_TRAIN_ANN
14#include "TMVA/Factory.h"
15#include "TMVA/Reader.h"
16#include "TMultiLayerPerceptron.h"
71 virtual InitStatus
Init();
76 virtual void Exec(Option_t* opt);
86 void Draw(Option_t* =
"");
143 Double_t
Eval(Bool_t isEl);
180 std::vector<std::vector<std::vector<TrdEloss>>>
fEloss;
213 TMultiLayerPerceptron*
fNN;
virtual ~CbmTrdElectronsTrainAnn()
Destructor.
void FillElossHist()
Fill histograms with energy loss information.
void Draw(Option_t *="")
Draw results.
void SetIsDoTrain(Bool_t doTrain)
std::string fBeamDataFile
void SetNofAnnEpochs(Int_t nofAnnEpochs)
virtual InitStatus Init()
Inherited from FairTask.
TGraph * CreateRocDiagramm()
void CreateCumProbOutputHist()
TClonesArray * fTrdPoints
void SetTransformType(Int_t type)
void SetOutputDir(const std::string &outputDir)
virtual void Finish()
Inherited from FairTask.
void SetNofTrainSamples(Int_t nofTr)
CbmTrdElectronsTrainAnn(int nofTrdLayers)
Default constructor.
ClassDef(CbmTrdElectronsTrainAnn, 1)
void FillElossVectorSim()
Fill vector with energy loss information for simulated data.
void SortElossAndFillHist()
Sort energy losses and fill histograms.
void SetBeamDataFile(std::string beamDataFile)
std::vector< TH1 * > fhCumProbOutput
TMVA::Reader * CreateTmvaReader()
void FillElossVectorReal()
Fill vector with energy loss information simulated from real data spectra.
std::vector< std::vector< TH1 * > > fhInput
Double_t Eval(Bool_t isEl)
void FillAnnInputHist(Bool_t isEl)
std::vector< std::vector< std::vector< TrdEloss > > > fEloss
std::vector< TH1 * > fhOutput
void SetSigmaError(Double_t sigma)
TClonesArray * fTrdTrackMatches
CbmTrdElectronsTrainAnn(const CbmTrdElectronsTrainAnn &)
TMVA::Factory * CreateFactory(TTree *simu)
Double_t FindOptimalCut()
std::string fBeamDataPiHist
std::vector< TH1 * > fhMeanEloss
std::vector< Float_t > fAnnInput
void SetIdMethod(IdMethod idMethod)
std::vector< TH1 * > fHists
std::string CreateAnnString()
virtual void Exec(Option_t *opt)
Inherited from FairTask.
TMultiLayerPerceptron * fNN
void SetBeamDataPiHist(std::string beamDataPiHist)
TClonesArray * fTrdTracks
std::vector< std::vector< TH1 * > > fhElossSort
CbmTrdElectronsTrainAnn & operator=(const CbmTrdElectronsTrainAnn &)
std::vector< TH1 * > fhEloss
void SetBeamDataElHist(std::string beamDataElHist)
std::string fBeamDataElHist
Represents information about energy losses in one layer.
TrdEloss(double eloss, double dedx=0., double tr=0.)