|
| FFTJetCorrectionProducer (const edm::ParameterSet &) |
|
| ~FFTJetCorrectionProducer () 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 |
|
std::vector< bool > const & | recordProvenanceList () 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) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Description: producer for correcting jets created by FFTJetProducer
Implementation: [Notes on implementation]
Definition at line 87 of file FFTJetCorrectionProducer.cc.
Definition at line 160 of file FFTJetCorrectionProducer.cc.
163 typedef std::vector<MyJet> MyCollection;
165 typedef typename Loader::data_type CorrectorSequence;
166 typedef typename CorrectorSequence::result_type CorrectorResult;
169 const unsigned nRecords =
records.size();
170 std::vector<edm::ESHandle<CorrectorSequence>>
handles(nRecords);
171 for (
unsigned irec = 0; irec < nRecords; ++irec)
180 for (
unsigned irec = 0; irec < nRecords; ++irec) {
182 const unsigned nLevels =
handles[irec]->nLevels();
183 for (
unsigned i = 0;
i < nLevels; ++
i) {
189 const int mask = (1 << lev);
190 if (totalMask & mask)
192 <<
"Error in FFTJetCorrectionProducer::applyCorrections:"
193 <<
" jet correction at level " << lev <<
" is applied more than once\n";
200 totalMask = (totalMask << 12);
210 const unsigned nJets =
jets->size();
211 auto coll = std::make_unique<MyCollection>();
212 coll->reserve(nJets);
216 double previousPt = DBL_MAX;
217 for (
unsigned ijet = 0; ijet < nJets; ++ijet) {
218 const MyJet&
j((*
jets)[ijet]);
221 const int initialStatus =
j.getFFTSpecific().f_status();
222 if (initialStatus & totalMask)
223 throw cms::Exception(
"FFTJetBadConfig") <<
"Error in FFTJetCorrectionProducer::applyCorrections: "
224 <<
"this jet collection is already corrected for some or all "
225 <<
"of the specified levels\n";
232 <<
", eta = " << fj.
f_vec().eta() <<
", R = " << fj.
f_recoScale() <<
", s = 0x" << std::hex
242 throw cms::Exception(
"FFTJetBadConfig") <<
"Error in FFTJetCorrectionProducer::applyCorrections: "
243 <<
"this jet collection is already pileup-subtracted\n";
245 throw cms::Exception(
"FFTJetBadConfig") <<
"Error in FFTJetCorrectionProducer::applyCorrections: "
246 <<
"pileup was not calculated for this jet collection\n";
252 <<
": pt = " << corJ.pt() <<
", eta = " << fj.
f_vec().eta() <<
", R = " << fj.
f_recoScale()
258 double sigmaSquared = 0.0;
259 for (
unsigned irec = 0; irec < nRecords; ++irec) {
263 FFTJet<float>& fftJet(
const_cast<FFTJet<float>&
>(corJ.getFFTSpecific()));
264 corJ.setP4(
corr.vec());
265 fftJet.setFourVec(
corr.vec());
271 const double s =
corr.sigma();
272 sigmaSquared +=
s *
s;
281 corJ.setPileup(
sqrt(sigmaSquared));
283 coll->push_back(corJ);
286 const double pt = corJ.pt();
294 <<
": pt = " << corJ.pt() <<
", eta = " << fj.
f_vec().eta() <<
", R = " << fj.
f_recoScale()
300 std::sort(coll->begin(), coll->end(), LocalSortByPt());
304 auto unc = std::make_unique<std::vector<float>>();
306 for (
unsigned ijet = 0; ijet < nJets; ++ijet) {
307 MyJet&
j((*coll)[ijet]);
308 unc->push_back(
j.pileup());
References alignCSCRings::corr, gather_cfg::cout, TauDecayModes::dec, Exception, f, reco::FFTJet< Real >::f_recoScale(), reco::FFTJet< Real >::f_status(), reco::FFTJet< Real >::f_vec(), mps_fire::i, iEvent, instance, StandaloneTrackMonitor_cfi::isMC, dqmiolumiharvest::j, singleTopDQM_cfi::jets, personalPlayback::level, eostools::move(), recoTrackAccumulator_cfi::outputLabel, PILEUP_CALCULATION_MASK, PILEUP_SUBTRACTION_MASK_ANY, DiDispStaMuonMonitor_cfi::pt, alignCSCRings::s, mathSSE::sqrt(), fftjetproducer_cfi::subtractPileup, and verbose.
Referenced by produce().