Go to the documentation of this file.
10 #include "FairLogger.h"
11 #include "FairRootManager.h"
13 #include "TClonesArray.h"
14 #include "TMatrixTSym.h"
37 FairRootManager* ioman = FairRootManager::Instance();
39 cout <<
"-E- CbmPVFinderIdeal::Init: "
40 <<
"RootManager not instantised!" << endl;
45 fMCTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
47 cout <<
"-E- CbmPVFinderIdeal::Init: No MCTrack array!" << endl;
62 Int_t nTracks =
fMCTracks->GetEntriesFast();
64 for (Int_t iTrack = 0; iTrack < nTracks; iTrack++) {
66 if (!mcTrack)
continue;
77 TMatrixFSym covMat(3);
83 cout <<
"-W- CbmPVFinderIdeal::FindPrimaryVertex: "
84 <<
"No primary MCTracks found!" << endl;
87 vertex->
SetVertex(
x,
y, z, chi2, ndf, nPrim, covMat);
97 LOG(fatal) << GetName()
98 <<
": handling of event objects is not implemented yet.";
void SetVertex(Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat)
Int_t GetMotherId() const
Double_t GetStartX() const
Double_t GetStartZ() const
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
virtual Int_t FindEventVertex(CbmEvent *event, TClonesArray *tracks)
virtual ~CbmPVFinderIdeal()
Double_t GetStartY() const
Class characterising one event by a collection of links (indices) to data objects,...
virtual Int_t FindPrimaryVertex(TClonesArray *tracks, CbmVertex *vertex)