#include <PileUpSubtractor.h>
Public Types | |
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 |
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 | |
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 21 of file PileUpSubtractor.h.
typedef boost::shared_ptr<fastjet::GhostedAreaSpec> PileUpSubtractor::ActiveAreaSpecPtr |
Definition at line 26 of file PileUpSubtractor.h.
typedef boost::shared_ptr<fastjet::ClusterSequence> PileUpSubtractor::ClusterSequencePtr |
Definition at line 25 of file PileUpSubtractor.h.
typedef boost::shared_ptr<fastjet::JetDefinition> PileUpSubtractor::JetDefPtr |
Definition at line 28 of file PileUpSubtractor.h.
typedef boost::shared_ptr<fastjet::RangeDefinition> PileUpSubtractor::RangeDefPtr |
Definition at line 27 of file PileUpSubtractor.h.
PileUpSubtractor::PileUpSubtractor | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 18 of file PileUpSubtractor.cc.
References doAreaFastjet_, doRhoFastjet_, edm::ParameterSet::exists(), fjActiveArea_, fjRangeDef_, edm::ParameterSet::getParameter(), and puPtMin_.
|
inlinevirtual |
Definition at line 31 of file PileUpSubtractor.h.
|
virtual |
Reimplemented in ParametrizedSubtractor, and VoronoiSubtractor.
Definition at line 205 of file PileUpSubtractor.cc.
References allgeomid_, reco::deltaR(), spr::find(), fjInputs_, fjJets_, fjOriginalInputs_, geo_, CaloGeometry::getPosition(), ieta(), cmsHarvester::index, inputs_, iphi(), LogDebug, ntowersWithJets_, puPtMin_, and radiusPU_.
|
virtual |
Reimplemented in MultipleAlgoIterator, ParametrizedSubtractor, ReflectedIterator, and VoronoiSubtractor.
Definition at line 107 of file PileUpSubtractor.cc.
References emean_, esigma_, geomtowers_, relval_steps::gt, i, ieta(), ietamax_, ietamin_, LogDebug, nSigmaPU_, nt, ntowersWithJets_, edm::second(), and mathSSE::sqrt().
|
virtual |
Definition at line 308 of file PileUpSubtractor.cc.
References allgeomid_, reco::deltaR(), emean_, esigma_, eta, PV3DBase< T, PVType, FrameType >::eta(), geo_, CaloGeometry::getPosition(), phi, PV3DBase< T, PVType, FrameType >::phi(), and point.
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 323 of file PileUpSubtractor.cc.
References emean_, ieta(), and edm::second().
int PileUpSubtractor::getN | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 338 of file PileUpSubtractor.cc.
References geomtowers_, ieta(), gen::n, and ntowersWithJets_.
int PileUpSubtractor::getNwithJets | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 346 of file PileUpSubtractor.cc.
References ieta(), gen::n, and ntowersWithJets_.
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 333 of file PileUpSubtractor.cc.
References emean_, esigma_, ieta(), and edm::second().
|
inlinevirtual |
|
virtual |
Reimplemented in ParametrizedSubtractor.
Definition at line 328 of file PileUpSubtractor.cc.
References esigma_, ieta(), and edm::second().
int PileUpSubtractor::ieta | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 354 of file PileUpSubtractor.cc.
References Exception, edm::Ptr< T >::get(), CaloTower::id(), and CaloTowerDetId::ieta().
Referenced by calculateOrphanInput(), calculatePedestal(), ParametrizedSubtractor::getMeanAtTower(), getMeanAtTower(), getN(), getNwithJets(), ParametrizedSubtractor::getPileUpAtTower(), getPileUpAtTower(), ParametrizedSubtractor::getSigmaAtTower(), getSigmaAtTower(), ParametrizedSubtractor::offsetCorrectJets(), offsetCorrectJets(), ParametrizedSubtractor::setupGeometryMap(), setupGeometryMap(), ParametrizedSubtractor::subtractPedestal(), and subtractPedestal().
int PileUpSubtractor::iphi | ( | const reco::CandidatePtr & | in | ) | const |
Definition at line 366 of file PileUpSubtractor.cc.
References Exception, edm::Ptr< T >::get(), CaloTower::id(), and CaloTowerDetId::iphi().
Referenced by calculateOrphanInput(), and ParametrizedSubtractor::subtractPedestal().
|
virtual |
Reimplemented in ParametrizedSubtractor, VoronoiSubtractor, MultipleAlgoIterator, and ReflectedIterator.
Definition at line 262 of file PileUpSubtractor.cc.
References emean_, esigma_, fjJets_, ieta(), jetOffset_, LogDebug, dt_dqm_sourceclient_common_cff::reco, edm::second(), and HLT_25ns14e33_v1_cff::towers.
|
virtual |
Definition at line 47 of file PileUpSubtractor.cc.
References fjInputs_, fjJets_, fjOriginalInputs_, i, input, inputs_, convertSQLitetoXML_cfg::output, and HLT_25ns14e33_v1_cff::towers.
|
virtual |
Definition at line 61 of file PileUpSubtractor.cc.
References fjJetDefinition_.
|
virtual |
Reimplemented in ParametrizedSubtractor, and VoronoiSubtractor.
Definition at line 65 of file PileUpSubtractor.cc.
References allgeomid_, HLT_25ns14e33_v1_cff::depth, geo_, geomtowers_, edm::EventSetup::get(), CaloGeometry::getValidDetIds(), DetId::Hcal, i, ieta(), ietamax_, ietamin_, LogDebug, ntowersWithJets_, and edm::ESHandle< class >::product().
|
virtual |
Reimplemented in MultipleAlgoIterator, ParametrizedSubtractor, ReflectedIterator, and VoronoiSubtractor.
Definition at line 175 of file PileUpSubtractor.cc.
References emean_, esigma_, ieta(), cmsHarvester::index, and LogDebug.
|
protected |
Definition at line 78 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), getCone(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 65 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::offsetCorrectJets(), and PileUpSubtractor().
|
protected |
Definition at line 66 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::offsetCorrectJets(), and PileUpSubtractor().
|
protected |
Definition at line 82 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), getCone(), getMeanAtTower(), getPileUpAtTower(), offsetCorrectJets(), ParametrizedSubtractor::setupGeometryMap(), and subtractPedestal().
|
protected |
Definition at line 81 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), getCone(), getPileUpAtTower(), getSigmaAtTower(), offsetCorrectJets(), ParametrizedSubtractor::setupGeometryMap(), and subtractPedestal().
|
protected |
Definition at line 72 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::offsetCorrectJets(), and PileUpSubtractor().
|
protected |
Definition at line 57 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 59 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::calculateOrphanInput(), calculateOrphanInput(), ParametrizedSubtractor::offsetCorrectJets(), and reset().
|
protected |
Definition at line 56 of file PileUpSubtractor.h.
Referenced by setDefinition().
|
protected |
Definition at line 60 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), VoronoiSubtractor::offsetCorrectJets(), ParametrizedSubtractor::offsetCorrectJets(), offsetCorrectJets(), and reset().
|
protected |
Definition at line 61 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), ParametrizedSubtractor::offsetCorrectJets(), and reset().
|
protected |
Definition at line 73 of file PileUpSubtractor.h.
Referenced by PileUpSubtractor().
|
protected |
Definition at line 75 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), getCone(), ParametrizedSubtractor::getEt(), ParametrizedSubtractor::getEta(), VoronoiSubtractor::setupGeometryMap(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 79 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), getN(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 76 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 77 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 58 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), and reset().
|
protected |
Definition at line 84 of file PileUpSubtractor.h.
Referenced by getPileUpEnergy(), VoronoiSubtractor::offsetCorrectJets(), ParametrizedSubtractor::offsetCorrectJets(), offsetCorrectJets(), and VoronoiSubtractor::setupGeometryMap().
|
protected |
Definition at line 67 of file PileUpSubtractor.h.
Referenced by ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 70 of file PileUpSubtractor.h.
Referenced by calculatePedestal(), ParametrizedSubtractor::getPU(), and ParametrizedSubtractor::offsetCorrectJets().
|
protected |
Definition at line 80 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), calculatePedestal(), getN(), getNwithJets(), ParametrizedSubtractor::setupGeometryMap(), and setupGeometryMap().
|
protected |
Definition at line 68 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput(), and PileUpSubtractor().
|
protected |
Definition at line 71 of file PileUpSubtractor.h.
Referenced by calculateOrphanInput().
|
protected |
Definition at line 64 of file PileUpSubtractor.h.