BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenNonInteracting.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//* IsGenNonInteracting *
10//****************************************************************
12
13bool IsGenNonInteracting::operator()( const Particle* const p ) const {
14 return ( abs( p->pdg_id() ) == 12 || abs( p->pdg_id() ) == 14 || abs( p->pdg_id() ) == 16 ||
15 ( abs( p->pdg_id() ) == 1000039 && p->status() % 1000 == 1 ) ||
16 ( abs( p->pdg_id() ) == 1000022 && p->status() % 1000 == 1 ) )
17 ? true
18 : false;
19}
20
22 return this->operator()( &p );
23}
25 return new IsGenNonInteracting( *this );
26}
HepMC::GenParticle Particle
virtual bool operator()(const Particle *const p) const
GenIMCselector * create() const