BOSS 7.0.2
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
virtual GenIMCselectorcreate () const =0
 
virtual bool operator() (const Particle *const) const =0
 
bool operator() (const Particle &p)
 
virtual ~GenIMCselector ()
 

Detailed Description

Definition at line 18 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 20 of file IsGenStable.cxx.

20{return new IsGenStable(*this);}

◆ operator()() [1/2]

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

Definition at line 17 of file IsGenStable.cxx.

17 {
18 return this->operator()(&p);
19 }
virtual bool operator()(const Particle *const p) const
Definition: IsGenStable.cxx:13

◆ 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) || (p->status()%1000 == 2 && p->status() > 1000)) &&
15 (p->barcode()<100000) ) ? true:false;
16 }

Referenced by operator()().


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