CbmRoot
CbmLitGlobalElectronId Class Reference

#include <CbmLitGlobalElectronId.h>

Inheritance diagram for CbmLitGlobalElectronId:
[legend]
Collaboration diagram for CbmLitGlobalElectronId:
[legend]

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 CbmLitGlobalElectronIdGetInstance ()
 

Private Member Functions

 CbmLitGlobalElectronId ()
 Constructor. More...
 
void Init ()
 Initialize TClonesArrays. More...
 
 CbmLitGlobalElectronId (const CbmLitGlobalElectronId &)
 
CbmLitGlobalElectronIdoperator= (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
 

Detailed Description

Definition at line 15 of file CbmLitGlobalElectronId.h.

Constructor & Destructor Documentation

◆ CbmLitGlobalElectronId() [1/2]

CbmLitGlobalElectronId::CbmLitGlobalElectronId ( )
private

Constructor.

Definition at line 23 of file CbmLitGlobalElectronId.cxx.

References Init().

◆ ~CbmLitGlobalElectronId()

CbmLitGlobalElectronId::~CbmLitGlobalElectronId ( )
virtual

Destructor.

Definition at line 40 of file CbmLitGlobalElectronId.cxx.

◆ CbmLitGlobalElectronId() [2/2]

CbmLitGlobalElectronId::CbmLitGlobalElectronId ( const CbmLitGlobalElectronId )
private

Member Function Documentation

◆ ClassDef()

CbmLitGlobalElectronId::ClassDef ( CbmLitGlobalElectronId  ,
 
)
private

◆ GetInstance()

◆ GetRichAnn()

Double_t CbmLitGlobalElectronId::GetRichAnn ( Int_t  globalTrackIndex,
Double_t  momentum 
)

Identify electron in RICH detector.

Parameters
[in]globalTrackIndexIndex of global track.
[in]momentumMomentum of track.
Returns
true if track is identified as electron otherwise return false.

Return ANN value for electron Identification in the RICH detector.

Parameters
[in]globalTrackIndexIndex of global track.
[in]momentumMomentum of track.
Returns
RICH ANN value.

Definition at line 125 of file CbmLitGlobalElectronId.cxx.

References CbmRichElectronIdAnn::CalculateAnnValue(), and CbmRichElectronIdAnn::GetInstance().

Referenced by CbmAnaJpsiTask::IsElectron(), and CbmAnaDielectronTask::IsElectron().

◆ GetRichAnnCut()

Double_t CbmLitGlobalElectronId::GetRichAnnCut ( )
inline

Return RICH ANN cut.

Definition at line 129 of file CbmLitGlobalElectronId.h.

References fRichAnnCut.

◆ GetTrdAnn()

Double_t CbmLitGlobalElectronId::GetTrdAnn ( Int_t  globalTrackindex,
Double_t  momentum 
)

Return ANN value for electron Identification in the TRD detector.

Parameters
[in]globalTrackIndexIndex of global track.
[in]momentumMomentum of track.
Returns
TRD ANN value.

Definition at line 131 of file CbmLitGlobalElectronId.cxx.

References fGlobalTracks, fTrdTracks, CbmTrdTrack::GetPidANN(), and CbmGlobalTrack::GetTrdTrackIndex().

Referenced by CbmAnaJpsiTask::IsElectron(), and CbmAnaDielectronTask::IsElectron().

◆ GetTrdAnnCut()

Double_t CbmLitGlobalElectronId::GetTrdAnnCut ( )
inline

Return TRD ANN cut.

Definition at line 134 of file CbmLitGlobalElectronId.h.

References fTrdAnnCut.

◆ Init()

void CbmLitGlobalElectronId::Init ( )
private

Initialize TClonesArrays.

Definition at line 42 of file CbmLitGlobalElectronId.cxx.

References fGlobalTracks, fRichRings, fTofHits, and fTrdTracks.

Referenced by CbmLitGlobalElectronId().

◆ IsRichElectron()

◆ IsTofElectron()

Bool_t CbmLitGlobalElectronId::IsTofElectron ( Int_t  globalTrackIndex,
Double_t  momentum 
)

Identify electron in RICH detector.

Parameters
[in]globalTrackIndexIndex of global track.
[in]momentumMomentum of track.
Returns
true if track is identified as electron otherwise return false.

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().

◆ IsTrdElectron()

Bool_t CbmLitGlobalElectronId::IsTrdElectron ( Int_t  globalTrackindex,
Double_t  momentum 
)

Identify electron in RICH detector.

Parameters
[in]globalTrackIndexIndex of global track.
[in]momentumMomentum of track.
Returns
true if track is identified as electron otherwise return false.

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().

◆ operator=()

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

◆ SetRichAnnCut()

void CbmLitGlobalElectronId::SetRichAnnCut ( Double_t  par)
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().

◆ SetRichCuts()

void CbmLitGlobalElectronId::SetRichCuts ( Double_t  meanA,
Double_t  rmsA,
Double_t  meanB,
Double_t  rmsB,
Double_t  rmsCoeff,
Double_t  rtDistCut 
)
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.

◆ SetRichUseAnn()

void CbmLitGlobalElectronId::SetRichUseAnn ( Bool_t  par)
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.

◆ SetTrdAnnCut()

void CbmLitGlobalElectronId::SetTrdAnnCut ( Double_t  par)
inline

Set cut on TRD ANN output value.

Definition at line 97 of file CbmLitGlobalElectronId.h.

References fTrdAnnCut.

Referenced by CbmLitTrackingQa::Init().

Member Data Documentation

◆ fGlobalTracks

TClonesArray* CbmLitGlobalElectronId::fGlobalTracks
private

◆ fRichAnnCut

Double_t CbmLitGlobalElectronId::fRichAnnCut
private

Definition at line 137 of file CbmLitGlobalElectronId.h.

Referenced by GetRichAnnCut(), IsRichElectron(), and SetRichAnnCut().

◆ fRichDistCut

Double_t CbmLitGlobalElectronId::fRichDistCut
private

Definition at line 144 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichMeanA

Double_t CbmLitGlobalElectronId::fRichMeanA
private

Definition at line 139 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichMeanB

Double_t CbmLitGlobalElectronId::fRichMeanB
private

Definition at line 140 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRings

TClonesArray* CbmLitGlobalElectronId::fRichRings
private

Definition at line 148 of file CbmLitGlobalElectronId.h.

Referenced by Init(), and IsRichElectron().

◆ fRichRmsA

Double_t CbmLitGlobalElectronId::fRichRmsA
private

Definition at line 141 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRmsB

Double_t CbmLitGlobalElectronId::fRichRmsB
private

Definition at line 142 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRmsCoeff

Double_t CbmLitGlobalElectronId::fRichRmsCoeff
private

Definition at line 143 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichUseAnn

Bool_t CbmLitGlobalElectronId::fRichUseAnn
private

Definition at line 138 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichUseAnn().

◆ fTofHits

TClonesArray* CbmLitGlobalElectronId::fTofHits
private

Definition at line 150 of file CbmLitGlobalElectronId.h.

Referenced by Init(), and IsTofElectron().

◆ fTrdAnnCut

Double_t CbmLitGlobalElectronId::fTrdAnnCut
private

Definition at line 145 of file CbmLitGlobalElectronId.h.

Referenced by GetTrdAnnCut(), IsTrdElectron(), and SetTrdAnnCut().

◆ fTrdTracks

TClonesArray* CbmLitGlobalElectronId::fTrdTracks
private

Definition at line 149 of file CbmLitGlobalElectronId.h.

Referenced by GetTrdAnn(), Init(), and IsTrdElectron().


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