|
| 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
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 | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
template<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
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) |
|
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 () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
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.
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, submitPVValidationJobs::isMC, dqmiolumiharvest::j, singleTopDQM_cfi::jets, personalPlayback::level, callgraph::Loader, eostools::move(), recoTrackAccumulator_cfi::outputLabel, PILEUP_CALCULATION_MASK, PILEUP_SUBTRACTION_MASK_ANY, DiDispStaMuonMonitor_cfi::pt, alignCSCRings::s, jetUpdater_cfi::sort, mathSSE::sqrt(), fftjetproducer_cfi::subtractPileup, and verbose.
Referenced by produce().
163 typedef std::vector<MyJet> MyCollection;
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());
edm::EDGetTokenT< std::vector< reco::FFTAnyJet< reco::Jet > > > input_jets_token_
const std::string outputLabel
::ecal::reco::ComputationScalarType data_type
static PFTauRenderPlugin instance
std::vector< BaseVolumeHandle * > handles
Implements inheritance relationships for FFTJet jets.
void performPileupSubtraction(Jet &)
#define PILEUP_SUBTRACTION_MASK_ANY
Storage class for jets reconstructed by FFTJet package.
const bool subtractPileup
#define PILEUP_CALCULATION_MASK
const std::vector< std::string > records
const math::XYZTLorentzVector & f_vec() const
const bool writeUncertainties
std::vector< int > sequenceMasks