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

#include <IsGenerator.h>

Inheritance diagram for IsGenerator:

Public Member Functions

 IsGenerator ()
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 15 of file IsGenerator.h.

Constructor & Destructor Documentation

◆ IsGenerator()

IsGenerator::IsGenerator ( )

Definition at line 11 of file IsGenerator.cxx.

11{}

Referenced by create().

Member Function Documentation

◆ create()

GenIMCselector * IsGenerator::create ( ) const
virtual

Implements GenIMCselector.

Definition at line 22 of file IsGenerator.cxx.

22{ return new IsGenerator( *this ); }

◆ operator()() [1/2]

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

Definition at line 21 of file IsGenerator.cxx.

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

Referenced by operator()().

◆ operator()() [2/2]

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

Implements GenIMCselector.

Definition at line 13 of file IsGenerator.cxx.

13 {
14 return ( p->barcode() < 100000 &&
15 ( p->status() < 200 || p->status() % 1000 == 1 || p->status() % 1000 == 2 ) )
16 ? true
17 : false;
18 // conforms to PDG standard and accomodates the generated partilces that are copied to kine
19}

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