|
| JetResolutionDemo (const edm::ParameterSet &) |
|
| ~JetResolutionDemo () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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 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) |
|
Definition at line 25 of file JetResolutionDemo.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 73 of file JetResolutionDemo.cc.
References trigObjTnPSource_cfi::bins, gather_cfg::cout, DOWN, EnergyCorrector::etas, fs, JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), JME::JetResolutionScaleFactor::getScaleFactor(), mps_fire::i, iEvent, metsig::jet, JME::JetEta, JME::JetPt, PDWG_EXODelayedJetMET_cff::jets, m_debug, m_jets_token, m_res_vs_eta, m_resolutions_file, m_resolutions_token, m_rho_token, m_scale_factors_file, m_scale_factors_token, m_use_conddb, TFileService::make(), alignCSCRings::r, diffTwoXMLs::r2, AlCaHarvesting_cff::record, L1TObjectsTimingClient_cff::resolution, rho, JME::Rho, JME::JetParameters::set(), JME::JetParameters::setJetEta(), JME::JetParameters::setJetPt(), JME::JetParameters::setRho(), and UP.
105 const std::vector<JME::Binning>&
bins =
resolution.getResolutionObject()->getDefinition().getBins();
109 const std::vector<JME::JetResolutionObject::Record> records =
resolution.getResolutionObject()->getRecords();
112 std::vector<float>
etas;
113 for (
const auto&
record : records) {
122 std::vector<float>
res;
123 for (std::size_t
i = 0;
i < 40;
i++) {
124 res.push_back(
i * 0.005);
131 for (
const auto&
jet : *
jets) {
133 std::cout <<
"New jet; pt=" <<
jet.pt() <<
" eta=" <<
jet.eta() <<
" phi=" <<
jet.phi()
134 <<
" e=" <<
jet.energy() <<
" rho=" << *
rho << std::endl;
178 std::cout <<
"Resolution with parameters_1: " <<
r << std::endl;
179 std::cout <<
"Resolution with parameters_2: " <<
resolution.getResolution(parameters_2) << std::endl;
180 std::cout <<
"Resolution with parameters_3: " <<
resolution.getResolution(parameters_3) << std::endl;
181 std::cout <<
"Resolution with parameters_4: " <<
resolution.getResolution(parameters_4) << std::endl;
182 std::cout <<
"Resolution with parameters_5: " <<
resolution.getResolution(parameters_5) << std::endl;
187 std::cout <<
"Resolution using shortcut : " <<
r2 << std::endl;
202 std::cout <<
"Scale factors (Nominal / Up / Down) : " << sf <<
" / " << sf_up <<
" / " << sf_down << std::endl;
std::string m_scale_factors_file
static const JetResolutionScaleFactor get(const edm::EventSetup &, const Token &)
JetParameters & setJetEta(float eta)
JetParameters & setRho(float rho)
JetParameters & set(const Binning &bin, float value)
JME::JetResolution::Token m_resolutions_token
edm::EDGetTokenT< double > m_rho_token
float getScaleFactor(const JetParameters ¶meters, Variation variation=Variation::NOMINAL, std::string uncertaintySource="") const
JME::JetResolutionScaleFactor::Token m_scale_factors_token
std::string m_resolutions_file
edm::EDGetTokenT< std::vector< pat::Jet > > m_jets_token
T * make(const Args &...args) const
make new ROOT object
JetParameters & setJetPt(float pt)
edm::Service< TFileService > fs
static const JetResolution get(const edm::EventSetup &, const Token &)