Go to the documentation of this file.
11 #include "CbmTofHit.h"
13 #include "FairRootManager.h"
15 #include "TClonesArray.h"
43 FairRootManager* ioman = FairRootManager::Instance();
44 if (ioman !=
nullptr) {
45 fGlobalTracks = (TClonesArray*) ioman->GetObject(
"GlobalTrack");
46 fRichRings = (TClonesArray*) ioman->GetObject(
"RichRing");
47 fTrdTracks = (TClonesArray*) ioman->GetObject(
"TrdTrack");
48 fTofHits = (TClonesArray*) ioman->GetObject(
"TofHit");
59 if (richId < 0)
return false;
61 if (NULL == ring)
return false;
74 globalTrackIndex, momentum);
88 if (trdId < 0)
return false;
90 if (NULL == trdTrack)
return false;
104 Double_t trackLength = globalTrack->
GetLength() / 100.;
106 if (tofId < 0)
return false;
108 if (NULL == tofHit)
return false;
113 TMath::Power(momentum, 2.) * (TMath::Power(time / trackLength, 2) - 1);
115 if (momentum >= 1.) {
116 if (mass2 < (0.013 * momentum - 0.003)) {
return true; }
137 if (trdId < 0)
return -1.;
139 if (NULL == trdTrack)
return -1.;
TClonesArray * fTrdTracks
TClonesArray * fGlobalTracks
void Init()
Initialize TClonesArrays.
Int_t GetRichRingIndex() const
Double_t GetRichAnn(Int_t globalTrackIndex, Double_t momentum)
Identify electron in RICH detector.
Bool_t IsTrdElectron(Int_t globalTrackindex, Double_t momentum)
Identify electron in RICH detector.
Double_t GetLength() const
Double_t GetTrdAnn(Int_t globalTrackindex, Double_t momentum)
Return ANN value for electron Identification in the TRD detector.
ClassImp(CbmLitGlobalElectronId)
Bool_t IsRichElectron(Int_t globalTrackIndex, Double_t momentum)
Identify electron in RICH detector.
static Double_t GetRingTrackDistance(Int_t globalTrackId)
Double_t GetPidANN() const
Int_t GetTrdTrackIndex() const
CbmLitGlobalElectronId()
Constructor.
Double_t GetAaxis() const
Bool_t IsTofElectron(Int_t globalTrackIndex, Double_t momentum)
Identify electron in RICH detector.
Double_t GetBaxis() const
virtual ~CbmLitGlobalElectronId()
Destructor.
static CbmRichElectronIdAnn & GetInstance()
friend F32vec4 fabs(const F32vec4 &a)
double CalculateAnnValue(int globalTrackIndex, double momentum)
Calculate output value of the ANN.
Implementation of the electron identification algorithm in the RICH detector using Artificial Neural ...
Int_t GetTofHitIndex() const
TClonesArray * fRichRings