|
| FFTJetEFlowSmoother (const edm::ParameterSet &) |
|
| ~FFTJetEFlowSmoother () override |
|
| ~FFTJetInterface () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
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, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) override |
|
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 |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Description: Runs FFTJet filtering code for multiple scales and saves the results
Implementation: [Notes on implementation]
Definition at line 50 of file FFTJetEFlowSmoother.cc.
Definition at line 125 of file FFTJetEFlowSmoother.cc.
References anotherEngine, convolver, fftjeteflowsmoother_cfi::convolverMaxBin, fftjeteflowsmoother_cfi::convolverMinBin, fftjetcms::FFTJetInterface::energyFlow, engine, fftjeteflowsmoother_cfi::etaDependentScaleFactors, etaKernel, Exception, fftjeteflowsmoother_cfi::fixEfficiency, edm::ParameterSet::getParameter(), kernel2d, fftjeteflowsmoother_cfi::kernelEtaScale, fftjeteflowsmoother_cfi::kernelPhiScale, M_PI, and phiKernel.
Referenced by FFTJetEFlowSmoother().
130 ps.
getParameter<std::vector<double> >(
"etaDependentScaleFactors"));
137 <<
"invalid number of eta-dependent scale factors" 143 if (kernelEtaScale <= 0.0 || kernelPhiScale <= 0.0)
145 <<
"invalid kernel scale" << std::endl;
156 if (fixEfficiency || !use2dKernel)
158 convolverMinBin = ps.
getParameter<
unsigned>(
"convolverMinBin");
165 engine = std::unique_ptr<MyFFTEngine>(
169 kernel2d = std::unique_ptr<fftjet::AbsFrequencyKernel>(
170 new fftjet::DiscreteGauss2d(
171 kernelEtaScale, kernelPhiScale,
175 convolver = std::unique_ptr<fftjet::AbsConvolverBase<Real> >(
176 new fftjet::FrequencyKernelConvolver<Real,Complex>(
183 engine = std::unique_ptr<MyFFTEngine>(
189 etaKernel = std::unique_ptr<fftjet::AbsFrequencyKernel1d>(
190 new fftjet::DiscreteGauss1d(kernelEtaScale,
energyFlow->nEta()));
192 phiKernel = std::unique_ptr<fftjet::AbsFrequencyKernel1d>(
193 new fftjet::DiscreteGauss1d(kernelPhiScale,
energyFlow->nPhi()));
196 convolver = std::unique_ptr<fftjet::AbsConvolverBase<Real> >(
197 new fftjet::FrequencySequentialConvolver<Real,Complex>(
std::unique_ptr< MyFFTEngine > engine
T getParameter(std::string const &) const
std::unique_ptr< fftjet::AbsFrequencyKernel1d > etaKernel
std::unique_ptr< fftjet::AbsConvolverBase< Real > > convolver
std::unique_ptr< MyFFTEngine > anotherEngine
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
std::unique_ptr< fftjet::AbsFrequencyKernel > kernel2d
fftjet::FFTWDoubleEngine MyFFTEngine
std::unique_ptr< fftjet::AbsFrequencyKernel1d > phiKernel
Definition at line 212 of file FFTJetEFlowSmoother.cc.
References convolvedFlow, convolver, fftjetcms::FFTJetInterface::discretizeEnergyFlow(), fftjetcms::FFTJetInterface::energyFlow, etConversionFactor, g, fftjetcms::FFTJetInterface::getEventScale(), h, iniScales, fftjetcms::FFTJetInterface::loadInputCollection(), M_PI, eostools::move(), DetIdAssociatorESProducer_cff::nEta, DetIdAssociatorESProducer_cff::nPhi, fftjetcommon_cfi::nScales, fftjetcms::FFTJetInterface::outputLabel, funct::pow(), edm::Event::put(), scalePower, and mitigatedMETSequence_cff::U.
221 const double* scales = &(*iniScales)[0];
223 const unsigned nEta =
g.nEta();
224 const unsigned nPhi =
g.nPhi();
225 const double bin0edge =
g.phiBin0Edge();
228 auto pTable = std::make_unique<TH3F>(
229 "FFTJetEFlowSmoother",
"FFTJetEFlowSmoother",
230 nScales+1
U, -1.5, nScales-0.5,
231 nEta,
g.etaMin(),
g.etaMax(),
233 TH3F*
h = pTable.get();
234 h->SetDirectory(
nullptr);
235 h->GetXaxis()->SetTitle(
"Scale");
236 h->GetYaxis()->SetTitle(
"Eta");
237 h->GetZaxis()->SetTitle(
"Phi");
241 for (
unsigned ieta=0; ieta<
nEta; ++ieta)
242 for (
unsigned iphi=0; iphi<
nPhi; ++iphi)
243 h->SetBinContent(1U, ieta+1U, iphi+1U,
244 factor*
g.binValue(ieta, iphi));
248 for (
unsigned iscale=0; iscale<
nScales; ++iscale)
254 scales[iscale], convData,
258 for (
unsigned ieta=0; ieta<
nEta; ++ieta)
260 const Real* etaData = convData + ieta*
nPhi;
261 for (
unsigned iphi=0; iphi<
nPhi; ++iphi)
262 h->SetBinContent(iscale+2U, ieta+1U, iphi+1U,
263 factor*etaData[iphi]);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::unique_ptr< fftjet::AbsConvolverBase< Real > > convolver
void loadInputCollection(const edm::Event &)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
double etConversionFactor
double getEventScale() const
std::unique_ptr< std::vector< double > > iniScales
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > convolvedFlow
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
void discretizeEnergyFlow()
const std::string outputLabel
Power< A, B >::type pow(const A &a, const B &b)