13#include "FairRootManager.h"
14#include "TClonesArray.h"
15#include "TMatrixTSym.h"
40 FairRootManager* ioman = FairRootManager::Instance();
42 cout <<
"-E- CbmPVFinderIdeal::Init: "
43 <<
"RootManager not instantised!" << endl;
48 fMCTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
50 cout <<
"-E- CbmPVFinderIdeal::Init: No MCTrack array!" << endl;
66 Int_t nTracks =
fMCTracks->GetEntriesFast();
68 for (Int_t iTrack = 0; iTrack < nTracks; iTrack++) {
70 if (!mcTrack)
continue;
81 TMatrixFSym covMat(3);
88 cout <<
"-W- CbmPVFinderIdeal::FindPrimaryVertex: "
89 <<
"No primary MCTracks found!" << endl;
92 vertex->
SetVertex(
x,
y, z, chi2, ndf, nPrim, covMat);
102 LOG(fatal) << GetName() <<
": handling of event objects is not implemented yet.";
ClassImp(CbmConverterManager)
Class characterising one event by a collection of links (indices) to data objects,...
int32_t GetMotherId() const
virtual Int_t FindEventVertex(CbmEvent *event, TClonesArray *tracks)
virtual Int_t FindPrimaryVertex(TClonesArray *tracks, CbmVertex *vertex)
virtual ~CbmPVFinderIdeal()
void SetVertex(double x, double y, double z, double chi2, int32_t ndf, int32_t nTracks, const TMatrixFSym &covMat)