32 , m_EventAction(nullptr)
33 , m_TrackingAction(nullptr)
34 , m_SaveOnlyEmbededFlag(
false)
45 PHG4TruthInfoContainer* truthInfoList = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
72 cout <<
PHWHERE <<
" No EventAction registered" << endl;
82 cout <<
PHWHERE <<
" No TrackingAction registered" << endl;
95 cout << __PRETTY_FUNCTION__ <<
" - INFO - only save the G4 truth information that is associated with the embedded particle" << endl;
98 PHG4TruthInfoContainer* truthInfoList = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
101 set<int> savevtxlist;
106 while (truthiter != truth_range.second)
108 const int primary_id = (truthiter->second)->get_primary_id();
109 if (truthInfoList->
isEmbeded(primary_id) <= 0)
119 savevtxlist.insert((truthiter->second)->get_vtx_id());
127 while (vtxiter != vtxrange.second)
129 if (savevtxlist.find(vtxiter->first) == savevtxlist.end())