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 Member Functions

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

Private Attributes

double m_ptCut
Atlfast::ChargeServicem_chargeService

Detailed Description

Definition at line 27 of file BFieldCutter.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file BFieldCutter.h.

00030                               {
00031       try{
00032         m_chargeService = new Atlfast::ChargeService();
00033       }catch(std::string errMsg){
00034         throw errMsg;
00035       }catch(...){
00036         throw;
00037       }
00038       m_ptCut = (fieldOn)? 0.5*GeV:0.0*GeV;
00039     }


Member Function Documentation

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

Implements HepMC_helper::IMCselector.

Definition at line 406 of file HepMC_helper.cxx.

00406 {return new BFieldCutter(*this);}

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

Implements HepMC_helper::IMCselector.

Definition at line 401 of file HepMC_helper.cxx.

00401                                                              {
00402     if(m_chargeService->operator()(a) == 0.) return true;
00403     return (a->momentum().perp()<m_ptCut) ? false:true;
00404   }

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

Definition at line 407 of file HepMC_helper.cxx.

00407                                                          {
00408     return this->operator()(&p);
00409   } 

bool HepMC_helper::IMCselector::operator() ( const Particle p  )  [inline, inherited]

Definition at line 27 of file IMCselector.h.

00027 {return this->operator()(&p);} 


Member Data Documentation

double HepMC_helper::BFieldCutter::m_ptCut [private]

Definition at line 46 of file BFieldCutter.h.

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

Definition at line 47 of file BFieldCutter.h.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 13:20:57 2007 for AtlfastUtils by  doxygen 1.5.1