13 #include "FairLogger.h"
14 #include "FairRootManager.h"
15 #include "TClonesArray.h"
33 fName =
"FindPrimaryVertex";
49 fName =
"FindPrimaryVertex";
81 FairRootManager* ioman = FairRootManager::Instance();
85 fEvents = (TClonesArray*) ioman->GetObject(
"Event");
89 fTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
94 ioman->Register(
"PrimaryVertex.",
97 IsOutputBranchPersistent(
"PrimaryVertex"));
112 Int_t nEvents =
fEvents->GetEntriesFast();
113 LOG(debug) << GetName() <<
": reading time slice with " << nEvents
115 for (Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
125 LOG(info) <<
"+ " << setw(20) << GetName() <<
": Event " << setw(6) << right
126 <<
event->GetNumber() <<
", real time " << fixed
127 << setprecision(6) <<
fTimer.RealTime()
128 <<
" s, tracks used: " <<
event->GetVertex()->GetNTracks();
143 std::cout << std::endl;
144 LOG(info) <<
"=====================================";
145 LOG(info) << GetName() <<
": Run summary";
146 LOG(info) <<
"Events processed : " <<
fNofEvents;
149 LOG(info) <<
"=====================================";