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, analyzePatCleaning_cfg::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 double eta() const
momentum pseudorapidity
std::string m_gJ_CorrectorName
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string m_bJ_CorrectorName
virtual double pt() const
transverse momentum
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 double phi() const
momentum azimuthal angle
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 |