BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenNonInteracting Class Reference

#include <IsGenNonInteracting.h>

Inheritance diagram for IsGenNonInteracting:

Public Member Functions

 IsGenNonInteracting ()
GenIMCselectorcreate () const
virtual bool operator() (const Particle *const p) const
virtual bool operator() (const Particle &p) const
Public Member Functions inherited from GenIMCselector
bool operator() (const Particle &p)
virtual ~GenIMCselector ()

Detailed Description

Definition at line 18 of file IsGenNonInteracting.h.

Constructor & Destructor Documentation

◆ IsGenNonInteracting()

IsGenNonInteracting::IsGenNonInteracting ( )

Definition at line 11 of file IsGenNonInteracting.cxx.

11{}

Referenced by create().

Member Function Documentation

◆ create()

GenIMCselector * IsGenNonInteracting::create ( ) const
virtual

Implements GenIMCselector.

Definition at line 24 of file IsGenNonInteracting.cxx.

24 {
25 return new IsGenNonInteracting( *this );
26}

◆ operator()() [1/2]

bool IsGenNonInteracting::operator() ( const Particle & p) const
virtual

Definition at line 21 of file IsGenNonInteracting.cxx.

21 {
22 return this->operator()( &p );
23}
virtual bool operator()(const Particle *const p) const

◆ operator()() [2/2]

bool IsGenNonInteracting::operator() ( const Particle *const p) const
virtual

Implements GenIMCselector.

Definition at line 13 of file IsGenNonInteracting.cxx.

13 {
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}

Referenced by operator()().


The documentation for this class was generated from the following files: