|
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 (const std::string &iProcessName, std::vector< const char * > &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.
double correction(const LorentzVector &fJet) const
get correction using Jet information only
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
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 phi() const
momentum azimuthal angle
std::string mCCorrectorName
std::string FlavorJetCorrectionExample::mBCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mCCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mUDSCorrectorName |
|
private |