|
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 () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
FlavorJetCorrectionExample::FlavorJetCorrectionExample |
( |
const edm::ParameterSet & |
fParameters | ) |
|
|
explicit |
virtual FlavorJetCorrectionExample::~FlavorJetCorrectionExample |
( |
| ) |
|
|
inlinevirtual |
Definition at line 43 of file FlavorJetCorrectionExample.cc.
References reco::JetCorrector::correction(), mitigatedMETSequence_cff::corrector, gather_cfg::cout, DEFINE_FWK_MODULE, reco::LeafCandidate::eta(), edm::Event::getByLabel(), JetCorrector::getJetCorrector(), metsig::jet, fwrapper::jets, mBCorrectorName, mCCorrectorName, mInput, mUDSCorrectorName, reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
Referenced by ~FlavorJetCorrectionExample().
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
virtual double pt() const final
transverse momentum
Jets made from CaloTowers.
virtual double eta() const final
momentum pseudorapidity
double correction(const LorentzVector &fJet) const
get correction using Jet information only
virtual double phi() const final
momentum azimuthal angle
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
std::string mCCorrectorName
std::string FlavorJetCorrectionExample::mBCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mCCorrectorName |
|
private |
std::string FlavorJetCorrectionExample::mUDSCorrectorName |
|
private |