BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenStable.cxx
Go to the documentation of this file.
1#include <vector>
2
4#include "HepMC/GenParticle.h"
5 using std::vector;
6 using std::abs;
7
8 //****************************************************************
9 //* IsGenStable *
10 //****************************************************************
12
13 bool IsGenStable::operator()( const Particle* const p ) const {
14 return ( ((p->status()%1000 == 1) || (p->status()%1000 == 2 && p->status() > 1000)) &&
15 (p->barcode()<100000) ) ? true:false;
16 }
17 bool IsGenStable::operator() ( const Particle& p ) const {
18 return this->operator()(&p);
19 }
20 GenIMCselector* IsGenStable::create() const {return new IsGenStable(*this);}
HepMC::GenParticle Particle
virtual bool operator()(const Particle *const p) const
Definition: IsGenStable.cxx:13
GenIMCselector * create() const
Definition: IsGenStable.cxx:20