10 #include "FairLogger.h"
11 #include "FairRootManager.h"
13 #include "TClonesArray.h"
29 fName =
"FindPrimaryVertex";
43 fName =
"FindPrimaryVertex";
72 cout <<
"-E- CbmFindPrimaryVertex::Init : "
73 <<
"No vertex finder selected! " << endl;
78 FairRootManager* ioman = FairRootManager::Instance();
80 cout <<
"-E- CbmFindPrimaryVertex::Init: "
81 <<
"RootManager not instantised!" << endl;
86 fTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
88 cout <<
"-W- CbmFindPrimaryVertex::Init: No STSTrack array!" << endl;
94 ioman->Register(
"PrimaryVertex.",
97 IsOutputBranchPersistent(
"PrimaryVertex"));
121 cout <<
"-W- CbmFindPrimaryVertex::Exec: "
122 <<
"Vertex finder returned " << iFind << endl;
128 LOG(info) <<
"+ " << setw(20) << GetName() <<
": Event " << setw(6) << right
129 << iEvent <<
", real time " << fixed << setprecision(6)
140 std::cout << std::endl;
141 LOG(info) <<
"=====================================";
142 LOG(info) << GetName() <<
": Run summary";
143 LOG(info) <<
"Events processed : " <<
fNofEvents;
144 LOG(info) <<
"Time per event : " << setprecision(6)
146 LOG(info) <<
"=====================================";