CbmRoot
|
Train ANN for electron identification in RICH. More...
#include <CbmRichTrainAnnElectrons.h>
Public Member Functions | |
CbmRichTrainAnnElectrons () | |
Default constructor. More... | |
virtual | ~CbmRichTrainAnnElectrons () |
Destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | FinishTask () |
Inherited from FairTask. More... | |
Private Member Functions | |
void | DiffElandPi () |
Fill input parameters for ANN in array and histograms. More... | |
void | TrainAndTestAnn () |
Train and test ANN. More... | |
void | Draw (Option_t *="") |
Draw results. More... | |
TCanvas * | CreateCanvas (const string &name, const string &title, int width, int height) |
void | SaveCanvasToImage () |
CbmRichTrainAnnElectrons (const CbmRichTrainAnnElectrons &) | |
Copy constructor. More... | |
CbmRichTrainAnnElectrons & | operator= (const CbmRichTrainAnnElectrons &) |
Assignment operator. More... | |
Private Attributes | |
Int_t | fEventNum |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichPoints |
TClonesArray * | fMCTracks |
TClonesArray * | fRichRingMatches |
TClonesArray * | fRichProj |
TClonesArray * | fStsTrackMatches |
TClonesArray * | fGlobalTracks |
TClonesArray * | fStsTracks |
Int_t | fMinNofHitsInRichRing |
Double_t | fQuota |
UInt_t | fMaxNofTrainSamples |
Int_t | fNofPiLikeEl |
Int_t | fNofElLikePi |
Double_t | fAnnCut |
vector< TH1D * > | fhAnnOutput |
vector< TH1D * > | fhCumProb |
vector< vector< RingElectronParam > > | fRElIdParams |
vector< TCanvas * > | fCanvas |
string | fOutputDir |
vector< TH1D * > | fhAaxis |
vector< TH1D * > | fhBaxis |
vector< TH1D * > | fhDistTrueMatch |
vector< TH1D * > | fhDistMisMatch |
vector< TH1D * > | fhNofHits |
vector< TH1D * > | fhChi2 |
vector< TH1D * > | fhRadPos |
vector< TH2D * > | fhAaxisVsMom |
vector< TH2D * > | fhBaxisVsMom |
vector< TH2D * > | fhPhiVsRadAng |
vector< TH1 * > | fHists |
Train ANN for electron identification in RICH.
Definition at line 57 of file CbmRichTrainAnnElectrons.h.
CbmRichTrainAnnElectrons::CbmRichTrainAnnElectrons | ( | ) |
Default constructor.
Definition at line 46 of file CbmRichTrainAnnElectrons.cxx.
References fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fHists, fhNofHits, fhPhiVsRadAng, fhRadPos, fRElIdParams, and i.
|
virtual |
Destructor.
Definition at line 192 of file CbmRichTrainAnnElectrons.cxx.
|
private |
Copy constructor.
|
private |
Definition at line 624 of file CbmRichTrainAnnElectrons.cxx.
References fCanvas.
Referenced by Draw().
|
private |
Fill input parameters for ANN in array and histograms.
Definition at line 252 of file CbmRichTrainAnnElectrons.cxx.
References RingElectronParam::fAaxis, RingElectronParam::fBaxis, RingElectronParam::fChi2, RingElectronParam::fDistance, fGlobalTracks, fhAaxis, fhAaxisVsMom, fhBaxis, fhBaxisVsMom, fhChi2, fhDistMisMatch, fhDistTrueMatch, fhNofHits, fhPhiVsRadAng, fhRadPos, fMCTracks, RingElectronParam::fMomentum, RingElectronParam::fNofHits, RingElectronParam::fPhi, fQuota, RingElectronParam::fRadAngle, RingElectronParam::fRadPos, fRElIdParams, fRichRingMatches, fRichRings, fStsTrackMatches, fStsTracks, CbmRichRing::GetAaxis(), CbmRichRing::GetBaxis(), CbmRichRing::GetChi2(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmRichRing::GetNDF(), CbmRichRing::GetNofHits(), CbmTrackMatchNew::GetNofTrueHits(), CbmTrackMatchNew::GetNofWrongHits(), CbmMCTrack::GetP(), CbmMCTrack::GetPdgCode(), CbmRichRing::GetPhi(), CbmRichRing::GetRadialAngle(), CbmRichRing::GetRadialPosition(), CbmGlobalTrack::GetRichRingIndex(), CbmRichUtil::GetRingTrackDistance(), and CbmGlobalTrack::GetStsTrackIndex().
Referenced by Exec().
|
private |
Draw results.
Definition at line 434 of file CbmRichTrainAnnElectrons.cxx.
References CreateCanvas(), DrawH1(), DrawH2(), fAnnCut, fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fhNofHits, fhPhiVsRadAng, fhRadPos, fNofElLikePi, fNofPiLikeEl, fRElIdParams, i, kLinear, kLog, and SetDefaultDrawStyle().
Referenced by FinishTask().
|
virtual |
Inherited from FairTask.
Definition at line 244 of file CbmRichTrainAnnElectrons.cxx.
References DiffElandPi(), fEventNum, and fRElIdParams.
|
virtual |
Inherited from FairTask.
Definition at line 612 of file CbmRichTrainAnnElectrons.cxx.
References Draw(), fHists, i, SaveCanvasToImage(), and TrainAndTestAnn().
|
virtual |
Inherited from FairTask.
Definition at line 194 of file CbmRichTrainAnnElectrons.cxx.
References fGlobalTracks, fMCTracks, fRichRingMatches, fRichRings, fStsTrackMatches, and fStsTracks.
|
private |
Assignment operator.
|
private |
Definition at line 633 of file CbmRichTrainAnnElectrons.cxx.
References fCanvas, fOutputDir, i, and Cbm::SaveCanvasAsImage().
Referenced by FinishTask().
|
private |
Train and test ANN.
Definition at line 353 of file CbmRichTrainAnnElectrons.cxx.
References fAnnCut, fhAnnOutput, fMaxNofTrainSamples, fNofElLikePi, fNofPiLikeEl, fRElIdParams, i, and x.
Referenced by FinishTask().
|
private |
Definition at line 103 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 113 of file CbmRichTrainAnnElectrons.h.
Referenced by CreateCanvas(), and SaveCanvasToImage().
|
private |
Definition at line 86 of file CbmRichTrainAnnElectrons.h.
Referenced by Exec().
|
private |
Definition at line 94 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 118 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 130 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 106 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), Draw(), and TrainAndTestAnn().
|
private |
Definition at line 119 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 131 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 127 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 107 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), and Draw().
|
private |
Definition at line 125 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 123 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 134 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), and FinishTask().
|
private |
Definition at line 126 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 132 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 129 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 99 of file CbmRichTrainAnnElectrons.h.
Referenced by TrainAndTestAnn().
|
private |
Definition at line 90 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 97 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 102 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 101 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 114 of file CbmRichTrainAnnElectrons.h.
Referenced by SaveCanvasToImage().
|
private |
Definition at line 98 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi().
|
private |
Definition at line 111 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), Draw(), Exec(), and TrainAndTestAnn().
|
private |
Definition at line 87 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 89 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 92 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 91 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 88 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 93 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 95 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().