|
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 () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
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 |
Implements edm::EDAnalyzer.
Definition at line 45 of file PartonJetCorrectionExample.cc.
References JetCorrector::correction(), gather_cfg::cout, 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().
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
Jets made from CaloTowers.
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
std::string m_qJ_CorrectorName
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
std::string m_gJ_CorrectorName
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
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 ...
virtual float pt() const GCC11_FINAL
transverse momentum
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 |