#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() [1/2]
GenParticleCustomSelector::GenParticleCustomSelector |
( |
| ) |
|
|
inline |
◆ GenParticleCustomSelector() [2/2]
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.
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.";
References Exception, M_PI, HLT_FULL_cff::maxPhi, and HLT_FULL_cff::minPhi.
◆ operator()()
Operator() performs the selection: e.g. if (tPSelector(tp)) {...}.
Definition at line 55 of file GenParticleCustomSelector.h.
59 unsigned int idSize =
pdgId_.size();
63 for (
unsigned int it = 0; it != idSize; ++it) {
84 return (ptOk(
tp) && etaOk(
tp) && phiOk(
tp) &&
sqrt(
tp.vertex().perp2()) <=
tip_ && fabs(
tp.vertex().z()) <=
lip_ &&
References chargedOnly_, SiPixelRawToDigiRegional_cfi::deltaPhi, PVValHelper::eta, invertRapidityCut_, lip_, maxRapidity_, meanPhi_, minRapidity_, AlCaHLTBitMon_ParallelJobs::p, pdgId_, DiDispStaMuonMonitor_cfi::pt, ptMin_, rangePhi_, mathSSE::sqrt(), status_, tip_, and cmsswSequenceInfo::tp.
◆ chargedOnly_
bool GenParticleCustomSelector::chargedOnly_ |
|
private |
◆ invertRapidityCut_
bool GenParticleCustomSelector::invertRapidityCut_ |
|
private |
◆ lip_
double GenParticleCustomSelector::lip_ |
|
private |
◆ maxRapidity_
double GenParticleCustomSelector::maxRapidity_ |
|
private |
◆ meanPhi_
float GenParticleCustomSelector::meanPhi_ |
|
private |
◆ minRapidity_
double GenParticleCustomSelector::minRapidity_ |
|
private |
◆ pdgId_
std::vector<int> GenParticleCustomSelector::pdgId_ |
|
private |
◆ ptMin_
double GenParticleCustomSelector::ptMin_ |
|
private |
◆ rangePhi_
float GenParticleCustomSelector::rangePhi_ |
|
private |
◆ status_
int GenParticleCustomSelector::status_ |
|
private |
◆ tip_
double GenParticleCustomSelector::tip_ |
|
private |
std::vector< int > pdgId_