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

HepMC_helper::BFieldCutter Class Reference

#include <BFieldCutter.h>

Inheritance diagram for HepMC_helper::BFieldCutter:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 BFieldCutter (bool fieldOn)
IMCselectorcreate () const
bool operator() (const Particle *const) const
bool operator() (const Particle &p) const

Private Attributes

double m_ptCut
Atlfast::ChargeService m_chargeService

Constructor & Destructor Documentation

HepMC_helper::BFieldCutter::BFieldCutter bool    fieldOn [inline]
 

Definition at line 25 of file BFieldCutter.h.

References m_chargeService, and m_ptCut.

Referenced by create().

00025                               :m_chargeService(Atlfast::ChargeService()){
00026       m_ptCut = (fieldOn)? 0.5:0.0;
00027     }

Member Function Documentation

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

Implements HepMC_helper::IMCselector.

Definition at line 252 of file HepMC_helper.cxx.

References BFieldCutter().

00252 {return new BFieldCutter(*this);}

bool HepMC_helper::BFieldCutter::operator() const Particle   const const [virtual]
 

Implements HepMC_helper::IMCselector.

Definition at line 247 of file HepMC_helper.cxx.

References m_chargeService, m_ptCut, and HepMC_helper::Particle.

Referenced by operator()().

00247                                                              {
00248     if(m_chargeService(a) == 0.) return true;
00249     return (a->momentum().perp()<m_ptCut) ? false:true;
00250   }

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

Definition at line 253 of file HepMC_helper.cxx.

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

00253                                                          {
00254     return this->operator()(&p);
00255   } 

Member Data Documentation

double HepMC_helper::BFieldCutter::m_ptCut [private]
 

Definition at line 34 of file BFieldCutter.h.

Referenced by BFieldCutter(), and operator()().

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

Definition at line 35 of file BFieldCutter.h.

Referenced by BFieldCutter(), and operator()().


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