Go to the documentation of this file.
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::fabs(pfCand_track->vertex().z() - primaryVertex_z);
92 float_t primaryVertex_z) {
94 if (!qualityCut(pfCand, primaryVertex_z))
const PFTrackRef & pfTrack() const
bool operator()(const l1t::PFCandidate &pfCand, float_t primaryVertexZ) const
returns true (false) if PFCandidate passes (fails) quality cuts
std::vector< L1HPSPFTauQualityCut > readL1PFTauQualityCuts(const edm::ParameterSet &cfg, const std::string &dzCut, bool debug)
double pt() const final
transverse momentum
l1t::PFCandidate::ParticleType pfCandType() const
accessor functions
void addUntrackedParameter(std::string const &name, T const &value)
L1HPSPFTauQualityCut(const edm::ParameterSet &cfg)
constructor
L1HPSPFTauQualityCut readL1PFTauQualityCut(const edm::ParameterSet &cfg, const std::string &pfCandType, const std::string &dzCut, bool debug)
void addParameter(std::string const &name, T const &value)
int charge() const final
electric charge
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertex_z)
l1t::PFCandidate::ParticleType pfCandType_