CbmRoot
|
Train ANN for fake rejection. More...
#include <CbmRichTrainAnnSelect.h>
Public Member Functions | |
CbmRichTrainAnnSelect () | |
Default constructor. More... | |
virtual | ~CbmRichTrainAnnSelect () |
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 | SetRecFlag () |
Set recFlag weather ring was found correctly or not. More... | |
void | DiffFakeTrueCircle () |
Fill ring selection parameters in array and histograms. More... | |
void | TrainAndTestAnn () |
Train and test ANN. More... | |
void | Draw (Option_t *="") |
Draw results. More... | |
CbmRichTrainAnnSelect (const CbmRichTrainAnnSelect &) | |
Copy constructor. More... | |
CbmRichTrainAnnSelect & | operator= (const CbmRichTrainAnnSelect &) |
Assignment operator. More... | |
Private Attributes | |
TClonesArray * | fRichRings |
TClonesArray * | fMcTracks |
TClonesArray * | fRichRingMatches |
Int_t | fEventNumber |
Double_t | fQuota |
UInt_t | fMaxNofTrainSamples |
Int_t | fNofFakeLikeTrue |
Int_t | fNofTrueLikeFake |
Double_t | fAnnCut |
vector< TH1D * > | fhNofHits |
vector< TH1D * > | fhAngle |
vector< TH1D * > | fhNofHitsOnRing |
vector< TH1D * > | fhChi2 |
vector< TH1D * > | fhRadPos |
vector< TH1D * > | fhRadius |
vector< TH1D * > | fhAnnOutput |
vector< TH1D * > | fhCumProb |
vector< vector< RingSelectParam > > | fRSParams |
CbmRichRingFitterCOP * | fFitCOP |
CbmRichRingSelectImpl * | fSelectImpl |
vector< TH1 * > | fHists |
CbmRichTrainAnnSelect::CbmRichTrainAnnSelect | ( | ) |
Default constructor.
Definition at line 37 of file CbmRichTrainAnnSelect.cxx.
References fhAngle, fhAnnOutput, fhChi2, fhCumProb, fHists, fhNofHits, fhNofHitsOnRing, fhRadius, fhRadPos, fRSParams, and i.
|
virtual |
Destructor.
Definition at line 136 of file CbmRichTrainAnnSelect.cxx.
|
private |
Copy constructor.
|
private |
Fill ring selection parameters in array and histograms.
Definition at line 214 of file CbmRichTrainAnnSelect.cxx.
References CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterCOP::DoFit(), RingSelectParam::fAngle, RingSelectParam::fChi2, fFitCOP, fhAngle, fhChi2, RingSelectParam::fHitsOnRing, fhNofHits, fhNofHitsOnRing, fhRadius, fhRadPos, RingSelectParam::fNofHits, RingSelectParam::fRadius, RingSelectParam::fRadPos, fRichRingMatches, fRichRings, fRSParams, fSelectImpl, CbmRichRingSelectImpl::GetAngle(), CbmRichRingLight::GetChi2(), CbmRichRingLight::GetNofHits(), CbmRichRingSelectImpl::GetNofHitsOnRingCircle(), CbmRichRingLight::GetRadialPosition(), CbmRichRingLight::GetRadius(), and CbmRichRing::GetRecFlag().
Referenced by Exec().
|
private |
Draw results.
Definition at line 338 of file CbmRichTrainAnnSelect.cxx.
References DrawH1(), fAnnCut, fhAngle, fhAnnOutput, fhChi2, fhCumProb, fhNofHits, fhNofHitsOnRing, fhRadius, fhRadPos, fNofFakeLikeTrue, fNofTrueLikeFake, fRSParams, i, kLinear, and kLog.
Referenced by FinishTask().
|
virtual |
Inherited from FairTask.
Definition at line 167 of file CbmRichTrainAnnSelect.cxx.
References DiffFakeTrueCircle(), fEventNumber, fRSParams, and SetRecFlag().
|
virtual |
Inherited from FairTask.
Definition at line 451 of file CbmRichTrainAnnSelect.cxx.
References Draw(), fFitCOP, fHists, fSelectImpl, i, and TrainAndTestAnn().
|
virtual |
Inherited from FairTask.
Definition at line 138 of file CbmRichTrainAnnSelect.cxx.
References fFitCOP, fMcTracks, fRichRingMatches, fRichRings, fSelectImpl, and CbmRichConverter::Init().
|
private |
Assignment operator.
|
private |
Set recFlag weather ring was found correctly or not.
Definition at line 178 of file CbmRichTrainAnnSelect.cxx.
References fMcTracks, fQuota, fRichRingMatches, fRichRings, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), and CbmRichRing::SetRecFlag().
Referenced by Exec().
|
private |
Train and test ANN.
Definition at line 267 of file CbmRichTrainAnnSelect.cxx.
References fAnnCut, fhAnnOutput, fMaxNofTrainSamples, fNofFakeLikeTrue, fNofTrueLikeFake, fRSParams, i, and x.
Referenced by FinishTask().
|
private |
Definition at line 89 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 84 of file CbmRichTrainAnnSelect.h.
Referenced by Exec().
|
private |
Definition at line 109 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), FinishTask(), and Init().
|
private |
Definition at line 94 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 102 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), Draw(), and TrainAndTestAnn().
|
private |
Definition at line 96 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 103 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), and Draw().
|
private |
Definition at line 112 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), and FinishTask().
|
private |
Definition at line 93 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 95 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 98 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 97 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 86 of file CbmRichTrainAnnSelect.h.
Referenced by TrainAndTestAnn().
|
private |
Definition at line 81 of file CbmRichTrainAnnSelect.h.
Referenced by Init(), and SetRecFlag().
|
private |
Definition at line 87 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 88 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 85 of file CbmRichTrainAnnSelect.h.
Referenced by SetRecFlag().
|
private |
Definition at line 82 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), Init(), and SetRecFlag().
|
private |
Definition at line 80 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), Init(), and SetRecFlag().
|
private |
Definition at line 107 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), Draw(), Exec(), and TrainAndTestAnn().
|
private |
Definition at line 110 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), FinishTask(), and Init().