#include <PileUpSubtractor.h>
Public Types | |
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 |
Public Member Functions | |
virtual void | calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput) |
virtual void | calculatePedestal (std::vector< fastjet::PseudoJet > const &coll) |
virtual double | getCone (double cone, double eta, double phi, double &et, double &pu) |
virtual double | getMeanAtTower (const reco::CandidatePtr &in) const |
int | getN (const reco::CandidatePtr &in) const |
int | getNwithJets (const reco::CandidatePtr &in) const |
virtual double | getPileUpAtTower (const reco::CandidatePtr &in) const |
virtual double | getPileUpEnergy (int ijet) const |
virtual double | getSigmaAtTower (const reco::CandidatePtr &in) const |
int | ieta (const reco::CandidatePtr &in) const |
int | iphi (const reco::CandidatePtr &in) const |
virtual void | offsetCorrectJets () |
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 void | setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual void | subtractPedestal (std::vector< fastjet::PseudoJet > &coll) |
virtual | ~PileUpSubtractor () |
Protected Attributes | |
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 25 of file PileUpSubtractor.h.
typedef std::shared_ptr<fastjet::GhostedAreaSpec> PileUpSubtractor::ActiveAreaSpecPtr |
Definition at line 28 of file PileUpSubtractor.h.
typedef std::shared_ptr<fastjet::ClusterSequence> PileUpSubtractor::ClusterSequencePtr |
Definition at line 27 of file PileUpSubtractor.h.
typedef std::shared_ptr<fastjet::JetDefinition> PileUpSubtractor::JetDefPtr |
Definition at line 30 of file PileUpSubtractor.h.
typedef std::shared_ptr<fastjet::RangeDefinition> PileUpSubtractor::RangeDefPtr |
Definition at line 29 of file PileUpSubtractor.h.
PileUpSubtractor::PileUpSubtractor | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 20 of file PileUpSubtractor.cc.
References edm::ParameterSet::getParameter().
|
inlinevirtual |
Definition at line 33 of file PileUpSubtractor.h.
|
virtual |
Reimplemented in ParametrizedSubtractor, and MultipleAlgoIterator.
Definition at line 183 of file PileUpSubtractor.cc.
References reco::deltaR(), spr::find(), hcalRecHitTable_cff::ieta, hcalRecHitTable_cff::iphi, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and LogDebug.
|
virtual |
Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.
Definition at line 95 of file PileUpSubtractor.cc.
References StorageManager_cfg::e1, submitPVValidationJobs::gt, mps_fire::i, hcalRecHitTable_cff::ieta, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, nt, edm::second(), and mathSSE::sqrt().
|
virtual |
Definition at line 280 of file PileUpSubtractor.cc.
References hltPFPuppi_cfi::cone, reco::deltaR(), PVValHelper::eta, point, and displacedMuons_cfi::pu.
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 296 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and edm::second().
int PileUpSubtractor::getN | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 311 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and dqmiodumpmetadata::n.
int PileUpSubtractor::getNwithJets | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 318 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and dqmiodumpmetadata::n.
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 306 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and edm::second().
|
inlinevirtual |
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 301 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, recoMuon::in, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and edm::second().
int PileUpSubtractor::ieta | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 324 of file PileUpSubtractor.cc.
References Exception, CaloTower::id(), CaloTowerDetId::ieta(), recoMuon::in, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::calculatePedestal(), ParametrizedSubtractor::getMeanAtTower(), ParametrizedSubtractor::getPileUpAtTower(), ParametrizedSubtractor::getPU(), ParametrizedSubtractor::getSigmaAtTower(), MultipleAlgoIterator::offsetCorrectJets(), ParametrizedSubtractor::offsetCorrectJets(), MultipleAlgoIterator::subtractPedestal(), and ParametrizedSubtractor::subtractPedestal().
int PileUpSubtractor::iphi | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 335 of file PileUpSubtractor.cc.
References Exception, CaloTower::id(), recoMuon::in, CaloTowerDetId::iphi(), and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::subtractPedestal(), and ParametrizedSubtractor::subtractPedestal().
|
virtual |
Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.
Definition at line 238 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, edm::second(), and HLT_2024v13_cff::towers.
|
virtual |
Definition at line 42 of file PileUpSubtractor.cc.
References mps_fire::i, input, convertSQLitetoXML_cfg::output, and HLT_2024v13_cff::towers.
|
virtual |
Definition at line 54 of file PileUpSubtractor.cc.
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 58 of file PileUpSubtractor.cc.
References edm::EventSetup::getData(), DetId::Hcal, mps_fire::i, HcalDetId::ieta(), and LogDebug.
Referenced by ParametrizedSubtractor::setupGeometryMap().
|
virtual |
Reimplemented in ParametrizedSubtractor, ReflectedIterator, and MultipleAlgoIterator.
Definition at line 156 of file PileUpSubtractor.cc.
References hcalRecHitTable_cff::ieta, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and LogDebug.
|
protected |
Definition at line 72 of file PileUpSubtractor.h.
|
protected |
Definition at line 82 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput().
|
protected |
Definition at line 66 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 67 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 86 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculatePedestal(), MultipleAlgoIterator::offsetCorrectJets(), ParametrizedSubtractor::setupGeometryMap(), and MultipleAlgoIterator::subtractPedestal().
|
protected |
Definition at line 85 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculatePedestal(), MultipleAlgoIterator::offsetCorrectJets(), MultipleAlgoIterator::rescaleRMS(), ParametrizedSubtractor::setupGeometryMap(), and MultipleAlgoIterator::subtractPedestal().
|
protected |
Definition at line 77 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 58 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 60 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), ParametrizedSubtractor::calculateOrphanInput(), MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 57 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets().
|
protected |
Definition at line 61 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 62 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 79 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), MultipleAlgoIterator::getEt(), ParametrizedSubtractor::getEt(), MultipleAlgoIterator::getEta(), and ParametrizedSubtractor::getEta().
|
protected |
Definition at line 83 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), and MultipleAlgoIterator::calculatePedestal().
|
protected |
Definition at line 78 of file PileUpSubtractor.h.
|
protected |
Definition at line 73 of file PileUpSubtractor.h.
|
protected |
Definition at line 71 of file PileUpSubtractor.h.
|
protected |
Definition at line 80 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculatePedestal(), and ParametrizedSubtractor::setupGeometryMap().
|
protected |
Definition at line 81 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculatePedestal(), and ParametrizedSubtractor::setupGeometryMap().
|
protected |
Definition at line 59 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput().
|
protected |
Definition at line 88 of file PileUpSubtractor.h.
Referenced by getPileUpEnergy(), MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 68 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 75 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculatePedestal(), ParametrizedSubtractor::getPU(), MultipleAlgoIterator::offsetCorrectJets(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 84 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput(), and MultipleAlgoIterator::calculatePedestal().
|
protected |
Definition at line 69 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput().
|
protected |
Definition at line 76 of file PileUpSubtractor.h.
Referenced by MultipleAlgoIterator::calculateOrphanInput().
|
protected |
Definition at line 65 of file PileUpSubtractor.h.