EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmRichTrainAnnElectrons Class Reference

Train ANN for electron identification in RICH. More...

#include <EicRoot/blob/master/rich/CbmRichTrainAnnElectrons.h>

+ Inheritance diagram for CbmRichTrainAnnElectrons:
+ Collaboration diagram for CbmRichTrainAnnElectrons:

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.
 
- Public Member Functions inherited from FairTask
 FairTask ()
 
 FairTask (const char *name, Int_t iVerbose=1)
 
virtual ~FairTask ()
 
void InitTask ()
 
void ReInitTask ()
 
void SetParTask ()
 
virtual void FinishEvent ()
 
void SetVerbose (Int_t iVerbose)
 
void SetInputPersistance (Bool_t val)
 
void CheckInputPersistance (TString branchName)
 

Private Member Functions

void DiffElandPi ()
 Fill input parameters for ANN in array and histograms.
 
void TrainAndTestAnn ()
 Train and test ANN.
 
void Draw ()
 Draw results.
 
 CbmRichTrainAnnElectrons (const CbmRichTrainAnnElectrons &)
 Copy constructor.
 
CbmRichTrainAnnElectronsoperator= (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
 
Int_t fMaxNofTrainSamples
 
Int_t fNofPiLikeEl
 
Int_t fNofElLikePi
 
Double_t fAnnCut
 
vector< TH1D * > fhAnnOutput
 
vector< TH1D * > fhCumProb
 
vector< vector
< RingElectronParam > > 
fRElIdParams
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from FairTask
virtual InitStatus ReInit ()
 
virtual void SetParContainers ()
 
virtual void Finish ()
 
void InitTasks ()
 
void ReInitTasks ()
 
void SetParTasks ()
 
void FinishTasks ()
 
void FinishEvents ()
 
- Protected Attributes inherited from FairTask
Int_t fVerbose
 
Int_t fInputPersistance
 Indicates if input branch is persistant.
 
FairLoggerfLogger
 

Detailed Description

Train ANN for electron identification in RICH.

Author
Semen Lebedev s.leb.nosp@m.edev.nosp@m.@gsi..nosp@m.de
Date
2011

Definition at line 56 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 56 of file CbmRichTrainAnnElectrons.h

Constructor & Destructor Documentation

CbmRichTrainAnnElectrons::CbmRichTrainAnnElectrons ( )

Default constructor.

Definition at line 44 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 44 of file CbmRichTrainAnnElectrons.cxx

References fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fHists, fhNofHits, fhPhiVsRadAng, fhRadPos, and fRElIdParams.

CbmRichTrainAnnElectrons::~CbmRichTrainAnnElectrons ( )
virtual

Destructor.

Definition at line 137 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 137 of file CbmRichTrainAnnElectrons.cxx

CbmRichTrainAnnElectrons::CbmRichTrainAnnElectrons ( const CbmRichTrainAnnElectrons )
private

Copy constructor.

Member Function Documentation

void CbmRichTrainAnnElectrons::DiffElandPi ( )
private

Fill input parameters for ANN in array and histograms.

Definition at line 189 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 189 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::GetAaxisCor(), CbmRichRing::GetBaxis(), CbmRichRing::GetBaxisCor(), CbmRichRing::GetChi2(), CbmRichRing::GetDistance(), CbmTrackMatch::GetMCTrackId(), CbmMCTrack::GetMotherId(), CbmRichRing::GetNDF(), CbmTrackMatch::GetNofFakeHits(), CbmRichRing::GetNofHits(), CbmTrackMatch::GetNofTrueHits(), CbmTrackMatch::GetNofWrongHits(), CbmMCTrack::GetP(), CbmMCTrack::GetPdgCode(), CbmRichRing::GetPhi(), CbmRichRing::GetRadialAngle(), CbmRichRing::GetRadialPosition(), CbmGlobalTrack::GetRichRingIndex(), CbmGlobalTrack::GetStsTrackIndex(), momentum, p, and pdg.

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichTrainAnnElectrons::Draw ( )
private

Draw results.

Definition at line 367 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 367 of file CbmRichTrainAnnElectrons.cxx

References c, c1, c2, c3, c4, DrawH1(), DrawH2(), fAnnCut, fhAaxis, fhAaxisVsMom, fhAnnOutput, fhBaxis, fhBaxisVsMom, fhChi2, fhCumProb, fhDistMisMatch, fhDistTrueMatch, fhNofHits, fhPhiVsRadAng, fhRadPos, fNofElLikePi, fNofPiLikeEl, fRElIdParams, kLinear, kLog, and SetDefaultDrawStyle().

Referenced by FinishTask().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichTrainAnnElectrons::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 179 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 179 of file CbmRichTrainAnnElectrons.cxx

References DiffElandPi(), fEventNum, and fRElIdParams.

+ Here is the call graph for this function:

void CbmRichTrainAnnElectrons::FinishTask ( )
virtual

Inherited from FairTask.

Reimplemented from FairTask.

Definition at line 463 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 463 of file CbmRichTrainAnnElectrons.cxx

References Draw(), fHists, and TrainAndTestAnn().

+ Here is the call graph for this function:

InitStatus CbmRichTrainAnnElectrons::Init ( void  )
virtual

Inherited from FairTask.

Reimplemented from FairTask.

Definition at line 142 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 142 of file CbmRichTrainAnnElectrons.cxx

References fGlobalTracks, fMCTracks, fRichHits, fRichPoints, fRichProj, fRichRingMatches, fRichRings, fStsTrackMatches, fStsTracks, FairRootManager::GetObject(), FairRootManager::Instance(), and kSUCCESS.

+ Here is the call graph for this function:

CbmRichTrainAnnElectrons& CbmRichTrainAnnElectrons::operator= ( const CbmRichTrainAnnElectrons )
private

Assignment operator.

void CbmRichTrainAnnElectrons::TrainAndTestAnn ( )
private

Train and test ANN.

Definition at line 286 of file CbmRichTrainAnnElectrons.cxx.

View newest version in sPHENIX GitHub at line 286 of file CbmRichTrainAnnElectrons.cxx

References fAnnCut, fhAnnOutput, fMaxNofTrainSamples, fNofElLikePi, fNofPiLikeEl, fRElIdParams, k, and x.

Referenced by FinishTask().

+ Here is the caller graph for this function:

Member Data Documentation

Double_t CbmRichTrainAnnElectrons::fAnnCut
private

Definition at line 104 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 104 of file CbmRichTrainAnnElectrons.h

Referenced by Draw(), and TrainAndTestAnn().

Int_t CbmRichTrainAnnElectrons::fEventNum
private

Definition at line 87 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 87 of file CbmRichTrainAnnElectrons.h

Referenced by Exec().

TClonesArray* CbmRichTrainAnnElectrons::fGlobalTracks
private

Definition at line 95 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 95 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().

vector<TH1D*> CbmRichTrainAnnElectrons::fhAaxis
private

Definition at line 116 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 116 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH2D*> CbmRichTrainAnnElectrons::fhAaxisVsMom
private

Definition at line 125 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 125 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhAnnOutput
private

Definition at line 107 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 107 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), Draw(), and TrainAndTestAnn().

vector<TH1D*> CbmRichTrainAnnElectrons::fhBaxis
private

Definition at line 117 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 117 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH2D*> CbmRichTrainAnnElectrons::fhBaxisVsMom
private

Definition at line 126 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 126 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhChi2
private

Definition at line 123 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 123 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhCumProb
private

Definition at line 108 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 108 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhDistMisMatch
private

Definition at line 121 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 121 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhDistTrueMatch
private

Definition at line 120 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 120 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1*> CbmRichTrainAnnElectrons::fHists
private

Definition at line 129 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 129 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), and FinishTask().

vector<TH1D*> CbmRichTrainAnnElectrons::fhNofHits
private

Definition at line 122 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 122 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH2D*> CbmRichTrainAnnElectrons::fhPhiVsRadAng
private

Definition at line 127 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 127 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

vector<TH1D*> CbmRichTrainAnnElectrons::fhRadPos
private

Definition at line 124 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 124 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), and Draw().

Int_t CbmRichTrainAnnElectrons::fMaxNofTrainSamples
private

Definition at line 100 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 100 of file CbmRichTrainAnnElectrons.h

Referenced by TrainAndTestAnn().

TClonesArray* CbmRichTrainAnnElectrons::fMCTracks
private

Definition at line 91 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 91 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().

Int_t CbmRichTrainAnnElectrons::fMinNofHitsInRichRing
private

Definition at line 98 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 98 of file CbmRichTrainAnnElectrons.h

Int_t CbmRichTrainAnnElectrons::fNofElLikePi
private

Definition at line 103 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 103 of file CbmRichTrainAnnElectrons.h

Referenced by Draw(), and TrainAndTestAnn().

Int_t CbmRichTrainAnnElectrons::fNofPiLikeEl
private

Definition at line 102 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 102 of file CbmRichTrainAnnElectrons.h

Referenced by Draw(), and TrainAndTestAnn().

Double_t CbmRichTrainAnnElectrons::fQuota
private

Definition at line 99 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 99 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi().

vector<vector<RingElectronParam> > CbmRichTrainAnnElectrons::fRElIdParams
private

Definition at line 112 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 112 of file CbmRichTrainAnnElectrons.h

Referenced by CbmRichTrainAnnElectrons(), DiffElandPi(), Draw(), Exec(), and TrainAndTestAnn().

TClonesArray* CbmRichTrainAnnElectrons::fRichHits
private

Definition at line 88 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 88 of file CbmRichTrainAnnElectrons.h

Referenced by Init().

TClonesArray* CbmRichTrainAnnElectrons::fRichPoints
private

Definition at line 90 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 90 of file CbmRichTrainAnnElectrons.h

Referenced by Init().

TClonesArray* CbmRichTrainAnnElectrons::fRichProj
private

Definition at line 93 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 93 of file CbmRichTrainAnnElectrons.h

Referenced by Init().

TClonesArray* CbmRichTrainAnnElectrons::fRichRingMatches
private

Definition at line 92 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 92 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().

TClonesArray* CbmRichTrainAnnElectrons::fRichRings
private

Definition at line 89 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 89 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().

TClonesArray* CbmRichTrainAnnElectrons::fStsTrackMatches
private

Definition at line 94 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 94 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().

TClonesArray* CbmRichTrainAnnElectrons::fStsTracks
private

Definition at line 96 of file CbmRichTrainAnnElectrons.h.

View newest version in sPHENIX GitHub at line 96 of file CbmRichTrainAnnElectrons.h

Referenced by DiffElandPi(), and Init().


The documentation for this class was generated from the following files: