#include <MCCuts.h>
Inheritance diagram for HepMC_helper::MCCuts:
Public Member Functions | |
MCCuts (double ptMin, double etaMax) | |
IMCselector * | create () 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 |
Definition at line 16 of file MCCuts.h.
HepMC_helper::MCCuts::MCCuts | ( | double | ptMin, | |
double | etaMax | |||
) |
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 |
bool HepMC_helper::IMCselector::operator() | ( | const Particle & | p | ) | [inline, inherited] |
double HepMC_helper::MCCuts::m_ptMin [private] |
double HepMC_helper::MCCuts::m_etaMax [private] |