CMS 3D CMS Logo

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::BaseHiGenEvtSelector ( const edm::ParameterSet )
inline

Definition at line 10 of file BaseHiGenEvtSelector.h.

10 { ; }

◆ ~BaseHiGenEvtSelector()

virtual BaseHiGenEvtSelector::~BaseHiGenEvtSelector ( )
inlinevirtual

Definition at line 11 of file BaseHiGenEvtSelector.h.

11 { ; }

Member Function Documentation

◆ filter()

virtual bool BaseHiGenEvtSelector::filter ( HepMC::GenEvent )
inlinevirtual

◆ selectParticle()

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(), ALCARECOTkAlBeamHalo_cff::etaMax, ptMin, and mps_update::status.

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

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