CbmRoot
|
Train ANN for fake rejection. More...
#include <CbmRichTrainAnnSelect.h>
Public Member Functions | |
CbmRichTrainAnnSelect () | |
Default constructor. | |
virtual | ~CbmRichTrainAnnSelect () |
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 | SetRecFlag () |
Set recFlag weather ring was found correctly or not. | |
void | DiffFakeTrueCircle () |
Fill ring selection parameters in array and histograms. | |
void | TrainAndTestAnn () |
Train and test ANN. | |
void | Draw (Option_t *="") |
Draw results. | |
CbmRichTrainAnnSelect (const CbmRichTrainAnnSelect &) | |
Copy constructor. | |
CbmRichTrainAnnSelect & | operator= (const CbmRichTrainAnnSelect &) |
Assignment operator. | |
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 40 of file CbmRichTrainAnnSelect.cxx.
References fhAngle, fhAnnOutput, fhChi2, fhCumProb, fHists, fhNofHits, fhNofHitsOnRing, fhRadius, fhRadPos, and fRSParams.
|
virtual |
Destructor.
Definition at line 114 of file CbmRichTrainAnnSelect.cxx.
|
private |
Copy constructor.
|
private |
Fill ring selection parameters in array and histograms.
Definition at line 195 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 320 of file CbmRichTrainAnnSelect.cxx.
References DrawH1(), fAnnCut, fhAngle, fhAnnOutput, fhChi2, fhCumProb, fhNofHits, fhNofHitsOnRing, fhRadius, fhRadPos, fNofFakeLikeTrue, fNofTrueLikeFake, fRSParams, kLinear, kLog, and size().
Referenced by FinishTask().
|
virtual |
Inherited from FairTask.
Definition at line 146 of file CbmRichTrainAnnSelect.cxx.
References DiffFakeTrueCircle(), fEventNumber, fRSParams, and SetRecFlag().
|
virtual |
Inherited from FairTask.
Definition at line 369 of file CbmRichTrainAnnSelect.cxx.
References Draw(), fFitCOP, fHists, fSelectImpl, and TrainAndTestAnn().
|
virtual |
Inherited from FairTask.
Definition at line 116 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 158 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 248 of file CbmRichTrainAnnSelect.cxx.
References fAnnCut, fhAnnOutput, fMaxNofTrainSamples, fNofFakeLikeTrue, fNofTrueLikeFake, fRSParams, and x.
Referenced by FinishTask().
|
private |
Definition at line 96 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 91 of file CbmRichTrainAnnSelect.h.
Referenced by Exec().
|
private |
Definition at line 116 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), FinishTask(), and Init().
|
private |
Definition at line 101 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 109 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), Draw(), and TrainAndTestAnn().
|
private |
Definition at line 103 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 110 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), and Draw().
|
private |
Definition at line 119 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), and FinishTask().
|
private |
Definition at line 100 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 102 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 105 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 104 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), and Draw().
|
private |
Definition at line 93 of file CbmRichTrainAnnSelect.h.
Referenced by TrainAndTestAnn().
|
private |
Definition at line 88 of file CbmRichTrainAnnSelect.h.
Referenced by Init(), and SetRecFlag().
|
private |
Definition at line 94 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 95 of file CbmRichTrainAnnSelect.h.
Referenced by Draw(), and TrainAndTestAnn().
|
private |
Definition at line 92 of file CbmRichTrainAnnSelect.h.
Referenced by SetRecFlag().
|
private |
Definition at line 89 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), Init(), and SetRecFlag().
|
private |
Definition at line 87 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), Init(), and SetRecFlag().
|
private |
Definition at line 114 of file CbmRichTrainAnnSelect.h.
Referenced by CbmRichTrainAnnSelect(), DiffFakeTrueCircle(), Draw(), Exec(), and TrainAndTestAnn().
|
private |
Definition at line 117 of file CbmRichTrainAnnSelect.h.
Referenced by DiffFakeTrueCircle(), FinishTask(), and Init().