#include <GenParticleCustomSelector.h>
Definition at line 11 of file GenParticleCustomSelector.h.
GenParticleCustomSelector::GenParticleCustomSelector |
( |
| ) |
|
|
inline |
GenParticleCustomSelector::GenParticleCustomSelector |
( |
double |
ptMin, |
|
|
double |
minRapidity, |
|
|
double |
maxRapidity, |
|
|
double |
tip, |
|
|
double |
lip, |
|
|
bool |
chargedOnly, |
|
|
int |
status, |
|
|
const std::vector< int > & |
pdgId = std::vector<int>() |
|
) |
| |
|
inline |
Operator() performs the selection: e.g. if (tPSelector(tp)) {...}.
Definition at line 22 of file GenParticleCustomSelector.h.
References reco::LeafCandidate::charge(), chargedOnly_, reco::LeafCandidate::eta(), lip_, maxRapidity_, minRapidity_, reco::LeafCandidate::pdgId(), pdgId_, reco::LeafCandidate::pt(), ptMin_, mathSSE::sqrt(), reco::LeafCandidate::status(), status_, tip_, and reco::LeafCandidate::vertex().
26 unsigned int idSize =
pdgId_.size();
27 if (idSize==0) testId =
true;
28 else for (
unsigned int it=0;it!=idSize;++it){
virtual int pdgId() const
PDG identifier.
virtual float pt() const
transverse momentum
virtual const Point & vertex() const
vertex position (overwritten by PF...)
virtual int status() const
status word
std::vector< int > pdgId_
virtual float eta() const
momentum pseudorapidity
virtual int charge() const
electric charge
bool GenParticleCustomSelector::chargedOnly_ |
|
private |
double GenParticleCustomSelector::lip_ |
|
private |
double GenParticleCustomSelector::maxRapidity_ |
|
private |
double GenParticleCustomSelector::minRapidity_ |
|
private |
std::vector<int> GenParticleCustomSelector::pdgId_ |
|
private |
double GenParticleCustomSelector::ptMin_ |
|
private |
int GenParticleCustomSelector::status_ |
|
private |
double GenParticleCustomSelector::tip_ |
|
private |