#include <GenParticleCustomSelector.h>
|
| GenParticleCustomSelector () |
|
| GenParticleCustomSelector (double ptMin, double minRapidity, double maxRapidity, double tip, double lip, bool chargedOnly, int status, const std::vector< int > &pdgId=std::vector< int >(), bool invertRapidityCut=false, double minPhi=-3.2, double maxPhi=3.2) |
|
bool | operator() (const reco::GenParticle &tp) const |
| Operator() performs the selection: e.g. if (tPSelector(tp)) {...}. More...
|
|
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>() , |
|
|
bool |
invertRapidityCut = false , |
|
|
double |
minPhi = -3.2 , |
|
|
double |
maxPhi = 3.2 |
|
) |
| |
|
inline |
Definition at line 14 of file GenParticleCustomSelector.h.
References Exception, M_PI, HLT_FULL_cff::maxPhi, and HLT_FULL_cff::minPhi.
38 <<
"GenParticleCustomSelector: minPhi (" <<
minPhi <<
") must be smaller than maxPhi (" <<
maxPhi
39 <<
"). The range is constructed from minPhi to maxPhi around their "
44 <<
") must be smaller than PI. The range is constructed from minPhi "
45 "to maxPhi around their average.";
49 <<
") must be larger than -PI. The range is constructed from minPhi "
50 "to maxPhi around their average.";
std::vector< int > pdgId_
Operator() performs the selection: e.g. if (tPSelector(tp)) {...}.
Definition at line 55 of file GenParticleCustomSelector.h.
References reco::LeafCandidate::charge(), chargedOnly_, srCondWrite_cfg::deltaPhi, PVValHelper::eta, invertRapidityCut_, lip_, maxRapidity_, meanPhi_, minRapidity_, AlCaHLTBitMon_ParallelJobs::p, reco::LeafCandidate::pdgId(), pdgId_, DiDispStaMuonMonitor_cfi::pt, ptMin_, rangePhi_, mathSSE::sqrt(), reco::LeafCandidate::status(), status_, tip_, and reco::LeafCandidate::vertex().
59 unsigned int idSize =
pdgId_.size();
63 for (
unsigned int it = 0; it != idSize; ++it) {
int status() const final
status word
const Point & vertex() const override
vertex position (overwritten by PF...)
int pdgId() const final
PDG identifier.
std::vector< int > pdgId_
int charge() const final
electric charge
bool GenParticleCustomSelector::chargedOnly_ |
|
private |
bool GenParticleCustomSelector::invertRapidityCut_ |
|
private |
double GenParticleCustomSelector::lip_ |
|
private |
double GenParticleCustomSelector::maxRapidity_ |
|
private |
float GenParticleCustomSelector::meanPhi_ |
|
private |
double GenParticleCustomSelector::minRapidity_ |
|
private |
std::vector<int> GenParticleCustomSelector::pdgId_ |
|
private |
double GenParticleCustomSelector::ptMin_ |
|
private |
float GenParticleCustomSelector::rangePhi_ |
|
private |
int GenParticleCustomSelector::status_ |
|
private |
double GenParticleCustomSelector::tip_ |
|
private |