#include <ParametrizedSubtractor.h>
Public Member Functions | |
virtual void | calculateOrphanInput (std::vector< fastjet::PseudoJet > &orphanInput) |
virtual void | calculatePedestal (std::vector< fastjet::PseudoJet > const &coll) |
double | getEt (const reco::CandidatePtr &in) const |
double | getEta (const reco::CandidatePtr &in) const |
virtual double | getMeanAtTower (const reco::CandidatePtr &in) const |
virtual double | getPileUpAtTower (const reco::CandidatePtr &in) const |
double | getPU (int ieta, bool addMean, bool addSigma) const |
virtual double | getSigmaAtTower (const reco::CandidatePtr &in) const |
virtual void | offsetCorrectJets () |
ParametrizedSubtractor (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
void | rescaleRMS (double s) |
virtual void | setupGeometryMap (edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual void | subtractPedestal (std::vector< fastjet::PseudoJet > &coll) |
~ParametrizedSubtractor () | |
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 boost::shared_ptr < fastjet::GhostedAreaSpec > | ActiveAreaSpecPtr |
typedef boost::shared_ptr < fastjet::ClusterSequence > | ClusterSequencePtr |
typedef boost::shared_ptr < fastjet::JetDefinition > | JetDefPtr |
typedef boost::shared_ptr < fastjet::RangeDefinition > | RangeDefPtr |
Protected Attributes inherited from PileUpSubtractor | |
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_ |
RangeDefPtr | fjRangeDef_ |
CaloGeometry const * | geo_ |
std::map< int, int > | geomtowers_ |
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 25 of file ParametrizedSubtractor.cc.
References centTag_, AlCaHLTBitMon_QueryRunRegistry::data, fMean, fPU, fRMS, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hC, hEta, hEtaMean, hEtaRMS, i, EcalCondDB::inf, HLT_25ns10e33_v2_cff::InputTag, interpolate_, AlCaHLTBitMon_QueryRunRegistry::string, and sumRecHits_.
|
inline |
Definition at line 30 of file ParametrizedSubtractor.h.
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 154 of file ParametrizedSubtractor.cc.
References PileUpSubtractor::fjInputs_.
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 105 of file ParametrizedSubtractor.cc.
double ParametrizedSubtractor::getEt | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 230 of file ParametrizedSubtractor.cc.
References CaloTower::constituents(), CaloTower::emEnergy(), relval_parameters_module::energy, PileUpSubtractor::geo_, edm::Ptr< T >::get(), CaloGeometry::getPosition(), CaloTower::hadEnergy(), i, CaloTower::id(), funct::sin(), and PV3DBase< T, PVType, FrameType >::theta().
Referenced by offsetCorrectJets(), and subtractPedestal().
double ParametrizedSubtractor::getEta | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 247 of file ParametrizedSubtractor.cc.
References eta, PV3DBase< T, PVType, FrameType >::eta(), PileUpSubtractor::geo_, edm::Ptr< T >::get(), CaloGeometry::getPosition(), and CaloTower::id().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 254 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 264 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
double ParametrizedSubtractor::getPU | ( | int | ieta, |
bool | addMean, | ||
bool | addSigma | ||
) | const |
Definition at line 269 of file ParametrizedSubtractor.cc.
References bin_, centrality_, fMean, fRMS, hC, hEtaMean, hEtaRMS, interpolate_, gen::n, and PileUpSubtractor::nSigmaPU_.
Referenced by getMeanAtTower(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), and subtractPedestal().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 259 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 161 of file ParametrizedSubtractor.cc.
References 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_, dt_dqm_sourceclient_common_cff::reco, rescaleRMS(), subtractPedestal(), sumRecHits_, and HLT_25ns10e33_v2_cff::towers.
void ParametrizedSubtractor::rescaleRMS | ( | double | s | ) |
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 52 of file ParametrizedSubtractor.cc.
References PileUpSubtractor::allgeomid_, bin_, centrality_, centTag_, HLT_25ns10e33_v2_cff::depth, PileUpSubtractor::emean_, PileUpSubtractor::esigma_, PileUpSubtractor::geo_, PileUpSubtractor::geomtowers_, edm::EventSetup::get(), edm::Event::getByToken(), CaloGeometry::getValidDetIds(), hC, DetId::Hcal, i, PileUpSubtractor::ieta(), PileUpSubtractor::ietamax_, PileUpSubtractor::ietamin_, LogDebug, PileUpSubtractor::ntowersWithJets_, and edm::ESHandle< class >::product().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 109 of file ParametrizedSubtractor.cc.
References dropZeroTowers_, getEt(), getPU(), PileUpSubtractor::ieta(), cmsHarvester::index, 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().