|
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
| FlavorJetCorrectionExample (const edm::ParameterSet &fParameters) |
|
virtual | ~FlavorJetCorrectionExample () |
|
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 () |
|
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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
FlavorJetCorrectionExample::FlavorJetCorrectionExample |
( |
const edm::ParameterSet & |
fParameters | ) |
|
|
explicit |
virtual FlavorJetCorrectionExample::~FlavorJetCorrectionExample |
( |
| ) |
|
|
inlinevirtual |
Implements edm::EDAnalyzer.
Definition at line 43 of file FlavorJetCorrectionExample.cc.
References reco::JetCorrector::correction(), mvaPFMET_cff::corrector, gather_cfg::cout, reco::LeafCandidate::eta(), edm::Event::getByLabel(), JetCorrector::getJetCorrector(), metsig::jet, fwrapper::jets, mBCorrectorName, mCCorrectorName, mInput, mUDSCorrectorName, reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
54 for (
unsigned ijet = 0; ijet < jets->size(); ++ijet) {
56 std::cout <<
"FlavorJetCorrectionExample::analize-> jet #" << ijet;
58 std::cout <<
": use USD quark corrections" << std::endl;
59 corrector = udsJetCorrector;
61 else if (ijet%3 == 1) {
62 std::cout <<
": use c quark corrections" << std::endl;
63 corrector = cQuarkJetCorrector;
66 std::cout <<
": use b quark corrections" << std::endl;
67 corrector = bQuarkJetCorrector;
70 double correction = corrector->
correction (jet);
72 std::cout <<
" jet pt/eta/phi: " << jet.
pt() <<
'/' << jet.
eta() <<
'/' << jet.
phi()
73 <<
" -> correction factor: " << correction
74 <<
", corrected pt: " << jet.
pt()*correction
Jets made from CaloTowers.
virtual double phi() const final
momentum azimuthal angle
double correction(const LorentzVector &fJet) const
get correction using Jet information only
std::string mUDSCorrectorName
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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 mBCorrectorName
virtual double eta() const final
momentum pseudorapidity
std::string mCCorrectorName
virtual double pt() const final
transverse momentum
std::string FlavorJetCorrectionExample::mBCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mCCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mUDSCorrectorName |
|
private |