CbmRoot
|
#include <CbmPVFinderIdeal.h>
Public Member Functions | |
CbmPVFinderIdeal () | |
virtual | ~CbmPVFinderIdeal () |
virtual void | Init () |
virtual Int_t | FindPrimaryVertex (TClonesArray *tracks, CbmVertex *vertex) |
virtual Int_t | FindEventVertex (CbmEvent *event, TClonesArray *tracks) |
ClassDef (CbmPrimaryVertexFinder, 1) | |
Private Member Functions | |
CbmPVFinderIdeal (const CbmPVFinderIdeal &) | |
CbmPVFinderIdeal & | operator= (const CbmPVFinderIdeal &) |
ClassDef (CbmPVFinderIdeal, 1) | |
Private Attributes | |
TClonesArray * | fMCTracks |
Ideal primary vertex finder. It takes the start vertex of primary MCTracks. Warning: This works only if the MC input tracks really start from the primary vertex and are not displaced by hand. The primary vertex should ideally be taken from the appropriate MC class, which is not yet implemented.
Definition at line 26 of file CbmPVFinderIdeal.h.
CbmPVFinderIdeal::CbmPVFinderIdeal | ( | ) |
Default constructor
Definition at line 23 of file CbmPVFinderIdeal.cxx.
|
virtual |
Destructor
Definition at line 29 of file CbmPVFinderIdeal.cxx.
|
private |
|
inherited |
|
private |
|
virtual |
Primary vertex finding for one event
event | Pointer to event object |
tracks | TClonesArray of CbmStsTracks |
Implements CbmPrimaryVertexFinder.
Definition at line 95 of file CbmPVFinderIdeal.cxx.
|
virtual |
Primary vertex finding
Implements CbmPrimaryVertexFinder.
Definition at line 55 of file CbmPVFinderIdeal.cxx.
References fMCTracks, CbmMCTrack::GetMotherId(), CbmMCTrack::GetStartX(), CbmMCTrack::GetStartY(), CbmMCTrack::GetStartZ(), CbmVertex::SetVertex(), x, and y.
|
virtual |
Initialisation
Reimplemented from CbmPrimaryVertexFinder.
Definition at line 34 of file CbmPVFinderIdeal.cxx.
References fMCTracks.
|
private |
|
private |
Array of MCTracks
Definition at line 53 of file CbmPVFinderIdeal.h.
Referenced by FindPrimaryVertex(), and Init().