70 if (mClsLabels ==
nullptr) {
71 LOG(info) <<
"TrivialVertexer::process() : "
72 <<
"No cluster labels available ! Running with a default MC vertex...";
73 vertices.emplace_back(std::array<Double_t, 3>{0., 0., 0.});
77 if (mTree ==
nullptr) {
78 LOG(info) <<
"TrivialVertexer::process() : "
79 <<
"No MC information available ! Running with a default MC vertex...";
80 vertices.emplace_back(std::array<Double_t, 3>{0., 0., 0.});
84 Int_t lastEventID = 0;
85 Int_t firstEventID = std::numeric_limits<Int_t>::max();
90 if (mclab.getTrackID() == -1)
92 auto id = mclab.getEventID();
93 if (
id < firstEventID)
99 for (Int_t mcEv = firstEventID; mcEv <= lastEventID; ++mcEv) {
100 mTree->GetEvent(mcEv);
101 Double_t vx = mHeader->GetX();
102 Double_t vy = mHeader->GetY();
103 Double_t vz = mHeader->GetZ();
104 vertices.emplace_back(std::array<Double_t, 3>{vx, vy, vz});
105 LOG(info) <<
"TrivialVertexer::process() : "
106 <<
"MC event #" << mcEv <<
" with vertex (" << vx <<
',' << vy <<
',' << vz <<
')';