|
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
| PartonJetCorrectionExample (const edm::ParameterSet &fParameters) |
|
virtual | ~PartonJetCorrectionExample () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 & | itemsToGetFromEvent () 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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
PartonJetCorrectionExample::PartonJetCorrectionExample |
( |
const edm::ParameterSet & |
fParameters | ) |
|
|
explicit |
Definition at line 37 of file PartonJetCorrectionExample.cc.
std::string m_bT_CorrectorName
std::string m_qJ_CorrectorName
std::string m_gJ_CorrectorName
std::string m_bJ_CorrectorName
virtual PartonJetCorrectionExample::~PartonJetCorrectionExample |
( |
| ) |
|
|
inlinevirtual |
Definition at line 45 of file PartonJetCorrectionExample.cc.
References reco::JetCorrector::correction(), mitigatedMETSequence_cff::corrector, gather_cfg::cout, DEFINE_FWK_MODULE, reco::LeafCandidate::eta(), edm::Event::getByLabel(), JetCorrector::getJetCorrector(), metsig::jet, fwrapper::jets, m_bJ_CorrectorName, m_bT_CorrectorName, m_gJ_CorrectorName, m_qJ_CorrectorName, mInput, reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
Referenced by ~PartonJetCorrectionExample().
57 for (
unsigned ijet = 0; ijet < jets->size(); ++ijet) {
59 std::cout <<
"PartonJetCorrectionExample::analize-> jet #" << ijet;
61 std::cout <<
": use gJ corrections" << std::endl;
62 corrector = gJetCorrector;
64 else if (ijet%4 == 1) {
65 std::cout <<
": use qJ corrections" << std::endl;
66 corrector = qJetCorrector;
68 else if (ijet%4 == 2) {
69 std::cout <<
": use bJ corrections" << std::endl;
70 corrector = bJetCorrector;
73 std::cout <<
": use bT corrections" << std::endl;
74 corrector = bTopCorrector;
77 double correction = corrector->
correction (jet);
79 std::cout <<
" jet pt/eta/phi: " << jet.
pt() <<
'/' << jet.
eta() <<
'/' << jet.
phi()
80 <<
" -> correction factor: " << correction
81 <<
", corrected pt: " << jet.
pt()*correction
std::string m_bT_CorrectorName
virtual double pt() const final
transverse momentum
Jets made from CaloTowers.
virtual double eta() const final
momentum pseudorapidity
double correction(const LorentzVector &fJet) const
get correction using Jet information only
std::string m_qJ_CorrectorName
virtual double phi() const final
momentum azimuthal angle
std::string m_gJ_CorrectorName
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string m_bJ_CorrectorName
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
std::string PartonJetCorrectionExample::m_bJ_CorrectorName |
|
private |
std::string PartonJetCorrectionExample::m_bT_CorrectorName |
|
private |
std::string PartonJetCorrectionExample::m_gJ_CorrectorName |
|
private |
std::string PartonJetCorrectionExample::m_qJ_CorrectorName |
|
private |