35 #include <TRotation.h>
55 , m_clusterlist(nullptr)
71 std::cout <<
PHWHERE <<
"DST Node missing, doing nothing." << std::endl;
79 catch (std::exception &
e)
81 std::cout << e.what() << std::endl;
86 std::cout <<
"adding TRKR_CLUSTER nodes" << std::endl;
88 auto trkrclusters = findNode::getClass<TrkrClusterContainer>(dstNode,
"TRKR_CLUSTER");
96 dstNode->addNode(DetNode);
102 DetNode->
addNode(TrkrClusterContainerNode);
112 PHG4HitContainer *g4hit = findNode::getClass<PHG4HitContainer>(topNode, NodeNameHits);
115 cout <<
"Could not locate g4 hit node " << NodeNameHits << endl;
120 m_clusterlist = findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER");
123 cout <<
PHWHERE <<
" ERROR: Can't find TRKR_CLUSTER." << endl;
131 for (hiter = hit_begin_end.first; hiter != hit_begin_end.second; hiter++)
133 PHG4Hit *g4hit_i = hiter->second;
138 auto clus = std::make_unique<TrkrClusterv2>();
149 clus->setClusKey(key);
179 std::cerr <<
PHWHERE <<
"Run Node missing, doing nothing." << std::endl;
180 throw std::runtime_error(
"Failed to find Run node in RawDigitBuilderTTL::CreateNodes");
186 std::cerr <<
PHWHERE <<
"DST Node missing, doing nothing." << std::endl;
187 throw std::runtime_error(
"Failed to find DST node in RawDigitBuilderTTL::CreateNodes");
207 TrkrClusterContainer *clusterlist = findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER");
208 if (!clusterlist)
return;
210 cout <<
"================= Aftyer MvtxClusterizer::process_event() ====================" << endl;
212 cout <<
" There are " << clusterlist->
size() <<
" clusters recorded: " << endl;
216 cout <<
"===========================================================================" << endl;