#include <RecoJets/FFTJetProducers/plugins/FFTJetPileupProcessor.cc>
Public Member Functions | |
FFTJetPileupProcessor (const edm::ParameterSet &) | |
~FFTJetPileupProcessor () | |
Public Member Functions inherited from fftjetcms::FFTJetInterface | |
virtual | ~FFTJetInterface () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Protected Member Functions | |
void | beginJob () override |
void | endJob () override |
void | produce (edm::Event &, const edm::EventSetup &) override |
Protected Member Functions inherited from fftjetcms::FFTJetInterface | |
template<class Ptr > | |
void | checkConfig (const Ptr &ptr, const char *message) |
void | discretizeEnergyFlow () |
FFTJetInterface (const edm::ParameterSet &) | |
double | getEventScale () const |
void | loadInputCollection (const edm::Event &) |
bool | storeInSinglePrecision () const |
const reco::Particle::Point & | vertexUsed () const |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Member Functions | |
void | buildKernelConvolver (const edm::ParameterSet &) |
FFTJetPileupProcessor () | |
FFTJetPileupProcessor (const FFTJetPileupProcessor &) | |
void | loadFlatteningFactors (const edm::EventSetup &iSetup) |
void | mixExtraGrid () |
FFTJetPileupProcessor & | operator= (const FFTJetPileupProcessor &) |
Private Attributes | |
std::auto_ptr< fftjet::Grid2d< fftjetcms::Real > > | convolvedFlow |
std::auto_ptr< fftjet::AbsConvolverBase< Real > > | convolver |
unsigned | convolverMaxBin |
unsigned | convolverMinBin |
unsigned | currentFileNum |
std::auto_ptr< MyFFTEngine > | engine |
std::vector< double > | etaFlatteningFactors |
std::vector< std::string > | externalGridFiles |
double | externalGridMaxEnergy |
std::auto_ptr< fftjet::EquidistantInLogSpace > | filterScales |
std::string | flatteningTableCategory |
std::string | flatteningTableName |
std::string | flatteningTableRecord |
std::ifstream | gridStream |
std::auto_ptr< fftjet::AbsFrequencyKernel > | kernel2d |
bool | loadFlatteningFactorsFromDB |
unsigned | nPercentiles |
std::vector< double > | percentileData |
double | pileupEtaPhiArea |
Description: Runs FFTJet multiscale pileup filtering code and saves the results
Implementation: [Notes on implementation]
Definition at line 53 of file FFTJetPileupProcessor.cc.
|
explicit |
Definition at line 125 of file FFTJetPileupProcessor.cc.
References buildKernelConvolver(), fftjetcms::FFTJetInterface::checkConfig(), convolvedFlow, fftjetcms::FFTJetInterface::energyFlow, etaFlatteningFactors, Exception, fftjetcms::fftjet_Grid2d_parser(), filterScales, edm::ParameterSet::getParameter(), fftjetcommon_cfi::maxScale, fftjetcommon_cfi::minScale, nPercentiles, fftjetcommon_cfi::nScales, fftjetcms::FFTJetInterface::outputLabel, percentileData, and mitigatedMETSequence_cff::U.
FFTJetPileupProcessor::~FFTJetPileupProcessor | ( | ) |
Definition at line 220 of file FFTJetPileupProcessor.cc.
|
private |
|
private |
|
overrideprotectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 369 of file FFTJetPileupProcessor.cc.
|
private |
Definition at line 183 of file FFTJetPileupProcessor.cc.
References convolver, convolverMaxBin, convolverMinBin, fftjetcms::FFTJetInterface::energyFlow, engine, Exception, edm::ParameterSet::getParameter(), kernel2d, fftjeteflowsmoother_cfi::kernelEtaScale, fftjeteflowsmoother_cfi::kernelPhiScale, and M_PI.
Referenced by FFTJetPileupProcessor().
|
overrideprotectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 375 of file FFTJetPileupProcessor.cc.
|
private |
Definition at line 380 of file FFTJetPileupProcessor.cc.
References DEFINE_FWK_MODULE, fftjetcms::FFTJetInterface::energyFlow, PVValHelper::eta, etaFlatteningFactors, f, flatteningTableCategory, flatteningTableName, flatteningTableRecord, h, StaticFFTJetRcdMapper< Mapper >::instance(), DetIdAssociatorESProducer_cff::nEta, and mitigatedMETSequence_cff::U.
Referenced by produce().
|
private |
Definition at line 301 of file FFTJetPileupProcessor.cc.
References fftjetcms::add_Grid2d_data(), currentFileNum, fftjetcms::FFTJetInterface::energyFlow, Exception, externalGridFiles, externalGridMaxEnergy, g, gridStream, recoMuon::in, cmsBatch::nFiles, and mitigatedMETSequence_cff::U.
Referenced by produce().
|
private |
|
overrideprotected |
Definition at line 226 of file FFTJetPileupProcessor.cc.
References convolvedFlow, convolver, convolverMaxBin, convolverMinBin, fftjetcms::FFTJetInterface::discretizeEnergyFlow(), fftjetcms::FFTJetInterface::energyFlow, etaFlatteningFactors, externalGridFiles, filterScales, g, loadFlatteningFactors(), loadFlatteningFactorsFromDB, fftjetcms::FFTJetInterface::loadInputCollection(), mixExtraGrid(), nPercentiles, fftjetcommon_cfi::nScales, fftjetcms::FFTJetInterface::outputLabel, percentileData, pileupEtaPhiArea, edm::Event::put(), lumiQueryAPI::q, and mitigatedMETSequence_cff::U.
|
private |
Definition at line 84 of file FFTJetPileupProcessor.cc.
Referenced by FFTJetPileupProcessor(), and produce().
|
private |
Definition at line 81 of file FFTJetPileupProcessor.cc.
Referenced by buildKernelConvolver(), and produce().
|
private |
Definition at line 98 of file FFTJetPileupProcessor.cc.
Referenced by buildKernelConvolver(), and produce().
|
private |
Definition at line 97 of file FFTJetPileupProcessor.cc.
Referenced by buildKernelConvolver(), and produce().
|
private |
Definition at line 107 of file FFTJetPileupProcessor.cc.
Referenced by mixExtraGrid().
|
private |
Definition at line 75 of file FFTJetPileupProcessor.cc.
Referenced by buildKernelConvolver().
|
private |
Definition at line 91 of file FFTJetPileupProcessor.cc.
Referenced by FFTJetPileupProcessor(), loadFlatteningFactors(), and produce().
|
private |
Definition at line 104 of file FFTJetPileupProcessor.cc.
Referenced by mixExtraGrid(), and produce().
|
private |
Definition at line 106 of file FFTJetPileupProcessor.cc.
Referenced by mixExtraGrid().
|
private |
Definition at line 87 of file FFTJetPileupProcessor.cc.
Referenced by FFTJetPileupProcessor(), and produce().
|
private |
Definition at line 118 of file FFTJetPileupProcessor.cc.
Referenced by loadFlatteningFactors().
|
private |
Definition at line 117 of file FFTJetPileupProcessor.cc.
Referenced by loadFlatteningFactors().
|
private |
Definition at line 116 of file FFTJetPileupProcessor.cc.
Referenced by loadFlatteningFactors().
|
private |
Definition at line 105 of file FFTJetPileupProcessor.cc.
Referenced by mixExtraGrid().
|
private |
Definition at line 78 of file FFTJetPileupProcessor.cc.
Referenced by buildKernelConvolver().
|
private |
Definition at line 119 of file FFTJetPileupProcessor.cc.
Referenced by produce().
|
private |
Definition at line 94 of file FFTJetPileupProcessor.cc.
Referenced by FFTJetPileupProcessor(), and produce().
|
private |
Definition at line 110 of file FFTJetPileupProcessor.cc.
Referenced by FFTJetPileupProcessor(), and produce().
|
private |
Definition at line 101 of file FFTJetPileupProcessor.cc.
Referenced by produce().