#include <L1HPSPFTauBuilder.h>
Public Member Functions | |
void | addL1PFCandidates (const std::vector< l1t::PFCandidateRef > &l1PFCands) |
void | buildL1PFTau () |
l1t::HPSPFTau | getL1PFTau () const |
L1HPSPFTauBuilder (const edm::ParameterSet &cfg) | |
void | reset () |
void | setL1PFCandProductID (const edm::ProductID &l1PFCandProductID) |
void | setL1PFTauSeed (const l1t::PFCandidateRef &l1PFCandSeed) |
void | setL1PFTauSeed (const reco::CaloJetRef &l1JetSeed, const std::vector< l1t::PFCandidateRef > &l1PFCands) |
void | setVertex (const l1t::TkPrimaryVertexRef &primaryVertex) |
~L1HPSPFTauBuilder ()=default | |
Private Member Functions | |
l1t::PFCandidateRefVector | convertToRefVector (const std::vector< l1t::PFCandidateRef > &l1PFCands) |
bool | isWithinIsolationCone (const l1t::PFCandidate &l1PFCand) |
bool | isWithinSignalCone (const l1t::PFCandidate &l1PFCand) |
bool | isWithinStrip (const l1t::PFCandidate &l1PFCand) |
Definition at line 14 of file L1HPSPFTauBuilder.h.
L1HPSPFTauBuilder::L1HPSPFTauBuilder | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 10 of file L1HPSPFTauBuilder.cc.
References cms::cuda::assert(), looper::cfg, gather_cfg::cout, debug_, isolationConeSize2_, isolationConeSize_, isolationQualityCutsDzCutDisabled_, isolationQualityCutsDzCutEnabledPileup_, isolationQualityCutsDzCutEnabledPrimary_, maxSignalConeSize_, minSignalConeSize_, readL1PFTauQualityCuts(), signalQualityCutsDzCutDisabled_, and signalQualityCutsDzCutEnabledPrimary_.
|
default |
void L1HPSPFTauBuilder::addL1PFCandidates | ( | const std::vector< l1t::PFCandidateRef > & | l1PFCands | ) |
Definition at line 183 of file L1HPSPFTauBuilder.cc.
References cms::cuda::assert(), l1t::PFCandidate::ChargedHadron, gather_cfg::cout, debug_, reco::deltaR(), l1t::PFCandidate::Electron, reco::FormulaEvaluator::evaluate(), isJetSeeded_, isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isolationQualityCutsDzCutEnabledPileup_, isolationQualityCutsDzCutEnabledPrimary_, isoMuons_, isoNeutralHadrons_, isoPhotons_, isPFCandSeeded_, isSelected(), isWithinIsolationCone(), isWithinSignalCone(), isWithinStrip(), l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, maxSignalConeSize_, minSignalConeSize_, l1t::PFCandidate::Muon, l1t::PFCandidate::NeutralHadron, l1t::PFCandidate::Photon, primaryVertex_, printPFCand(), signalAllL1PFCandidates_, signalChargedHadrons_, signalConeSize2_, signalConeSize_, signalConeSizeFormula_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, signalQualityCutsDzCutEnabledPrimary_, stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, sumPhotons_, and useStrips_.
Referenced by HPSPFTauProducer::produce().
void L1HPSPFTauBuilder::buildL1PFTau | ( | ) |
Definition at line 339 of file L1HPSPFTauBuilder.cc.
References l1t::PFCandidate::ChargedHadron, convertToRefVector(), l1t::PFCandidate::Electron, edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isolationConeSize_, isoMuons_, isoNeutralHadrons_, isoPhotons_, l1t::HPSPFTau::kOneProng0Pi0, l1t::HPSPFTau::kOneProng1Pi0, l1t::HPSPFTau::kThreeProng0Pi0, l1t::HPSPFTau::kThreeProng1Pi0, l1JetSeed_, l1PFCandSeed_, l1PFTau_, l1t::HPSPFTau::leadChargedPFCand(), l1t::PFCandidate::Photon, primaryVertex_, l1t::HPSPFTau::setIsoAllL1PFCandidates(), l1t::HPSPFTau::setIsoChargedHadrons(), l1t::HPSPFTau::setIsoElectrons(), l1t::HPSPFTau::setisolationConeSize(), l1t::HPSPFTau::setIsoMuons(), l1t::HPSPFTau::setIsoNeutralHadrons(), l1t::HPSPFTau::setIsoPhotons(), l1t::HPSPFTau::setLeadChargedPFCand(), reco::LeafCandidate::setP4(), l1t::HPSPFTau::setPassLooseIso(), l1t::HPSPFTau::setPassLooseRelIso(), l1t::HPSPFTau::setPassMediumIso(), l1t::HPSPFTau::setPassMediumRelIso(), l1t::HPSPFTau::setPassTightIso(), l1t::HPSPFTau::setPassTightRelIso(), l1t::HPSPFTau::setPassVLooseIso(), l1t::HPSPFTau::setPassVLooseRelIso(), l1t::HPSPFTau::setPrimaryVertex(), l1t::HPSPFTau::setSeedChargedPFCand(), l1t::HPSPFTau::setSeedJet(), l1t::HPSPFTau::setSignalAllL1PFCandidates(), l1t::HPSPFTau::setSignalChargedHadrons(), l1t::HPSPFTau::setSignalConeSize(), l1t::HPSPFTau::setSignalElectrons(), l1t::HPSPFTau::setSignalMuons(), l1t::HPSPFTau::setSignalNeutralHadrons(), l1t::HPSPFTau::setSignalPhotons(), l1t::HPSPFTau::setStripAllL1PFCandidates(), l1t::HPSPFTau::setStripElectrons(), l1t::HPSPFTau::setStripP4(), l1t::HPSPFTau::setStripPhotons(), l1t::HPSPFTau::setSumAllL1PFCandidates(), l1t::HPSPFTau::setSumAllL1PFCandidatesPt(), l1t::HPSPFTau::setSumChargedHadrons(), l1t::HPSPFTau::setSumChargedIso(), l1t::HPSPFTau::setSumChargedIsoPileup(), l1t::HPSPFTau::setSumCombinedIso(), l1t::HPSPFTau::setSumElectrons(), l1t::HPSPFTau::setSumMuons(), l1t::HPSPFTau::setSumNeutralHadrons(), l1t::HPSPFTau::setSumNeutralIso(), l1t::HPSPFTau::setSumPhotons(), l1t::HPSPFTau::setTauType(), l1t::HPSPFTau::setZ(), signalAllL1PFCandidates_, l1t::HPSPFTau::signalChargedHadrons(), signalChargedHadrons_, signalConeSize_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, edm::RefVector< C, T, F >::size(), stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, l1t::HPSPFTau::sumChargedIso(), sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, and sumPhotons_.
Referenced by HPSPFTauProducer::produce().
|
private |
Definition at line 450 of file L1HPSPFTauBuilder.cc.
References l1PFCandProductID_, and edm::RefVector< C, T, F >::push_back().
Referenced by buildL1PFTau().
|
inline |
Definition at line 28 of file L1HPSPFTauBuilder.h.
References l1PFTau_.
Referenced by HPSPFTauProducer::produce().
|
private |
Definition at line 330 of file L1HPSPFTauBuilder.cc.
References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isolationConeSize2_, l1PFTauSeedEta_, l1PFTauSeedPhi_, and reco::LeafCandidate::phi().
Referenced by addL1PFCandidates().
|
private |
Definition at line 310 of file L1HPSPFTauBuilder.cc.
References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isJetSeeded_, isPFCandSeeded_, l1PFTauSeedEta_, l1PFTauSeedPhi_, reco::LeafCandidate::phi(), and signalConeSize2_.
Referenced by addL1PFCandidates().
|
private |
Definition at line 320 of file L1HPSPFTauBuilder.cc.
References spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, reco::LeafCandidate::eta(), isJetSeeded_, isPFCandSeeded_, l1PFTauSeedEta_, l1PFTauSeedPhi_, reco::LeafCandidate::phi(), stripSizeEta_, and stripSizePhi_.
Referenced by addL1PFCandidates().
void L1HPSPFTauBuilder::reset | ( | void | ) |
Definition at line 40 of file L1HPSPFTauBuilder.cc.
References isJetSeeded_, isoAllL1PFCandidates_, isoChargedHadrons_, isoElectrons_, isoMuons_, isoNeutralHadrons_, isoPhotons_, isPFCandSeeded_, l1JetSeed_, l1PFCandProductID_, l1PFCandSeed_, l1PFTau_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, primaryVertex_, signalAllL1PFCandidates_, signalChargedHadrons_, signalConeSize2_, signalConeSize_, signalElectrons_, signalMuons_, signalNeutralHadrons_, signalPhotons_, stripAllL1PFCandidates_, stripElectrons_, stripP4_, stripPhotons_, sumAllL1PFCandidates_, sumAllL1PFCandidatesPt_, sumChargedHadrons_, sumChargedIsoPileup_, sumElectrons_, sumMuons_, sumNeutralHadrons_, and sumPhotons_.
Referenced by HPSPFTauProducer::produce().
void L1HPSPFTauBuilder::setL1PFCandProductID | ( | const edm::ProductID & | l1PFCandProductID | ) |
Definition at line 86 of file L1HPSPFTauBuilder.cc.
References l1PFCandProductID_.
Referenced by HPSPFTauProducer::produce().
void L1HPSPFTauBuilder::setL1PFTauSeed | ( | const l1t::PFCandidateRef & | l1PFCandSeed | ) |
Definition at line 92 of file L1HPSPFTauBuilder.cc.
References gather_cfg::cout, debug_, edm::Ref< C, T, F >::isNonnull(), isPFCandSeeded_, l1PFCandSeed_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, primaryVertex_, and printPFCand().
Referenced by HPSPFTauProducer::produce().
void L1HPSPFTauBuilder::setL1PFTauSeed | ( | const reco::CaloJetRef & | l1JetSeed, |
const std::vector< l1t::PFCandidateRef > & | l1PFCands | ||
) |
Definition at line 147 of file L1HPSPFTauBuilder.cc.
References l1t::PFCandidate::ChargedHadron, gather_cfg::cout, debug_, reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, l1t::PFCandidate::Electron, isJetSeeded_, l1JetSeed_, l1PFTauSeedEta_, l1PFTauSeedPhi_, l1PFTauSeedZVtx_, l1t::PFCandidate::Muon, and l1t::PFCandidate::Photon.
void L1HPSPFTauBuilder::setVertex | ( | const l1t::TkPrimaryVertexRef & | primaryVertex | ) |
Definition at line 90 of file L1HPSPFTauBuilder.cc.
References BeamMonitor_cff::primaryVertex, and primaryVertex_.
Referenced by HPSPFTauProducer::produce().
|
private |
Definition at line 97 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), L1HPSPFTauBuilder(), and setL1PFTauSeed().
|
private |
Definition at line 59 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), isWithinSignalCone(), isWithinStrip(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 81 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 82 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 83 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 49 of file L1HPSPFTauBuilder.h.
Referenced by isWithinIsolationCone(), and L1HPSPFTauBuilder().
|
private |
Definition at line 48 of file L1HPSPFTauBuilder.h.
Referenced by buildL1PFTau(), and L1HPSPFTauBuilder().
|
private |
Definition at line 53 of file L1HPSPFTauBuilder.h.
Referenced by L1HPSPFTauBuilder().
|
private |
Definition at line 55 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().
|
private |
Definition at line 54 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().
|
private |
Definition at line 86 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 84 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 85 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 57 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), isWithinSignalCone(), isWithinStrip(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 60 of file L1HPSPFTauBuilder.h.
Referenced by buildL1PFTau(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 56 of file L1HPSPFTauBuilder.h.
Referenced by convertToRefVector(), reset(), and setL1PFCandProductID().
|
private |
Definition at line 58 of file L1HPSPFTauBuilder.h.
Referenced by buildL1PFTau(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 66 of file L1HPSPFTauBuilder.h.
Referenced by buildL1PFTau(), getL1PFTau(), and reset().
|
private |
Definition at line 61 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), isWithinIsolationCone(), isWithinSignalCone(), isWithinStrip(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 62 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), isWithinIsolationCone(), isWithinSignalCone(), isWithinStrip(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 63 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), reset(), and setL1PFTauSeed().
|
private |
Definition at line 42 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().
|
private |
Definition at line 41 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().
|
private |
Definition at line 65 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), reset(), setL1PFTauSeed(), and setVertex().
|
private |
Definition at line 70 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 71 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 40 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), isWithinSignalCone(), and reset().
|
private |
Definition at line 39 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 37 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates().
|
private |
Definition at line 72 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 75 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 73 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 74 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 51 of file L1HPSPFTauBuilder.h.
Referenced by L1HPSPFTauBuilder().
|
private |
Definition at line 52 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), and L1HPSPFTauBuilder().
|
private |
Definition at line 77 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 78 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 68 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 79 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 45 of file L1HPSPFTauBuilder.h.
Referenced by isWithinStrip().
|
private |
Definition at line 46 of file L1HPSPFTauBuilder.h.
Referenced by isWithinStrip().
|
private |
Definition at line 88 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 64 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 89 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 95 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 90 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 93 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 91 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 92 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates(), buildL1PFTau(), and reset().
|
private |
Definition at line 44 of file L1HPSPFTauBuilder.h.
Referenced by addL1PFCandidates().