5 : debug_(
cfg.getUntrackedParameter<
bool>(
"debug",
false)) {
7 if (pfCandTypeString ==
"chargedHadron")
9 else if (pfCandTypeString ==
"electron")
11 else if (pfCandTypeString ==
"muon")
13 else if (pfCandTypeString ==
"neutralHadron")
15 else if (pfCandTypeString ==
"photon")
19 <<
"Invalid Configuration parameter 'pfCandType' = '" << pfCandTypeString <<
"' !!\n";
22 if (dzCutString ==
"disabled")
24 else if (dzCutString ==
"enabled_primary")
26 else if (dzCutString ==
"enabled_pileup")
30 <<
"Invalid Configuration parameter 'dzCut' = '" << dzCutString <<
"' !!\n";
32 minPt_ =
cfg.getParameter<
double>(
"minPt");
33 maxDz_ = (
cfg.exists(
"maxDz")) ?
cfg.getParameter<
double>(
"maxDz") : 1.e+3;
42 if (pfCand.
charge() != 0) {
45 double dz =
std::abs(pfCand_track->vertex().z() - primaryVertex_z);
92 float_t primaryVertex_z) {
94 if (!qualityCut(pfCand, primaryVertex_z))
l1t::PFCandidate::ParticleType pfCandType_
double pt() const final
transverse momentum
l1t::PFCandidate::ParticleType pfCandType() const
accessor functions
void addParameter(std::string const &name, T const &value)
Abs< T >::type abs(const T &t)
void addUntrackedParameter(std::string const &name, T const &value)
std::vector< L1HPSPFTauQualityCut > readL1PFTauQualityCuts(const edm::ParameterSet &cfg, const std::string &dzCut, bool debug)
const PFTrackRef & pfTrack() const
L1HPSPFTauQualityCut(const edm::ParameterSet &cfg)
constructor
L1HPSPFTauQualityCut readL1PFTauQualityCut(const edm::ParameterSet &cfg, const std::string &pfCandType, const std::string &dzCut, bool debug)
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertex_z)
int charge() const final
electric charge
bool operator()(const l1t::PFCandidate &pfCand, float_t primaryVertexZ) const
returns true (false) if PFCandidate passes (fails) quality cuts