BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenerator.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//* IsGenerator *
10//****************************************************************
12
13bool IsGenerator::operator()( const Particle* const p ) const {
14 return ( p->barcode() < 100000 &&
15 ( p->status() < 200 || p->status() % 1000 == 1 || p->status() % 1000 == 2 ) )
16 ? true
17 : false;
18 // conforms to PDG standard and accomodates the generated partilces that are copied to kine
19}
20
21bool IsGenerator::operator()( const Particle& p ) const { return this->operator()( &p ); }
22GenIMCselector* IsGenerator::create() const { return new IsGenerator( *this ); }
HepMC::GenParticle Particle
virtual bool operator()(const Particle *const p) const
virtual bool operator()(const Particle &p) const
GenIMCselector * create() const