2 #include "PhotosParticle.h"
3 #include "PhotosBranch.h"
4 #include "PhotosEvent.h"
11 PhotosEvent::~PhotosEvent()
13 while(m_branch_points.size()!=0)
16 m_branch_points.pop_back();
24 vector<PhotosParticle*> particles = filterParticles(
getParticleList() );
27 for(
int i=0;i<(int)m_branch_points.size();i++)
28 m_branch_points.at(i)->process();
32 vector<PhotosParticle *> PhotosEvent::filterParticles(vector<PhotosParticle *> particles)
34 vector<PhotosParticle *> filtered;
35 for(
int i=0;i<(int)particles.size();i++)
46 for(j=0;j<(int)daughters.size();j++)
47 if(daughters.at(j)->getPdgID()==p->
getPdgID())
break;
48 if(j!=(
int)daughters.size())
continue;
51 filtered.push_back(p);
static vector< PhotosBranch * > createBranches(vector< PhotosParticle * > particles)
static ostream & Debug(unsigned short int code=0, bool count=true)
virtual int getStatus()=0
virtual vector< PhotosParticle * > getParticleList()=0
virtual std::vector< PhotosParticle * > getDaughters()=0