|
| CaloJetMETcorrInputProducerT (const edm::ParameterSet &cfg) |
|
| ~CaloJetMETcorrInputProducerT () override |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () 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 EDProducerBase | 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) |
|
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) |
|
template<typename T, typename Textractor>
class CaloJetMETcorrInputProducerT< T, Textractor >
Definition at line 56 of file CaloJetMETcorrInputProducerT.h.
template<typename T , typename Textractor >
Definition at line 58 of file CaloJetMETcorrInputProducerT.h.
62 if (
cfg.exists(
"offsetCorrLabel")) {
69 jetCorrEtaMax_ = (
cfg.exists(
"jetCorrEtaMax")) ?
cfg.getParameter<
double>(
"jetCorrEtaMax") : 9.9;
78 if (
cfg.exists(
"srcMET")) {
83 produces<CorrMETData>(
"type1");
84 produces<CorrMETData>(
"type2");
85 produces<CorrMETData>(
"offset");
References looper::cfg, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrEtaMax_, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrLabel_, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrToken_, CaloJetMETcorrInputProducerT< T, Textractor >::metToken_, CaloJetMETcorrInputProducerT< T, Textractor >::offsetCorrLabel_, CaloJetMETcorrInputProducerT< T, Textractor >::offsetCorrToken_, CaloJetMETcorrInputProducerT< T, Textractor >::skipEM_, CaloJetMETcorrInputProducerT< T, Textractor >::skipEMfractionThreshold_, CaloJetMETcorrInputProducerT< T, Textractor >::srcMET_, CaloJetMETcorrInputProducerT< T, Textractor >::token_, and CaloJetMETcorrInputProducerT< T, Textractor >::type1JetPtThreshold_.
template<typename T , typename Textractor >
|
inlineoverrideprivatevirtual |
Implements edm::global::EDProducerBase.
Definition at line 90 of file CaloJetMETcorrInputProducerT.h.
91 std::unique_ptr<CorrMETData> type1Correction(
new CorrMETData());
92 std::unique_ptr<CorrMETData> unclEnergySum(
new CorrMETData());
93 std::unique_ptr<CorrMETData> offsetEnergySum(
new CorrMETData());
106 if (
met->size() != 1)
108 <<
"Failed to find unique MET in the event, src = " <<
srcMET_.
label() <<
" !!\n";
118 unclEnergySum->mex = -
met->front().px();
119 unclEnergySum->mey = -
met->front().py();
120 unclEnergySum->sumet =
met->front().sumEt();
123 int numJets =
jets->size();
124 for (
int jetIndex = 0; jetIndex < numJets; ++jetIndex) {
125 const T& rawJet =
jets->at(jetIndex);
128 checkInputType(rawJet);
134 if (checkInputType.isPatJet(rawJet))
140 unclEnergySum->mex -= rawJetP4.px();
141 unclEnergySum->mey -= rawJetP4.py();
142 unclEnergySum->sumet -= rawJetP4.Et();
151 if (checkInputType.isPatJet(rawJet))
156 offsetEnergySum->mex += (rawJetP4.px() - rawJetP4offsetCorr.px());
157 offsetEnergySum->mey += (rawJetP4.py() - rawJetP4offsetCorr.py());
158 offsetEnergySum->sumet += (rawJetP4.Et() - rawJetP4offsetCorr.Et());
163 type1Correction->mex -= (corrJetP4.px() - rawJetP4offsetCorr.px());
164 type1Correction->mey -= (corrJetP4.py() - rawJetP4offsetCorr.py());
165 type1Correction->sumet += (corrJetP4.Et() - rawJetP4offsetCorr.Et());
References edm::Event::getByToken(), CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrEtaMax_, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrExtractor_, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrLabel_, CaloJetMETcorrInputProducerT< T, Textractor >::jetCorrToken_, singleTopDQM_cfi::jets, edm::InputTag::label(), BTaggingMonitor_cfi::met, CaloJetMETcorrInputProducerT< T, Textractor >::metToken_, eostools::move(), CaloJetMETcorrInputProducerT< T, Textractor >::offsetCorrLabel_, CaloJetMETcorrInputProducerT< T, Textractor >::offsetCorrToken_, edm::Handle< T >::product(), edm::Event::put(), CaloJetMETcorrInputProducerT< T, Textractor >::skipEM_, CaloJetMETcorrInputProducerT< T, Textractor >::skipEMfractionThreshold_, CaloJetMETcorrInputProducerT< T, Textractor >::srcMET_, CaloJetMETcorrInputProducerT< T, Textractor >::token_, and CaloJetMETcorrInputProducerT< T, Textractor >::type1JetPtThreshold_.