#include <CaloParticleSelector.h>
|
| CaloParticleSelector () |
|
| CaloParticleSelector (double ptMin, double ptMax, double minRapidity, double maxRapidity, double lip, double tip, int minHit, unsigned int maxSimClusters, bool signalOnly, bool intimeOnly, bool chargedOnly, bool stableOnly, const std::vector< int > &pdgId=std::vector< int >(), double minPhi=-3.2, double maxPhi=3.2) |
|
bool | operator() (const CaloParticle &cp, std::vector< SimVertex > const &simVertices) const |
|
Definition at line 10 of file CaloParticleSelector.h.
◆ CaloParticleSelector() [1/2]
CaloParticleSelector::CaloParticleSelector |
( |
| ) |
|
|
inline |
◆ CaloParticleSelector() [2/2]
CaloParticleSelector::CaloParticleSelector |
( |
double |
ptMin, |
|
|
double |
ptMax, |
|
|
double |
minRapidity, |
|
|
double |
maxRapidity, |
|
|
double |
lip, |
|
|
double |
tip, |
|
|
int |
minHit, |
|
|
unsigned int |
maxSimClusters, |
|
|
bool |
signalOnly, |
|
|
bool |
intimeOnly, |
|
|
bool |
chargedOnly, |
|
|
bool |
stableOnly, |
|
|
const std::vector< int > & |
pdgId = std::vector<int>() , |
|
|
double |
minPhi = -3.2 , |
|
|
double |
maxPhi = 3.2 |
|
) |
| |
|
inline |
Definition at line 13 of file CaloParticleSelector.h.
45 <<
"CaloParticleSelector: minPhi (" <<
minPhi <<
") must be smaller than maxPhi (" <<
maxPhi
46 <<
"). The range is constructed from minPhi to maxPhi around their average.";
50 <<
"CaloParticleSelector: minPhi (" <<
minPhi
51 <<
") must be smaller than PI. The range is constructed from minPhi to maxPhi around their average.";
55 <<
"CaloParticleSelector: maxPhi (" <<
maxPhi
56 <<
") must be larger than -PI. The range is constructed from minPhi to maxPhi around their average.";
References Exception, M_PI, HLT_FULL_cff::maxPhi, and HLT_FULL_cff::minPhi.
◆ operator()()
bool CaloParticleSelector::operator() |
( |
const CaloParticle & |
cp, |
|
|
std::vector< SimVertex > const & |
simVertices |
|
) |
| const |
|
inline |
Definition at line 62 of file CaloParticleSelector.h.
64 if (
signalOnly_ && !(
cp.eventId().bunchCrossing() == 0 &&
cp.eventId().event() == 0))
92 if (
j->get() ==
nullptr ||
j->get()->status() != 1) {
98 std::vector<int>
pdgids{11, 13, 211, 321, 2212, 3112, 3222, 3312, 3334};
105 float eta = etaFromXYZ(
p.px(),
p.py(),
p.pz());
113 double pt2 =
cp.p4().perp2();
117 return (ptOk(
cp) && etaOk(
cp) && phiOk(
cp));
References funct::abs(), chargedOnly_, CommonMethods::cp(), SiPixelRawToDigiRegional_cfi::deltaPhi, PVValHelper::eta, intimeOnly_, dqmiolumiharvest::j, maxRapidity_, maxSimClusters_, meanPhi_, minRapidity_, AlCaHLTBitMon_ParallelJobs::p, EgammaValidation_cff::pdgid, pdgId_, ntuple::pdgids, HLT_FULL_cff::pt2, ptMax2_, ptMin2_, rangePhi_, signalOnly_, and stableOnly_.
◆ chargedOnly_
bool CaloParticleSelector::chargedOnly_ |
|
private |
◆ intimeOnly_
bool CaloParticleSelector::intimeOnly_ |
|
private |
◆ lip_
double CaloParticleSelector::lip_ |
|
private |
◆ maxRapidity_
float CaloParticleSelector::maxRapidity_ |
|
private |
◆ maxSimClusters_
unsigned int CaloParticleSelector::maxSimClusters_ |
|
private |
◆ meanPhi_
float CaloParticleSelector::meanPhi_ |
|
private |
◆ minHit_
int CaloParticleSelector::minHit_ |
|
private |
◆ minRapidity_
float CaloParticleSelector::minRapidity_ |
|
private |
◆ pdgId_
std::vector<int> CaloParticleSelector::pdgId_ |
|
private |
◆ ptMax2_
double CaloParticleSelector::ptMax2_ |
|
private |
◆ ptMin2_
double CaloParticleSelector::ptMin2_ |
|
private |
◆ rangePhi_
float CaloParticleSelector::rangePhi_ |
|
private |
◆ signalOnly_
bool CaloParticleSelector::signalOnly_ |
|
private |
◆ stableOnly_
bool CaloParticleSelector::stableOnly_ |
|
private |
◆ tip2_
double CaloParticleSelector::tip2_ |
|
private |
unsigned int maxSimClusters_
std::vector< int > pdgId_