|
| HiL1Subtractor (const edm::ParameterSet &) |
|
| ~HiL1Subtractor () 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 |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
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<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 = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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:
Implementation:
Definition at line 42 of file HiL1Subtractor.h.
Implements edm::EDProducer.
Definition at line 49 of file HiL1Subtractor.cc.
54 auto jets = std::make_unique<reco::GenJetCollection>();
62 int rsize = rs->size();
64 for (
int j = 0;
j < rsize;
j++) {
65 double medianpt = rs->at(
j);
70 int jetsize = h_jets->size();
71 for (
int ijet = 0; ijet < jetsize; ++ijet) {
74 double jet_eta =
jet.eta();
75 double jet_et =
jet.et();
79 if (fabs(jet_eta) <= 3) {
82 if (jet_eta < -2.5 && jet_eta > -3.5)
84 if (jet_eta < -1.5 && jet_eta > -2.5)
86 if (jet_eta < -0.5 && jet_eta > -1.5)
88 if (jet_eta < 0.5 && jet_eta > -0.5)
90 if (jet_eta < 1.5 && jet_eta > 0.5)
92 if (jet_eta < 2.5 && jet_eta > 1.5)
94 if (jet_eta < 3.5 && jet_eta > 2.5)
97 double jet_area =
jet.jetArea();
99 double CorrFactor = 0.;
100 if (
rho * jet_area < jet_et)
101 CorrFactor = 1.0 -
rho * jet_area / jet_et;
102 jet.scaleEnergy(CorrFactor);
103 jet.setPileup(
rho * jet_area);
114 auto jets = std::make_unique<reco::CaloJetCollection>();
122 int rsize = rs->size();
124 for (
int j = 0;
j < rsize;
j++) {
125 double medianpt = rs->at(
j);
131 int jetsize = h_jets->size();
133 for (
int ijet = 0; ijet < jetsize; ++ijet) {
136 double jet_eta =
jet.eta();
137 double jet_et =
jet.et();
141 if (fabs(jet_eta) <= 3) {
144 if (jet_eta < -2.5 && jet_eta > -3.5)
146 if (jet_eta < -1.5 && jet_eta > -2.5)
148 if (jet_eta < -0.5 && jet_eta > -1.5)
150 if (jet_eta < 0.5 && jet_eta > -0.5)
152 if (jet_eta < 1.5 && jet_eta > 0.5)
154 if (jet_eta < 2.5 && jet_eta > 1.5)
156 if (jet_eta < 3.5 && jet_eta > 2.5)
159 double jet_area =
jet.jetArea();
161 double CorrFactor = 0.;
162 if (
rho * jet_area < jet_et)
163 CorrFactor = 1.0 -
rho * jet_area / jet_et;
164 jet.scaleEnergy(CorrFactor);
165 jet.setPileup(
rho * jet_area);
177 auto jets = std::make_unique<reco::PFJetCollection>();
185 int rsize = rs->size();
187 for (
int j = 0;
j < rsize;
j++) {
188 double medianpt = rs->at(
j);
194 int jetsize = h_jets->size();
196 for (
int ijet = 0; ijet < jetsize; ++ijet) {
199 double jet_eta =
jet.eta();
200 double jet_et =
jet.et();
204 if (fabs(jet_eta) <= 3) {
207 if (jet_eta < -2.5 && jet_eta > -3.5)
209 if (jet_eta < -1.5 && jet_eta > -2.5)
211 if (jet_eta < -0.5 && jet_eta > -1.5)
213 if (jet_eta < 0.5 && jet_eta > -0.5)
215 if (jet_eta < 1.5 && jet_eta > 0.5)
217 if (jet_eta < 2.5 && jet_eta > 1.5)
219 if (jet_eta < 3.5 && jet_eta > 2.5)
222 double jet_area =
jet.jetArea();
224 double CorrFactor = 0.;
225 if (
rho * jet_area < jet_et)
226 CorrFactor = 1.0 -
rho * jet_area / jet_et;
227 jet.scaleEnergy(CorrFactor);
228 jet.setPileup(
rho * jet_area);
References caloJetSrc_, genJetSrc_, iEvent, dqmiolumiharvest::j, metsig::jet, singleTopDQM_cfi::jets, jetType_, medianPtkt, eostools::move(), pfJetSrc_, rho, and rhoTag_.