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