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