CbmRoot
Loading...
Searching...
No Matches
CbmLitGlobalElectronId Class Reference

#include <CbmLitGlobalElectronId.h>

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

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

Private Member Functions

 CbmLitGlobalElectronId ()
 Constructor.
 
void Init ()
 Initialize TClonesArrays.
 
 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 13 of file CbmLitGlobalElectronId.h.

Constructor & Destructor Documentation

◆ CbmLitGlobalElectronId() [1/2]

CbmLitGlobalElectronId::CbmLitGlobalElectronId ( )
private

Constructor.

Definition at line 30 of file CbmLitGlobalElectronId.cxx.

References Init().

◆ ~CbmLitGlobalElectronId()

CbmLitGlobalElectronId::~CbmLitGlobalElectronId ( )
virtual

Destructor.

Definition at line 49 of file CbmLitGlobalElectronId.cxx.

◆ CbmLitGlobalElectronId() [2/2]

CbmLitGlobalElectronId::CbmLitGlobalElectronId ( const CbmLitGlobalElectronId & )
private

Member Function Documentation

◆ ClassDef()

CbmLitGlobalElectronId::ClassDef ( CbmLitGlobalElectronId ,
1  )
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 144 of file CbmLitGlobalElectronId.cxx.

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

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

◆ GetRichAnnCut()

Double_t CbmLitGlobalElectronId::GetRichAnnCut ( )
inline

Return RICH ANN cut.

Definition at line 133 of file CbmLitGlobalElectronId.h.

References fRichAnnCut.

◆ GetTofM2()

Double_t CbmLitGlobalElectronId::GetTofM2 ( Int_t globalTrackIndex,
Double_t momentum,
Double_t eventTime = 1000. )

◆ 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 149 of file CbmLitGlobalElectronId.cxx.

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

Referenced by CbmAnaJpsiTask::IsElectron().

◆ GetTrdAnnCut()

Double_t CbmLitGlobalElectronId::GetTrdAnnCut ( )
inline

Return TRD ANN cut.

Definition at line 138 of file CbmLitGlobalElectronId.h.

References fTrdAnnCut.

◆ Init()

void CbmLitGlobalElectronId::Init ( )
private

Initialize TClonesArrays.

Definition at line 51 of file CbmLitGlobalElectronId.cxx.

References fGlobalTracks, fRichAnnCut, fRichRings, fTofHits, fTrdAnnCut, and fTrdTracks.

Referenced by CbmLitGlobalElectronId().

◆ IsRichElectron()

◆ IsTofElectron()

Bool_t CbmLitGlobalElectronId::IsTofElectron ( Int_t globalTrackIndex,
Double_t momentum,
Double_t eventTime = 1000. )

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

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

◆ 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 115 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 120 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 110 of file CbmLitGlobalElectronId.h.

References fRichUseAnn.

◆ SetTrdAnnCut()

void CbmLitGlobalElectronId::SetTrdAnnCut ( Double_t par)
inline

Set cut on TRD ANN output value.

Definition at line 105 of file CbmLitGlobalElectronId.h.

References fTrdAnnCut.

Referenced by CbmLitTrackingQa::Init().

Member Data Documentation

◆ fGlobalTracks

TClonesArray* CbmLitGlobalElectronId::fGlobalTracks
private

Definition at line 151 of file CbmLitGlobalElectronId.h.

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

◆ fRichAnnCut

Double_t CbmLitGlobalElectronId::fRichAnnCut
private

Definition at line 141 of file CbmLitGlobalElectronId.h.

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

◆ fRichDistCut

Double_t CbmLitGlobalElectronId::fRichDistCut
private

Definition at line 148 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichMeanA

Double_t CbmLitGlobalElectronId::fRichMeanA
private

Definition at line 143 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichMeanB

Double_t CbmLitGlobalElectronId::fRichMeanB
private

Definition at line 144 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRings

TClonesArray* CbmLitGlobalElectronId::fRichRings
private

Definition at line 152 of file CbmLitGlobalElectronId.h.

Referenced by Init(), and IsRichElectron().

◆ fRichRmsA

Double_t CbmLitGlobalElectronId::fRichRmsA
private

Definition at line 145 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRmsB

Double_t CbmLitGlobalElectronId::fRichRmsB
private

Definition at line 146 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichRmsCoeff

Double_t CbmLitGlobalElectronId::fRichRmsCoeff
private

Definition at line 147 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichCuts().

◆ fRichUseAnn

Bool_t CbmLitGlobalElectronId::fRichUseAnn
private

Definition at line 142 of file CbmLitGlobalElectronId.h.

Referenced by IsRichElectron(), and SetRichUseAnn().

◆ fTofHits

TClonesArray* CbmLitGlobalElectronId::fTofHits
private

Definition at line 154 of file CbmLitGlobalElectronId.h.

Referenced by GetTofM2(), and Init().

◆ fTrdAnnCut

Double_t CbmLitGlobalElectronId::fTrdAnnCut
private

Definition at line 149 of file CbmLitGlobalElectronId.h.

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

◆ fTrdTracks

TClonesArray* CbmLitGlobalElectronId::fTrdTracks
private

Definition at line 153 of file CbmLitGlobalElectronId.h.

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


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