|
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 |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) 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 float pt() const
transverse momentum
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
virtual float phi() const
momentum azimuthal angle
std::string m_qJ_CorrectorName
std::string m_gJ_CorrectorName
virtual float eta() const
momentum pseudorapidity
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 |