CbmRoot
|
#include <CbmLitGlobalElectronId.h>
Public Member Functions | |
virtual | ~CbmLitGlobalElectronId () |
Destructor. | |
Bool_t | IsRichElectron (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. | |
Bool_t | IsTofElectron (Int_t globalTrackIndex, Double_t momentum, Double_t eventTime=1000.) |
Identify electron in RICH detector. | |
Double_t | GetRichAnn (Int_t globalTrackIndex, Double_t momentum) |
Identify electron in RICH detector. | |
Double_t | GetTrdAnn (Int_t globalTrackindex, Double_t momentum) |
Return ANN value for electron Identification in the TRD detector. | |
Double_t | GetTofM2 (Int_t globalTrackIndex, Double_t momentum, Double_t eventTime=1000.) |
Return TOF m2 value. | |
void | SetTrdAnnCut (Double_t par) |
Set cut on TRD ANN output value. | |
void | SetRichUseAnn (Bool_t par) |
Set to true if you want to use ANN method for the RICH detector. | |
void | SetRichAnnCut (Double_t par) |
Set cut on RICH ANN output value. | |
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. | |
Double_t | GetRichAnnCut () |
Return RICH ANN cut. | |
Double_t | GetTrdAnnCut () |
Return TRD ANN cut. | |
Static Public Member Functions | |
static CbmLitGlobalElectronId & | GetInstance () |
Private Member Functions | |
CbmLitGlobalElectronId () | |
Constructor. | |
void | Init () |
Initialize TClonesArrays. | |
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 13 of file CbmLitGlobalElectronId.h.
|
private |
|
virtual |
Destructor.
Definition at line 49 of file CbmLitGlobalElectronId.cxx.
|
private |
|
private |
|
inlinestatic |
Return Instance of CbmLitGlobalElectronId.
Definition at line 30 of file CbmLitGlobalElectronId.h.
Referenced by CbmAnaConversionPhotons2::AnalyseElectronsRecoWithRICH(), LmvmTask::AnalyseGlobalTracks(), CbmAnaConversionRecoFull::CombineElectrons(), CbmAnaConversionRecoFull::CombinePhotons(), CbmAnaConversionTest::DoSTSonlyAnalysis(), CbmAnaJpsiReport::DrawCutDistributions(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), LmvmTask::FillTopologyCands(), CbmAnaConversionTest::HasRichInd(), CbmAnaConversionRecoFull::Init(), CbmAnaConversionTest::Init(), CbmLitTrackingQa::Init(), LmvmTask::Init(), CbmAnaJpsiTask::IsElectron(), LmvmUtils::IsElectron(), LmvmUtils::IsRichElectron(), LmvmUtils::IsTofElectron(), LmvmUtils::IsTrdElectron(), LmvmTask::PidVsMom(), 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 144 of file CbmLitGlobalElectronId.cxx.
References CbmRichElectronIdAnn::CalculateAnnValue(), and CbmRichElectronIdAnn::GetInstance().
Referenced by CbmAnaJpsiTask::IsElectron(), and LmvmUtils::IsElectron().
|
inline |
Return RICH ANN cut.
Definition at line 133 of file CbmLitGlobalElectronId.h.
References fRichAnnCut.
Double_t CbmLitGlobalElectronId::GetTofM2 | ( | Int_t | globalTrackIndex, |
Double_t | momentum, | ||
Double_t | eventTime = 1000. ) |
Return TOF m2 value.
Definition at line 161 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTofHits, CbmGlobalTrack::GetLength(), CbmHit::GetTime(), and CbmGlobalTrack::GetTofHitIndex().
Referenced by LmvmTask::AnalyseGlobalTracks(), LmvmUtils::IsElectron(), and IsTofElectron().
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 149 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTrdTracks, CbmTrdTrack::GetPidLikeEL(), and CbmGlobalTrack::GetTrdTrackIndex().
Referenced by CbmAnaJpsiTask::IsElectron().
|
inline |
|
private |
Initialize TClonesArrays.
Definition at line 51 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fRichAnnCut, fRichRings, fTofHits, fTrdAnnCut, 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 64 of file CbmLitGlobalElectronId.cxx.
References CbmRichElectronIdAnn::CalculateAnnValue(), 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(), LmvmTask::AnalyseGlobalTracks(), CbmAnaConversionRecoFull::CombinePhotons(), CbmAnaConversionTest::DoSTSonlyAnalysis(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), LmvmTask::FillTopologyCands(), CbmAnaConversionTest::HasRichInd(), CbmAnaJpsiTask::IsElectron(), LmvmUtils::IsElectron(), LmvmUtils::IsRichElectron(), LmvmTask::PidVsMom(), and CbmLitTrackingQa::PionSuppression().
Bool_t CbmLitGlobalElectronId::IsTofElectron | ( | Int_t | globalTrackIndex, |
Double_t | momentum, | ||
Double_t | eventTime = 1000. ) |
Identify electron in RICH detector.
[in] | globalTrackIndex | Index of global track. |
[in] | momentum | Momentum of track. |
Definition at line 113 of file CbmLitGlobalElectronId.cxx.
References GetTofM2().
Referenced by LmvmTask::AnalyseGlobalTracks(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), LmvmTask::FillTopologyCands(), CbmAnaJpsiTask::IsElectron(), LmvmUtils::IsElectron(), LmvmUtils::IsTofElectron(), LmvmTask::PidVsMom(), 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 93 of file CbmLitGlobalElectronId.cxx.
References fGlobalTracks, fTrdAnnCut, fTrdTracks, CbmTrdTrack::GetPidLikeEL(), and CbmGlobalTrack::GetTrdTrackIndex().
Referenced by LmvmTask::AnalyseGlobalTracks(), CbmLitTrackingQa::ElectronId(), CbmAnaConversionRecoFull::Exec(), LmvmTask::FillTopologyCands(), CbmAnaJpsiTask::IsElectron(), LmvmUtils::IsElectron(), LmvmUtils::IsTrdElectron(), LmvmTask::PidVsMom(), and CbmLitTrackingQa::PionSuppression().
|
private |
|
inline |
Set cut on RICH ANN output value.
Definition at line 115 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 120 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 110 of file CbmLitGlobalElectronId.h.
References fRichUseAnn.
|
inline |
Set cut on TRD ANN output value.
Definition at line 105 of file CbmLitGlobalElectronId.h.
References fTrdAnnCut.
Referenced by CbmLitTrackingQa::Init().
|
private |
Definition at line 151 of file CbmLitGlobalElectronId.h.
Referenced by GetTofM2(), GetTrdAnn(), Init(), IsRichElectron(), and IsTrdElectron().
|
private |
Definition at line 141 of file CbmLitGlobalElectronId.h.
Referenced by GetRichAnnCut(), Init(), IsRichElectron(), and SetRichAnnCut().
|
private |
Definition at line 148 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 144 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 152 of file CbmLitGlobalElectronId.h.
Referenced by Init(), and IsRichElectron().
|
private |
Definition at line 145 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 146 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 147 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichCuts().
|
private |
Definition at line 142 of file CbmLitGlobalElectronId.h.
Referenced by IsRichElectron(), and SetRichUseAnn().
|
private |
Definition at line 154 of file CbmLitGlobalElectronId.h.
Referenced by GetTofM2(), and Init().
|
private |
Definition at line 149 of file CbmLitGlobalElectronId.h.
Referenced by GetTrdAnnCut(), Init(), IsTrdElectron(), and SetTrdAnnCut().
|
private |
Definition at line 153 of file CbmLitGlobalElectronId.h.
Referenced by GetTrdAnn(), Init(), and IsTrdElectron().