#include <ParametrizedSubtractor.h>
Public Member Functions | |
void | calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput) override |
void | calculatePedestal (std::vector< fastjet::PseudoJet > const &coll) override |
double | getEt (const reco::CandidatePtr &in) const |
double | getEta (const reco::CandidatePtr &in) const |
double | getMeanAtTower (const reco::CandidatePtr &in) const override |
double | getPileUpAtTower (const reco::CandidatePtr &in) const override |
double | getPU (int ieta, bool addMean, bool addSigma) const |
double | getSigmaAtTower (const reco::CandidatePtr &in) const override |
void | offsetCorrectJets () override |
ParametrizedSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
void | rescaleRMS (double s) |
void | setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
void | subtractPedestal (std::vector< fastjet::PseudoJet > &coll) override |
~ParametrizedSubtractor () override | |
Public Member Functions inherited from PileUpSubtractor | |
virtual double | getCone (double cone, double eta, double phi, double &et, double &pu) |
int | getN (const reco::CandidatePtr &in) const |
int | getNwithJets (const reco::CandidatePtr &in) const |
virtual double | getPileUpEnergy (int ijet) const |
int | ieta (const reco::CandidatePtr &in) const |
int | iphi (const reco::CandidatePtr &in) const |
PileUpSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
virtual void | reset (std::vector< edm::Ptr< reco::Candidate > > &input, std::vector< fastjet::PseudoJet > &towers, std::vector< fastjet::PseudoJet > &output) |
virtual void | setDefinition (JetDefPtr const &jetDef) |
virtual | ~PileUpSubtractor () |
Public Attributes | |
int | bin_ |
const CentralityBins * | cbins_ |
double | centrality_ |
edm::EDGetTokenT< reco::Centrality > | centTag_ |
bool | dropZeroTowers_ |
TF1 * | fMean |
TF1 * | fPU |
TF1 * | fRMS |
TH1D * | hC |
std::vector< TH1D * > | hEta |
std::vector< TH1D * > | hEtaMean |
std::vector< TH1D * > | hEtaRMS |
bool | interpolate_ |
bool | sumRecHits_ |
Additional Inherited Members | |
Public Types inherited from PileUpSubtractor | |
typedef std::shared_ptr< fastjet::GhostedAreaSpec > | ActiveAreaSpecPtr |
typedef std::shared_ptr< fastjet::ClusterSequence > | ClusterSequencePtr |
typedef std::shared_ptr< fastjet::JetDefinition > | JetDefPtr |
typedef std::shared_ptr< fastjet::RangeDefinition > | RangeDefPtr |
Protected Attributes inherited from PileUpSubtractor | |
int | activeAreaRepeats |
std::vector< HcalDetId > | allgeomid_ |
bool | doAreaFastjet_ |
bool | doRhoFastjet_ |
std::map< int, double > | emean_ |
std::map< int, double > | esigma_ |
ActiveAreaSpecPtr | fjActiveArea_ |
ClusterSequencePtr | fjClusterSeq_ |
std::vector< fastjet::PseudoJet > * | fjInputs_ |
JetDefPtr | fjJetDefinition_ |
std::vector< fastjet::PseudoJet > * | fjJets_ |
std::vector< fastjet::PseudoJet > | fjOriginalInputs_ |
CaloGeometry const * | geo_ |
std::map< int, int > | geomtowers_ |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | geoToken_ |
double | ghostArea |
double | ghostEtaMax |
int | ietamax_ |
int | ietamin_ |
std::vector< edm::Ptr< reco::Candidate > > * | inputs_ |
std::vector< double > | jetOffset_ |
double | jetPtMin_ |
double | nSigmaPU_ |
std::map< int, int > | ntowersWithJets_ |
double | puPtMin_ |
double | radiusPU_ |
bool | reRunAlgo_ |
Definition at line 14 of file ParametrizedSubtractor.h.
ParametrizedSubtractor::ParametrizedSubtractor | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 23 of file ParametrizedSubtractor.cc.
References centTag_, data, fMean, fPU, fRMS, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hC, hEta, hEtaMean, hEtaRMS, mps_fire::i, dqmiodatasetharvest::inf, ProducerED_cfi::InputTag, interpolate_, AlCaHLTBitMon_QueryRunRegistry::string, and sumRecHits_.
|
inlineoverride |
Definition at line 30 of file ParametrizedSubtractor.h.
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 117 of file ParametrizedSubtractor.cc.
References PileUpSubtractor::fjInputs_.
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 72 of file ParametrizedSubtractor.cc.
double ParametrizedSubtractor::getEt | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 180 of file ParametrizedSubtractor.cc.
References CaloTower::constituents(), CaloTower::emEnergy(), HCALHighEnergyHPDFilter_cfi::energy, EgHLTOffHistBins_cfi::et, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::hadEnergy(), mps_fire::i, CaloTower::id(), recoMuon::in, and funct::sin().
Referenced by offsetCorrectJets(), and subtractPedestal().
double ParametrizedSubtractor::getEta | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 196 of file ParametrizedSubtractor.cc.
References PVValHelper::eta, PileUpSubtractor::geo_, CaloGeometry::getPosition(), CaloTower::id(), and recoMuon::in.
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 203 of file ParametrizedSubtractor.cc.
References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 213 of file ParametrizedSubtractor.cc.
References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.
double ParametrizedSubtractor::getPU | ( | int | ieta, |
bool | addMean, | ||
bool | addSigma | ||
) | const |
Definition at line 218 of file ParametrizedSubtractor.cc.
References bin_, centrality_, fMean, fRMS, hC, hEtaMean, hEtaRMS, PileUpSubtractor::ieta(), interpolate_, dqmiodumpmetadata::n, and PileUpSubtractor::nSigmaPU_.
Referenced by getMeanAtTower(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), and subtractPedestal().
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 208 of file ParametrizedSubtractor.cc.
References getPU(), PileUpSubtractor::ieta(), and recoMuon::in.
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 119 of file ParametrizedSubtractor.cc.
References spu::def(), PileUpSubtractor::doAreaFastjet_, PileUpSubtractor::doRhoFastjet_, PileUpSubtractor::fjActiveArea_, PileUpSubtractor::fjClusterSeq_, PileUpSubtractor::fjInputs_, PileUpSubtractor::fjJets_, PileUpSubtractor::fjOriginalInputs_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::jetOffset_, PileUpSubtractor::jetPtMin_, LogDebug, PileUpSubtractor::nSigmaPU_, rescaleRMS(), subtractPedestal(), sumRecHits_, and HLT_2023v11_cff::towers.
void ParametrizedSubtractor::rescaleRMS | ( | double | s | ) |
Definition at line 17 of file ParametrizedSubtractor.cc.
References alignCSCRings::s.
Referenced by offsetCorrectJets().
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 47 of file ParametrizedSubtractor.cc.
References bin_, centrality_, centTag_, PileUpSubtractor::emean_, PileUpSubtractor::esigma_, reco::Centrality::EtHFhitSum(), hC, mps_fire::i, PileUpSubtractor::ietamax_, PileUpSubtractor::ietamin_, iEvent, LogDebug, and PileUpSubtractor::setupGeometryMap().
|
overridevirtual |
Reimplemented from PileUpSubtractor.
Definition at line 74 of file ParametrizedSubtractor.cc.
References dropZeroTowers_, getEt(), getPU(), PileUpSubtractor::ieta(), PileUpSubtractor::iphi(), LogDebug, and sumRecHits_.
Referenced by offsetCorrectJets().
int ParametrizedSubtractor::bin_ |
Definition at line 35 of file ParametrizedSubtractor.h.
Referenced by getPU(), and setupGeometryMap().
const CentralityBins* ParametrizedSubtractor::cbins_ |
Definition at line 37 of file ParametrizedSubtractor.h.
double ParametrizedSubtractor::centrality_ |
Definition at line 36 of file ParametrizedSubtractor.h.
Referenced by getPU(), and setupGeometryMap().
edm::EDGetTokenT<reco::Centrality> ParametrizedSubtractor::centTag_ |
Definition at line 38 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor(), and setupGeometryMap().
bool ParametrizedSubtractor::dropZeroTowers_ |
Definition at line 34 of file ParametrizedSubtractor.h.
Referenced by subtractPedestal().
TF1* ParametrizedSubtractor::fMean |
Definition at line 44 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
TF1* ParametrizedSubtractor::fPU |
Definition at line 43 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor().
TF1* ParametrizedSubtractor::fRMS |
Definition at line 45 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
TH1D* ParametrizedSubtractor::hC |
Definition at line 46 of file ParametrizedSubtractor.h.
Referenced by getPU(), ParametrizedSubtractor(), and setupGeometryMap().
std::vector<TH1D*> ParametrizedSubtractor::hEta |
Definition at line 39 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor().
std::vector<TH1D*> ParametrizedSubtractor::hEtaMean |
Definition at line 40 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
std::vector<TH1D*> ParametrizedSubtractor::hEtaRMS |
Definition at line 41 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
bool ParametrizedSubtractor::interpolate_ |
Definition at line 33 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
bool ParametrizedSubtractor::sumRecHits_ |
Definition at line 32 of file ParametrizedSubtractor.h.
Referenced by offsetCorrectJets(), ParametrizedSubtractor(), and subtractPedestal().