BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenInteracting Class Reference

#include <IsGenInteracting.h>

+ Inheritance diagram for IsGenInteracting:

Public Member Functions

 IsGenInteracting ()
 
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 19 of file IsGenInteracting.h.

Constructor & Destructor Documentation

◆ IsGenInteracting()

IsGenInteracting::IsGenInteracting ( )

Definition at line 11 of file IsGenInteracting.cxx.

11{}

Referenced by create().

Member Function Documentation

◆ create()

GenIMCselector * IsGenInteracting::create ( ) const
virtual

Implements GenIMCselector.

Definition at line 26 of file IsGenInteracting.cxx.

26{return new IsGenInteracting(*this);}

◆ operator()() [1/2]

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

Definition at line 23 of file IsGenInteracting.cxx.

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

◆ operator()() [2/2]

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

Implements GenIMCselector.

Definition at line 13 of file IsGenInteracting.cxx.

13 {
14 return ( (((p->status()%1000 == 1) ||
15 (p->status()%1000 == 2 && p->status() > 1000)) &&
16 (p->barcode()<100000)) &&
17 !(abs(p->pdg_id())==12 || abs(p->pdg_id())==14
18 || abs(p->pdg_id())==16 ||
19 (abs(p->pdg_id())==1000039 && p->status()%1000==1 ) ||
20 (abs(p->pdg_id())==1000022 && p->status()%1000==1 )) ) ? true:false;
21 }

Referenced by operator()().


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