Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

HepMC_helper::IsCharged Class Reference

#include <IsCharged.h>

Inheritance diagram for HepMC_helper::IsCharged:

Inheritance graph
[legend]
Collaboration diagram for HepMC_helper::IsCharged:

Collaboration graph
[legend]
List of all members.

Public Methods

 IsCharged ()
IMCselectorcreate () const
bool operator() (const Particle *const p) const
bool operator() (const Particle &p) const

Private Attributes

Atlfast::ChargeService m_chargeService

Constructor & Destructor Documentation

HepMC_helper::IsCharged::IsCharged   [inline]
 

Definition at line 21 of file IsCharged.h.

Referenced by create().

00021 {}

Member Function Documentation

IMCselector * HepMC_helper::IsCharged::create   const [virtual]
 

Implements HepMC_helper::IMCselector.

Definition at line 108 of file HepMC_helper.cxx.

References IsCharged().

00108 {return new IsCharged(*this);}

bool HepMC_helper::IsCharged::operator() const Particle *const    p const [virtual]
 

Implements HepMC_helper::IMCselector.

Definition at line 98 of file HepMC_helper.cxx.

References HepMC_helper::Particle.

Referenced by operator()().

00098                                                            {
00099     
00100     double charge = m_chargeService(p);
00101     if(charge==0) return false;
00102     return true ;       
00103   }

bool HepMC_helper::IsCharged::operator() const Particle   p const
 

Definition at line 105 of file HepMC_helper.cxx.

References operator()(), and HepMC_helper::Particle.

00105                                                        {
00106     return this->operator()(&p);
00107   } 

Member Data Documentation

Atlfast::ChargeService HepMC_helper::IsCharged::m_chargeService [private]
 

Definition at line 26 of file IsCharged.h.


The documentation for this class was generated from the following files:
Generated on Wed Jan 15 11:00:35 2003 for AtlfastUtils by doxygen1.3-rc1