CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
BaseHiGenEvtSelector Class Reference

#include <BaseHiGenEvtSelector.h>

Inheritance diagram for BaseHiGenEvtSelector:
EcalGenEvtSelector EcalGenEvtSelectorFrag HadronDecayGenEvtSelector MultiCandGenEvtSelector PartonHadronDecayGenEvtSelector

Public Member Functions

 BaseHiGenEvtSelector (const edm::ParameterSet &)
 
virtual bool filter (HepMC::GenEvent *)
 
bool selectParticle (HepMC::GenParticle *par, int status, int pdg, double ptMin, double etaMax)
 
virtual ~BaseHiGenEvtSelector ()
 

Detailed Description

Definition at line 8 of file BaseHiGenEvtSelector.h.

Constructor & Destructor Documentation

BaseHiGenEvtSelector::BaseHiGenEvtSelector ( const edm::ParameterSet )
inline

Definition at line 10 of file BaseHiGenEvtSelector.h.

10 {;}
virtual BaseHiGenEvtSelector::~BaseHiGenEvtSelector ( )
inlinevirtual

Definition at line 11 of file BaseHiGenEvtSelector.h.

11 {;}

Member Function Documentation

virtual bool BaseHiGenEvtSelector::filter ( HepMC::GenEvent *  )
inlinevirtual
bool BaseHiGenEvtSelector::selectParticle ( HepMC::GenParticle *  par,
int  status,
int  pdg,
double  ptMin,
double  etaMax 
)
inline

Definition at line 13 of file BaseHiGenEvtSelector.h.

References funct::abs().

Referenced by MultiCandGenEvtSelector::filter(), EcalGenEvtSelector::filter(), and EcalGenEvtSelectorFrag::filter().

13  {
14  return (par->status() == status && abs(par->pdg_id()) == pdg && par->momentum().perp() > ptMin && fabs(par->momentum().eta()) < etaMax);
15  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
tuple status
Definition: ntuplemaker.py:245