CbmRoot
|
#include <CbmLitGlobalElectronId.h>
Public Member Functions | |
virtual | ~CbmLitGlobalElectronId () |
Destructor. More... | |
Bool_t | IsRichElectron (Int_t globalTrackIndex, Double_t momentum) |
Identify electron in RICH detector. More... | |
Bool_t | IsTrdElectron (Int_t globalTrackindex, Double_t momentum) |
Identify electron in RICH detector. More... | |
Bool_t | IsTofElectron (Int_t globalTrackIndex, Double_t momentum) |
Identify electron in RICH detector. More... | |
Double_t | GetRichAnn (Int_t globalTrackIndex, Double_t momentum) |
Identify electron in RICH detector. More... | |
Double_t | GetTrdAnn (Int_t globalTrackindex, Double_t momentum) |
Return ANN value for electron Identification in the TRD detector. More... | |
void | SetTrdAnnCut (Double_t par) |
Set cut on TRD ANN output value. More... | |
void | SetRichUseAnn (Bool_t par) |
Set to true if you want to use ANN method for the RICH detector. More... | |
void | SetRichAnnCut (Double_t par) |
Set cut on RICH ANN output value. More... | |
void | SetRichCuts (Double_t meanA, Double_t rmsA, Double_t meanB, Double_t rmsB, Double_t rmsCoeff, Double_t rtDistCut) |
Set RICH electron ID cuts when ANN is not used. More... | |
Double_t | GetRichAnnCut () |
Return RICH ANN cut. More... | |
Double_t | GetTrdAnnCut () |
Return TRD ANN cut. More... | |
Static Public Member Functions | |
static CbmLitGlobalElectronId & | GetInstance () |
Private Member Functions | |
CbmLitGlobalElectronId () | |
Constructor. More... | |
void | Init () |
Initialize TClonesArrays. More... | |
CbmLitGlobalElectronId (const CbmLitGlobalElectronId &) | |
CbmLitGlobalElectronId & | operator= (const CbmLitGlobalElectronId &) |
ClassDef (CbmLitGlobalElectronId, 1) | |
Private Attributes | |
Double_t | fRichAnnCut |
Bool_t | fRichUseAnn |
Double_t | fRichMeanA |
Double_t | fRichMeanB |
Double_t | fRichRmsA |
Double_t | fRichRmsB |
Double_t | fRichRmsCoeff |
Double_t | fRichDistCut |
Double_t | fTrdAnnCut |
TClonesArray * | fGlobalTracks |
TClonesArray * | fRichRings |
TClonesArray * | fTrdTracks |
TClonesArray * | fTofHits |
Definition at line 15 of file CbmLitGlobalElectronId.h.
|
private |
|
virtual |
Destructor.
Definition at line 40 of file CbmLitGlobalElectronId.cxx.
|
private |
|
private |
|
inlinestatic |
Return Instance of CbmLitGlobalElectronId.
Definition at line 32 of file CbmLitGlobalElectronId.h.
Referenced by CbmAnaConversionPhotons2::AnalyseElectronsRecoWithRICH(), CbmAnaConversionRecoFull::CombineElectrons(), CbmAnaConversionRecoFull::CombinePhotons(), CbmAnaConversionTest::DoSTSonlyAnalysis(), CbmAnaJpsiReport::DrawCutDistributions(), CbmAnaDielectronTaskDraw::DrawCutDistributions(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), CbmAnaDielectronTask::FillTopologyCandidates(), CbmAnaConversionTest::HasRichInd(), CbmAnaConversionRecoFull::Init(), CbmAnaConversionTest::Init(), CbmLitTrackingQa::Init(), CbmAnaJpsiTask::IsElectron(), CbmAnaDielectronTask::IsElectron(), CbmLitTrackingQa::PionSuppression(), and CbmLitTrackingQa::ProcessGlobalTracks().
Double_t CbmLitGlobalElectronId::GetRichAnn | ( | Int_t | globalTrackIndex, |
Double_t | momentum | ||
) |
Identify electron in RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Return ANN value for electron Identification in the RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 125 of file CbmLitGlobalElectronId.cxx.
References CbmRichElectronIdAnn::CalculateAnnValue(), and CbmRichElectronIdAnn::GetInstance().
Referenced by CbmAnaJpsiTask::IsElectron(), and CbmAnaDielectronTask::IsElectron().
|
inline |
Return RICH ANN cut.
Definition at line 129 of file CbmLitGlobalElectronId.h.
References fRichAnnCut.
Double_t CbmLitGlobalElectronId::GetTrdAnn | ( | Int_t | globalTrackindex, |
Double_t | momentum | ||
) |
Return ANN value for electron Identification in the TRD detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 131 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTrdTracks, CbmTrdTrack::GetPidANN(), and CbmGlobalTrack::GetTrdTrackIndex().
Referenced by CbmAnaJpsiTask::IsElectron(), and CbmAnaDielectronTask::IsElectron().
|
inline |
|
private |
Initialize TClonesArrays.
Definition at line 42 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fRichRings, fTofHits, and fTrdTracks.
Referenced by CbmLitGlobalElectronId().
Bool_t CbmLitGlobalElectronId::IsRichElectron | ( | Int_t | globalTrackIndex, |
Double_t | momentum | ||
) |
Identify electron in RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 52 of file CbmLitGlobalElectronId.cxx.
References CbmRichElectronIdAnn::CalculateAnnValue(), fabs(), fGlobalTracks, fRichAnnCut, fRichDistCut, fRichMeanA, fRichMeanB, fRichRings, fRichRmsA, fRichRmsB, fRichRmsCoeff, fRichUseAnn, CbmRichRing::GetAaxis(), CbmRichRing::GetBaxis(), CbmRichElectronIdAnn::GetInstance(), CbmGlobalTrack::GetRichRingIndex(), and CbmRichUtil::GetRingTrackDistance().
Referenced by CbmAnaConversionPhotons2::AnalyseElectronsRecoWithRICH(), CbmAnaConversionRecoFull::CombinePhotons(), CbmAnaConversionTest::DoSTSonlyAnalysis(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), CbmAnaDielectronTask::FillTopologyCandidates(), CbmAnaConversionTest::HasRichInd(), CbmAnaJpsiTask::IsElectron(), CbmAnaDielectronTask::IsElectron(), CbmLitTrackingQa::PionSuppression(), and CbmLitTrackingQa::ProcessGlobalTracks().
Bool_t CbmLitGlobalElectronId::IsTofElectron | ( | Int_t | globalTrackIndex, |
Double_t | momentum | ||
) |
Identify electron in RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 99 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTofHits, CbmGlobalTrack::GetLength(), CbmHit::GetTime(), and CbmGlobalTrack::GetTofHitIndex().
Referenced by CbmAnaConversionRecoFull::Exec(), CbmAnaDielectronTask::FillTopologyCandidates(), CbmAnaJpsiTask::IsElectron(), CbmAnaDielectronTask::IsElectron(), and CbmLitTrackingQa::PionSuppression().
Bool_t CbmLitGlobalElectronId::IsTrdElectron | ( | Int_t | globalTrackindex, |
Double_t | momentum | ||
) |
Identify electron in RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 82 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTrdAnnCut, fTrdTracks, CbmTrdTrack::GetPidANN(), and CbmGlobalTrack::GetTrdTrackIndex().
Referenced by CbmAnaConversionRecoFull::Exec(), CbmAnaDielectronTask::FillTopologyCandidates(), CbmAnaJpsiTask::IsElectron(), CbmAnaDielectronTask::IsElectron(), and CbmLitTrackingQa::PionSuppression().
|
private |
|
inline |
Set cut on RICH ANN output value.
Definition at line 107 of file CbmLitGlobalElectronId.h.
References fRichAnnCut.
Referenced by CbmAnaConversionRecoFull::Init(), CbmAnaConversionTest::Init(), and CbmLitTrackingQa::Init().
|
inline |
Set RICH electron ID cuts when ANN is not used.
Definition at line 112 of file CbmLitGlobalElectronId.h.
References fRichDistCut, fRichMeanA, fRichMeanB, fRichRmsA, fRichRmsB, and fRichRmsCoeff.
|
inline |
Set to true if you want to use ANN method for the RICH detector.
Definition at line 102 of file CbmLitGlobalElectronId.h.
References fRichUseAnn.
|
inline |
Set cut on TRD ANN output value.
Definition at line 97 of file CbmLitGlobalElectronId.h.
References fTrdAnnCut.
Referenced by CbmLitTrackingQa::Init().
|
private |
Definition at line 147 of file CbmLitGlobalElectronId.h.
Referenced by GetTrdAnn(), Init(), IsRichElectron(), IsTofElectron(), and IsTrdElectron().
|
private |
Definition at line 137 of file CbmLitGlobalElectronId.h.
Referenced by GetRichAnnCut(), IsRichElectron(), and SetRichAnnCut().
|
private |
Definition at line 144 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 139 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 140 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 148 of file CbmLitGlobalElectronId.h.
Referenced by Init(), and IsRichElectron().
|
private |
Definition at line 141 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 142 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 143 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 138 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichUseAnn().
|
private |
Definition at line 150 of file CbmLitGlobalElectronId.h.
Referenced by Init(), and IsTofElectron().
|
private |
Definition at line 145 of file CbmLitGlobalElectronId.h.
Referenced by GetTrdAnnCut(), IsTrdElectron(), and SetTrdAnnCut().
|
private |
Definition at line 149 of file CbmLitGlobalElectronId.h.
Referenced by GetTrdAnn(), Init(), and IsTrdElectron().