#include <BFieldCutter.h>
Inheritance diagram for HepMC_helper::BFieldCutter:
Public Member Functions | |
BFieldCutter (bool fieldOn) | |
IMCselector * | create () const |
bool | operator() (const Particle *const) const |
bool | operator() (const Particle &p) const |
bool | operator() (const Particle &p) |
Private Attributes | |
double | m_ptCut |
Atlfast::ChargeService * | m_chargeService |
Definition at line 27 of file BFieldCutter.h.
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 }
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 |
bool HepMC_helper::IMCselector::operator() | ( | const Particle & | p | ) | [inline, inherited] |
double HepMC_helper::BFieldCutter::m_ptCut [private] |
Definition at line 46 of file BFieldCutter.h.
Definition at line 47 of file BFieldCutter.h.