#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) | |
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) | |
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) |
~PileUpSubtractor () | |
Public Attributes | |
int | bin_ |
const CentralityBins * | cbins_ |
double | centrality_ |
edm::InputTag | 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 13 of file ParametrizedSubtractor.h.
ParametrizedSubtractor::ParametrizedSubtractor | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 22 of file ParametrizedSubtractor.cc.
References centTag_, data, fMean, fPU, fRMS, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hC, hEta, hEtaMean, hEtaRMS, i, EcalCondDB::inf, interpolate_, and sumRecHits_.
|
inline |
Definition at line 29 of file ParametrizedSubtractor.h.
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 147 of file ParametrizedSubtractor.cc.
References PileUpSubtractor::fjInputs_.
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 98 of file ParametrizedSubtractor.cc.
double ParametrizedSubtractor::getEt | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 223 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(), pos, funct::sin(), and PV3DBase< T, PVType, FrameType >::theta().
Referenced by offsetCorrectJets(), and subtractPedestal().
double ParametrizedSubtractor::getEta | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 240 of file ParametrizedSubtractor.cc.
References PV3DBase< T, PVType, FrameType >::eta(), eta(), PileUpSubtractor::geo_, edm::Ptr< T >::get(), CaloGeometry::getPosition(), CaloTower::id(), and pos.
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 247 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 257 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
double ParametrizedSubtractor::getPU | ( | int | ieta, |
bool | addMean, | ||
bool | addSigma | ||
) | const |
Definition at line 262 of file ParametrizedSubtractor.cc.
References bin_, centrality_, fMean, fRMS, hC, hEtaMean, hEtaRMS, interpolate_, n, and PileUpSubtractor::nSigmaPU_.
Referenced by getMeanAtTower(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), and subtractPedestal().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 252 of file ParametrizedSubtractor.cc.
References getPU(), and PileUpSubtractor::ieta().
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 154 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(), and sumRecHits_.
void ParametrizedSubtractor::rescaleRMS | ( | double | s | ) |
|
virtual |
Reimplemented from PileUpSubtractor.
Definition at line 48 of file ParametrizedSubtractor.cc.
References PileUpSubtractor::allgeomid_, bin_, centrality_, centTag_, PileUpSubtractor::emean_, PileUpSubtractor::esigma_, PileUpSubtractor::geo_, PileUpSubtractor::geomtowers_, edm::EventSetup::get(), edm::Event::getByLabel(), 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 102 of file ParametrizedSubtractor.cc.
References dropZeroTowers_, getEt(), getPU(), PileUpSubtractor::ieta(), getHLTprescales::index, PileUpSubtractor::iphi(), LogDebug, and sumRecHits_.
Referenced by offsetCorrectJets().
int ParametrizedSubtractor::bin_ |
Definition at line 34 of file ParametrizedSubtractor.h.
Referenced by getPU(), and setupGeometryMap().
const CentralityBins* ParametrizedSubtractor::cbins_ |
Definition at line 36 of file ParametrizedSubtractor.h.
double ParametrizedSubtractor::centrality_ |
Definition at line 35 of file ParametrizedSubtractor.h.
Referenced by getPU(), and setupGeometryMap().
edm::InputTag ParametrizedSubtractor::centTag_ |
Definition at line 37 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor(), and setupGeometryMap().
bool ParametrizedSubtractor::dropZeroTowers_ |
Definition at line 33 of file ParametrizedSubtractor.h.
Referenced by subtractPedestal().
TF1* ParametrizedSubtractor::fMean |
Definition at line 43 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
TF1* ParametrizedSubtractor::fPU |
Definition at line 42 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor().
TF1* ParametrizedSubtractor::fRMS |
Definition at line 44 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
TH1D* ParametrizedSubtractor::hC |
Definition at line 45 of file ParametrizedSubtractor.h.
Referenced by getPU(), ParametrizedSubtractor(), and setupGeometryMap().
std::vector<TH1D*> ParametrizedSubtractor::hEta |
Definition at line 38 of file ParametrizedSubtractor.h.
Referenced by ParametrizedSubtractor().
std::vector<TH1D*> ParametrizedSubtractor::hEtaMean |
Definition at line 39 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
std::vector<TH1D*> ParametrizedSubtractor::hEtaRMS |
Definition at line 40 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
bool ParametrizedSubtractor::interpolate_ |
Definition at line 32 of file ParametrizedSubtractor.h.
Referenced by getPU(), and ParametrizedSubtractor().
bool ParametrizedSubtractor::sumRecHits_ |
Definition at line 31 of file ParametrizedSubtractor.h.
Referenced by offsetCorrectJets(), ParametrizedSubtractor(), and subtractPedestal().