2 #include "PhotosParticle.h"
3 #include "PhotosBranch.h"
4 #include "PhotosEvent.h"
10 PhotosEvent::~PhotosEvent()
32 vector<PhotosParticle*> filtered;
33 for (
int i = 0; i < (int)particles.size(); i++) {
41 vector<PhotosParticle*> daughters = p->getDaughters();
43 for (j = 0; j < (int)daughters.size(); j++)
44 if (daughters.at(j)->getPdgID() == p->getPdgID())
break;
45 if (j != (
int)daughters.size())
continue;
47 Log::Debug(2) <<
"Passed particle filter" << endl;
48 filtered.push_back(p);
static ostream & Debug(unsigned short int code=0, bool count=true)
Four logging entries.
static vector< PhotosBranch * > createBranches(vector< PhotosParticle * > particles)
Create branches from particles list.
void process()
Process event.
virtual vector< PhotosParticle * > getParticleList()=0
Get an unfiltered list of particles from the event record.
vector< PhotosParticle * > filterParticles(vector< PhotosParticle * > particles)
Filter suppressed and invalid particles.
vector< PhotosBranch * > m_branch_points
branch points which should be given to PHOTOS
static const int STABLE
Stable particle status.