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

#include <IsGenStable.h>

Inheritance diagram for IsGenStable:

Public Member Functions

 IsGenStable ()
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 17 of file IsGenStable.h.

Constructor & Destructor Documentation

◆ IsGenStable()

IsGenStable::IsGenStable ( )

Definition at line 11 of file IsGenStable.cxx.

11{}

Referenced by create().

Member Function Documentation

◆ create()

GenIMCselector * IsGenStable::create ( ) const
virtual

Implements GenIMCselector.

Definition at line 21 of file IsGenStable.cxx.

21{ return new IsGenStable( *this ); }

◆ operator()() [1/2]

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

Definition at line 20 of file IsGenStable.cxx.

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

◆ operator()() [2/2]

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

Implements GenIMCselector.

Definition at line 13 of file IsGenStable.cxx.

13 {
14 return ( ( ( p->status() % 1000 == 1 ) ||
15 ( p->status() % 1000 == 2 && p->status() > 1000 ) ) &&
16 ( p->barcode() < 100000 ) )
17 ? true
18 : false;
19}

Referenced by operator()().


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