CbmRoot
|
Ring-Track Assignment according to the closest distance criterion. More...
#include <CbmRichRingTrackAssignClosestD.h>
Public Member Functions | |
CbmRichRingTrackAssignClosestD () | |
Default constructor. | |
virtual | ~CbmRichRingTrackAssignClosestD () |
Destructor. | |
void | Init () |
Inherited from CbmRichRingTrackAssignBase. | |
void | DoAssign (CbmEvent *event, TClonesArray *rings, TClonesArray *richProj) |
Inherited from CbmRichRingTrackAssignBase. | |
void | DoAssignRingTrack (CbmEvent *event, TClonesArray *rings, TClonesArray *richProj) |
Implementation of the ring-track version of the algorithm. | |
void | DoAssignTrackRing (CbmEvent *event, TClonesArray *rings, TClonesArray *richProj) |
Implementation of the track-ring version of the algorithm. | |
Protected Attributes | |
double | fMaxDistance = 999. |
int | fMinNofHitsInRing = 1 |
Private Member Functions | |
bool | IsTrdElectron (int iTrack) |
Check if global track was identified as electron in the TRD detector. | |
CbmRichRingTrackAssignClosestD (const CbmRichRingTrackAssignClosestD &) | |
Copy constructor. | |
CbmRichRingTrackAssignClosestD & | operator= (const CbmRichRingTrackAssignClosestD &) |
Assignment operator. | |
Private Attributes | |
TClonesArray * | fGlobalTracks = nullptr |
TClonesArray * | fTrdTracks = nullptr |
double | fTrdAnnCut = -0.5 |
bool | fUseTrd = false |
CbmRichRingTrackAssignClosestDAlgorithmEnum | fAlgorithmType = RingTrack |
int | fEventNum = 0 |
Ring-Track Assignment according to the closest distance criterion.
Definition at line 36 of file CbmRichRingTrackAssignClosestD.h.
CbmRichRingTrackAssignClosestD::CbmRichRingTrackAssignClosestD | ( | ) |
Default constructor.
Definition at line 33 of file CbmRichRingTrackAssignClosestD.cxx.
|
virtual |
Destructor.
Definition at line 35 of file CbmRichRingTrackAssignClosestD.cxx.
|
private |
Copy constructor.
|
virtual |
Inherited from CbmRichRingTrackAssignBase.
Implements CbmRichRingTrackAssignBase.
Definition at line 49 of file CbmRichRingTrackAssignClosestD.cxx.
References Combined, DoAssignRingTrack(), DoAssignTrackRing(), fAlgorithmType, fEventNum, kRichRing, kRichTrackProjection, richProj, rings, RingTrack, and TrackRing.
void CbmRichRingTrackAssignClosestD::DoAssignRingTrack | ( | CbmEvent * | event, |
TClonesArray * | rings, | ||
TClonesArray * | richProj ) |
Implementation of the ring-track version of the algorithm.
Definition at line 72 of file CbmRichRingTrackAssignClosestD.cxx.
References fGlobalTracks, CbmRichRingTrackAssignBase::fMinNofHitsInRing, fTrdTracks, fUseTrd, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), IsTrdElectron(), kRichRing, kRichTrackProjection, richProj, rings, and CbmGlobalTrack::SetRichRingIndex().
Referenced by DoAssign().
void CbmRichRingTrackAssignClosestD::DoAssignTrackRing | ( | CbmEvent * | event, |
TClonesArray * | rings, | ||
TClonesArray * | richProj ) |
Implementation of the track-ring version of the algorithm.
Definition at line 155 of file CbmRichRingTrackAssignClosestD.cxx.
References fGlobalTracks, CbmRichRingTrackAssignBase::fMinNofHitsInRing, fTrdTracks, fUseTrd, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), CbmGlobalTrack::GetRichRingIndex(), IsTrdElectron(), kRichRing, kRichTrackProjection, richProj, rings, and CbmGlobalTrack::SetRichRingIndex().
Referenced by DoAssign().
|
virtual |
Inherited from CbmRichRingTrackAssignBase.
Reimplemented from CbmRichRingTrackAssignBase.
Definition at line 37 of file CbmRichRingTrackAssignClosestD.cxx.
References fGlobalTracks, and fTrdTracks.
|
private |
Check if global track was identified as electron in the TRD detector.
[in] | iTrack | Index of global track. |
Definition at line 193 of file CbmRichRingTrackAssignClosestD.cxx.
References fGlobalTracks, fTrdAnnCut, fTrdTracks, CbmTrdTrack::GetPidANN(), and CbmGlobalTrack::GetTrdTrackIndex().
Referenced by DoAssignRingTrack(), and DoAssignTrackRing().
|
private |
Assignment operator.
|
private |
Definition at line 74 of file CbmRichRingTrackAssignClosestD.h.
Referenced by DoAssign().
|
private |
Definition at line 75 of file CbmRichRingTrackAssignClosestD.h.
Referenced by DoAssign().
|
private |
Definition at line 69 of file CbmRichRingTrackAssignClosestD.h.
Referenced by DoAssignRingTrack(), DoAssignTrackRing(), Init(), and IsTrdElectron().
|
protectedinherited |
Definition at line 54 of file CbmRichRingTrackAssignBase.h.
|
protectedinherited |
Definition at line 55 of file CbmRichRingTrackAssignBase.h.
Referenced by CbmRichRingTrackAssignIdeal::DoAssign(), DoAssignRingTrack(), and DoAssignTrackRing().
|
private |
Definition at line 72 of file CbmRichRingTrackAssignClosestD.h.
Referenced by IsTrdElectron().
|
private |
Definition at line 70 of file CbmRichRingTrackAssignClosestD.h.
Referenced by DoAssignRingTrack(), DoAssignTrackRing(), Init(), and IsTrdElectron().
|
private |
Definition at line 73 of file CbmRichRingTrackAssignClosestD.h.
Referenced by DoAssignRingTrack(), and DoAssignTrackRing().