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