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

HepMC_helper::MCCuts Class Reference

#include <MCCuts.h>

Inheritance diagram for HepMC_helper::MCCuts:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 MCCuts (double ptMin, double etaMax)
IMCselectorcreate () const
bool operator() (const Particle *const p) const
bool operator() (const Particle &p) const

Private Attributes

double m_ptMin
double m_etaMax

Constructor & Destructor Documentation

HepMC_helper::MCCuts::MCCuts double    ptMin,
double    etaMax
 

Definition at line 113 of file HepMC_helper.cxx.

Referenced by create().

00113                                            : 
00114     m_ptMin(ptMin),m_etaMax(etaMax){}

Member Function Documentation

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

Implements HepMC_helper::IMCselector.

Definition at line 124 of file HepMC_helper.cxx.

References MCCuts().

00124 {return new MCCuts(*this);}

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

Implements HepMC_helper::IMCselector.

Definition at line 115 of file HepMC_helper.cxx.

References HepMC_helper::Particle.

Referenced by operator()().

00115                                                          {
00116     if (p->momentum().perp() < m_ptMin) return false;
00117     if (abs(p->momentum().pseudoRapidity()) > m_etaMax) return false;
00118     return true;
00119   }

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

Definition at line 121 of file HepMC_helper.cxx.

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

00121                                                     {
00122     return this->operator()(&p);
00123   } 

Member Data Documentation

double HepMC_helper::MCCuts::m_ptMin [private]
 

Definition at line 24 of file MCCuts.h.

double HepMC_helper::MCCuts::m_etaMax [private]
 

Definition at line 25 of file MCCuts.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