31 particlearray(nullptr)
45 dstNode->
addNode(PHObjectIONode);
49 dstNode->
addNode(PHObjectIONode);
57 PHG4InEvent *inEvent = findNode::getClass<PHG4InEvent>(topNode,
"PHG4INEVENT");
60 cout <<
"no PHG4INEVENT node found" << endl;
64 map<int, PHG4VtxPoint *>::const_iterator vtxiter;
65 std::pair< std::map<int, PHG4VtxPoint *>::const_iterator, std::map<int, PHG4VtxPoint *>::const_iterator > vtxbegin_end = inEvent->
GetVertices();
66 vector<short> svtxvec;
67 for (vtxiter = vtxbegin_end.first; vtxiter != vtxbegin_end.second; ++vtxiter)
69 if ((*vtxiter).first > 0xFFFF)
71 cout <<
"id of vertex " << (*vtxiter).first <<
" exceeds max val of " << 0xFFFF << endl;
74 svtxvec.push_back((*vtxiter).first);
82 pair<multimap<int, PHG4Particle *>::const_iterator, multimap<int, PHG4Particle *>::const_iterator > particlebegin_end = inEvent->
GetParticles();
83 multimap<int,PHG4Particle *>::const_iterator particle_iter;
84 vector<short> spartvec;
85 for (particle_iter = particlebegin_end.first; particle_iter != particlebegin_end.second; ++particle_iter)
87 if ((*particle_iter).first > 0xFFFF)
89 cout <<
"id of vertex " << (*particle_iter).first <<
" exceeds max val of " << 0xFFFF << endl;
92 spartvec.push_back((*particle_iter).first);
93 if (
abs((*particle_iter->second).get_pid()) > 0xFFFF)
95 cout <<
"pdg code of particle " << (*particle_iter->second).get_pid() <<
" exceeds max val of " << 0xFFFF << endl;
98 spartvec.push_back((*particle_iter->second).get_pid());