CbmRoot
|
Train ANN for electron identification in RICH. More...
#include <CbmRichTrainAnnElectrons.h>
Public Member Functions | |
CbmRichTrainAnnElectrons () | |
Default constructor. | |
virtual | ~CbmRichTrainAnnElectrons () |
Destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | FinishTask () |
Inherited from FairTask. | |
Private Member Functions | |
void | DiffElandPi () |
Fill input parameters for ANN in array and histograms. | |
void | TrainAndTestAnn () |
Train and test ANN. | |
void | Draw (Option_t *="") |
Draw results. | |
TCanvas * | CreateCanvas (const string &name, const string &title, int width, int height) |
void | SaveCanvasToImage () |
CbmRichTrainAnnElectrons (const CbmRichTrainAnnElectrons &) | |
Copy constructor. | |
CbmRichTrainAnnElectrons & | operator= (const CbmRichTrainAnnElectrons &) |
Assignment operator. | |
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 62 of file CbmRichTrainAnnElectrons.h.
CbmRichTrainAnnElectrons::CbmRichTrainAnnElectrons | ( | ) |
Default constructor.
Definition at line 48 of file CbmRichTrainAnnElectrons.cxx.
References fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fHists, fhNofHits, fhPhiVsRadAng, fhRadPos, and fRElIdParams.
|
virtual |
Destructor.
Definition at line 145 of file CbmRichTrainAnnElectrons.cxx.
|
private |
Copy constructor.
|
private |
Definition at line 511 of file CbmRichTrainAnnElectrons.cxx.
References fCanvas.
Referenced by Draw().
|
private |
Fill input parameters for ANN in array and histograms.
Definition at line 207 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 385 of file CbmRichTrainAnnElectrons.cxx.
References CreateCanvas(), DrawH1(), DrawH2(), fAnnCut, fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fhNofHits, fhPhiVsRadAng, fhRadPos, fNofElLikePi, fNofPiLikeEl, fRElIdParams, kLinear, kLog, SetDefaultDrawStyle(), and size().
Referenced by FinishTask().
|
virtual |
Inherited from FairTask.
Definition at line 198 of file CbmRichTrainAnnElectrons.cxx.
References DiffElandPi(), fEventNum, and fRElIdParams.
|
virtual |
Inherited from FairTask.
Definition at line 498 of file CbmRichTrainAnnElectrons.cxx.
References Draw(), fHists, SaveCanvasToImage(), and TrainAndTestAnn().
|
virtual |
Inherited from FairTask.
Definition at line 147 of file CbmRichTrainAnnElectrons.cxx.
References fGlobalTracks, fMCTracks, fRichRingMatches, fRichRings, fStsTrackMatches, and fStsTracks.
|
private |
Assignment operator.
|
private |
Definition at line 518 of file CbmRichTrainAnnElectrons.cxx.
References fCanvas, fOutputDir, and Cbm::SaveCanvasAsImage().
Referenced by FinishTask().
|
private |
Train and test ANN.
Definition at line 304 of file CbmRichTrainAnnElectrons.cxx.
References fAnnCut, fhAnnOutput, fMaxNofTrainSamples, fNofElLikePi, fNofPiLikeEl, fRElIdParams, and x.
Referenced by FinishTask().
|
private |
Definition at line 108 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 118 of file CbmRichTrainAnnElectrons.h.
Referenced by CreateCanvas(), and SaveCanvasToImage().
|
private |
Definition at line 91 of file CbmRichTrainAnnElectrons.h.
Referenced by Exec().
|
private |
Definition at line 99 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 123 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 111 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), Draw(), and TrainAndTestAnn().
|
private |
Definition at line 124 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 133 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 112 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), and Draw().
|
private |
Definition at line 128 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 136 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), and FinishTask().
|
private |
Definition at line 129 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().
|
private |
Definition at line 134 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 104 of file CbmRichTrainAnnElectrons.h.
Referenced by TrainAndTestAnn().
|
private |
Definition at line 95 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 102 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 107 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 106 of file CbmRichTrainAnnElectrons.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 119 of file CbmRichTrainAnnElectrons.h.
Referenced by SaveCanvasToImage().
|
private |
Definition at line 103 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi().
|
private |
Definition at line 116 of file CbmRichTrainAnnElectrons.h.
Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), Draw(), Exec(), and TrainAndTestAnn().
|
private |
Definition at line 92 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 94 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 97 of file CbmRichTrainAnnElectrons.h.
|
private |
Definition at line 96 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 98 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().
|
private |
Definition at line 100 of file CbmRichTrainAnnElectrons.h.
Referenced by DiffElandPi(), and Init().