18 #include <Math/Vector3D.h>
31 using namespace findNode;
35 namespace SColdQcdCorrelatorAnalysis {
36 namespace SCorrelatorUtilities {
43 GlobalVertexMap* mapVtx = getClass<GlobalVertexMap>(topNode,
"GlobalVertexMap");
46 const bool isVtxMapGood = (mapVtx && !(mapVtx -> empty()));
49 <<
"PANIC: GlobalVertexMap node is missing or empty!\n"
50 <<
" Please turn on the do_global flag in the main macro in order to reconstruct the global vertex!"
67 if (iVtxToGrab.has_value()) {
68 vtx = mapVtx ->
get(iVtxToGrab.value());
70 vtx = mapVtx ->
begin() -> second;
76 <<
"PANIC: no vertex!"
89 return ROOT::Math::XYZVector(vtx -> get_x(), vtx -> get_y(), vtx -> get_z());