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

Detailed Description

Definition at line 16 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 23 of file IsGenerator.cxx.

23{return new IsGenerator(*this);}

◆ operator()() [1/2]

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

Definition at line 20 of file IsGenerator.cxx.

20 {
21 return this->operator()(&p);
22 }
virtual bool operator()(const Particle *const p) const
Definition: IsGenerator.cxx:13

◆ 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 && ( p->status()<200 ||
15 p->status()%1000 == 1 ||
16 p->status()%1000 == 2 ) ) ? true:false;
17 // conforms to PDG standard and accomodates the generated partilces that are copied to kine
18 }

Referenced by operator()().


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