#include <L1HPSPFTauQualityCut.h>
Definition at line 9 of file L1HPSPFTauQualityCut.h.
◆ anonymous enum
◆ L1HPSPFTauQualityCut()
constructor
Definition at line 4 of file L1HPSPFTauQualityCut.cc.
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;
References looper::cfg, l1t::PFCandidate::ChargedHadron, dzCut_, l1t::PFCandidate::Electron, Exception, kDisabled, kEnabledPileup, kEnabledPrimary, maxDz_, minPt_, l1t::PFCandidate::Muon, l1t::PFCandidate::NeutralHadron, pfCandType_, l1t::PFCandidate::Photon, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ ~L1HPSPFTauQualityCut()
L1HPSPFTauQualityCut::~L1HPSPFTauQualityCut |
( |
| ) |
|
|
default |
◆ dzCut()
int L1HPSPFTauQualityCut::dzCut |
( |
| ) |
const |
◆ maxDz()
float_t L1HPSPFTauQualityCut::maxDz |
( |
| ) |
const |
◆ minPt()
float_t L1HPSPFTauQualityCut::minPt |
( |
| ) |
const |
◆ operator()()
bool L1HPSPFTauQualityCut::operator() |
( |
const l1t::PFCandidate & |
pfCand, |
|
|
float_t |
primaryVertexZ |
|
) |
| const |
returns true (false) if PFCandidate passes (fails) quality cuts
Definition at line 36 of file L1HPSPFTauQualityCut.cc.
42 if (pfCand.
charge() != 0) {
45 double dz = std::fabs(pfCand_track->vertex().z() - primaryVertex_z);
References reco::LeafCandidate::charge(), PVValHelper::dz, dzCut_, l1t::PFCandidate::id(), kEnabledPileup, kEnabledPrimary, maxDz_, minPt_, pfCandType_, l1t::PFCandidate::pfTrack(), and reco::LeafCandidate::pt().
◆ pfCandType()
◆ debug_
bool L1HPSPFTauQualityCut::debug_ |
|
private |
◆ dzCut_
int L1HPSPFTauQualityCut::dzCut_ |
|
private |
◆ maxDz_
float_t L1HPSPFTauQualityCut::maxDz_ |
|
private |
◆ minPt_
float_t L1HPSPFTauQualityCut::minPt_ |
|
private |
◆ pfCandType_