CMS 3D CMS Logo

Public Member Functions

BaseHiGenEvtSelector Class Reference

#include <BaseHiGenEvtSelector.h>

Inheritance diagram for BaseHiGenEvtSelector:
EcalGenEvtSelector EcalGenEvtSelectorFrag HadronDecayGenEvtSelector MultiCandGenEvtSelector PartonHadronDecayGenEvtSelector

List of all members.

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.

{;}
virtual BaseHiGenEvtSelector::~BaseHiGenEvtSelector ( ) [inline, virtual]

Definition at line 11 of file BaseHiGenEvtSelector.h.

{;}

Member Function Documentation

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

Reimplemented in PartonHadronDecayGenEvtSelector.

Definition at line 13 of file BaseHiGenEvtSelector.h.

References abs.

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

                                                                                                 {
      return (par->status() == status && abs(par->pdg_id()) == pdg && par->momentum().perp() > ptMin && fabs(par->momentum().eta()) < etaMax);
   }