#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, bool notConvertedOnly, 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, |
|
|
bool |
notConvertedOnly, |
|
|
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.
47 <<
"CaloParticleSelector: minPhi (" <<
minPhi <<
") must be smaller than maxPhi (" <<
maxPhi
48 <<
"). The range is constructed from minPhi to maxPhi around their average.";
52 <<
"CaloParticleSelector: minPhi (" <<
minPhi
53 <<
") must be smaller than PI. The range is constructed from minPhi to maxPhi around their average.";
57 <<
"CaloParticleSelector: maxPhi (" <<
maxPhi
58 <<
") 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 64 of file CaloParticleSelector.h.
66 if (
signalOnly_ && !(
cp.eventId().bunchCrossing() == 0 &&
cp.eventId().event() == 0))
94 if (
j->get() ==
nullptr ||
j->get()->status() != 1) {
100 std::vector<int>
pdgids{11, 13, 211, 321, 2212, 3112, 3222, 3312, 3334};
120 float eta = etaFromXYZ(
p.px(),
p.py(),
p.pz());
128 double pt2 =
cp.p4().perp2();
132 return (ptOk(
cp) && etaOk(
cp) && phiOk(
cp));
References funct::abs(), chargedOnly_, SiPixelRawToDigiRegional_cfi::deltaPhi, PVValHelper::eta, intimeOnly_, dqmiolumiharvest::j, maxRapidity_, maxSimClusters_, meanPhi_, minRapidity_, notConvertedOnly_, 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 |
◆ notConvertedOnly_
bool CaloParticleSelector::notConvertedOnly_ |
|
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_