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

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

Private Attributes

double m_ptMin
double m_etaMax

Detailed Description

Definition at line 16 of file MCCuts.h.


Constructor & Destructor Documentation

HepMC_helper::MCCuts::MCCuts ( double  ptMin,
double  etaMax 
)

Definition at line 178 of file HepMC_helper.cxx.

00178                                            : 
00179     m_ptMin(ptMin),m_etaMax(etaMax){}


Member Function Documentation

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

Implements HepMC_helper::IMCselector.

Definition at line 189 of file HepMC_helper.cxx.

00189 {return new MCCuts(*this);}

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

Implements HepMC_helper::IMCselector.

Definition at line 180 of file HepMC_helper.cxx.

00180                                                          {
00181     if (p->momentum().perp() < m_ptMin) return false;
00182     if (abs(p->momentum().pseudoRapidity()) > m_etaMax) return false;
00183     return true;
00184   }

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

Definition at line 186 of file HepMC_helper.cxx.

00186                                                     {
00187     return this->operator()(&p);
00188   } 

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::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 Fri Sep 21 13:20:58 2007 for AtlfastUtils by  doxygen 1.5.1