CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenNonInteracting.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 //* IsGenNonInteracting *
10 //****************************************************************
12
13 bool IsGenNonInteracting::operator()( const Particle* const p ) const {
14 return (abs(p->pdg_id())==12 || abs(p->pdg_id())==14
15 || abs(p->pdg_id())==16 ||
16 (abs(p->pdg_id())==1000039 && p->status()%1000==1 ) ||
17 (abs(p->pdg_id())==1000022 && p->status()%1000==1 ) ) ? true:false;
18 }
19
21 return this->operator()(&p);
22 }
24
double abs(const EvtComplex &c)
Definition: EvtComplex.hh:212
HepMC::GenParticle Particle
virtual bool operator()(const Particle *const p) const
GenIMCselector * create() const