diff --git a/include/PECFwk/PECReader/PECGenJetMETReader.hpp b/include/PECFwk/PECReader/PECGenJetMETReader.hpp index 28db455..946d370 100644 --- a/include/PECFwk/PECReader/PECGenJetMETReader.hpp +++ b/include/PECFwk/PECReader/PECGenJetMETReader.hpp @@ -54,6 +54,16 @@ class PECGenJetMETReader: public GenJetMETReader */ virtual Plugin *Clone() const override; + /** + * \brief Returns radius parameter used in the jet clustering algorithm + * + * The radius is hard-coded in the current implementation, but it will be made configurable in + * future if jets with larger radii are added. + * + * Implemented from GenJetMETReader. + */ + virtual double GetJetRadius() const override; + /// Specifiy desired selection on jets void SetSelection(double minPt, double maxAbsEta); diff --git a/include/PECFwk/PECReader/PECJetMETReader.hpp b/include/PECFwk/PECReader/PECJetMETReader.hpp index 5f9b27b..5d338a2 100644 --- a/include/PECFwk/PECReader/PECJetMETReader.hpp +++ b/include/PECFwk/PECReader/PECJetMETReader.hpp @@ -55,7 +55,7 @@ class PECJetMETReader: public JetMETReader * LeptonReader, and if the separation from a lepton is less than dR, the jet is dropped. * * The cleaning is enabled by default, with parameters specified in the prototype. It can be - * disabled by providing an emptry name ("") for the LeptonReader. + * disabled by providing an empty name ("") for the LeptonReader. */ void ConfigureLeptonCleaning(std::string const leptonPluginName = "Leptons", double dR = 0.3); @@ -73,6 +73,16 @@ class PECJetMETReader: public JetMETReader */ virtual Plugin *Clone() const override; + /** + * \brief Returns radius parameter used in the jet clustering algorithm + * + * The radius is hard-coded in the current implementation, but it will be made configurable in + * future if jets with larger radii are added. + * + * Implemented from JetMETReader. + */ + virtual double GetJetRadius() const override; + /// Specifiy desired selection on jets void SetSelection(double minPt, double maxAbsEta); diff --git a/include/PECFwk/core/GenJetMETReader.hpp b/include/PECFwk/core/GenJetMETReader.hpp index 7348d15..7591dc9 100644 --- a/include/PECFwk/core/GenJetMETReader.hpp +++ b/include/PECFwk/core/GenJetMETReader.hpp @@ -38,6 +38,9 @@ class GenJetMETReader: public ReaderPlugin /// Returns collection of corrected jets in the current event std::vector const &GetJets() const; + /// Returns radius parameter used in the jet clustering algorithm + virtual double GetJetRadius() const = 0; + /// Returns corrected MET in the current event MET const &GetMET() const; diff --git a/include/PECFwk/core/JetMETReader.hpp b/include/PECFwk/core/JetMETReader.hpp index 454e504..702faaf 100644 --- a/include/PECFwk/core/JetMETReader.hpp +++ b/include/PECFwk/core/JetMETReader.hpp @@ -39,6 +39,9 @@ class JetMETReader: public ReaderPlugin /// Returns collection of corrected jets in the current event std::vector const &GetJets() const; + /// Returns radius parameter used in the jet clustering algorithm + virtual double GetJetRadius() const = 0; + /// Returns corrected MET in the current event MET const &GetMET() const; diff --git a/modules/PECReader/src/PECGenJetMETReader.cpp b/modules/PECReader/src/PECGenJetMETReader.cpp index 863afea..dbdff49 100644 --- a/modules/PECReader/src/PECGenJetMETReader.cpp +++ b/modules/PECReader/src/PECGenJetMETReader.cpp @@ -56,6 +56,12 @@ Plugin *PECGenJetMETReader::Clone() const } +double PECGenJetMETReader::GetJetRadius() const +{ + return 0.4; +} + + void PECGenJetMETReader::SetSelection(double minPt_, double maxAbsEta_) { minPt = minPt_; diff --git a/modules/PECReader/src/PECJetMETReader.cpp b/modules/PECReader/src/PECJetMETReader.cpp index a1429fc..78d5a2b 100644 --- a/modules/PECReader/src/PECJetMETReader.cpp +++ b/modules/PECReader/src/PECJetMETReader.cpp @@ -74,6 +74,12 @@ Plugin *PECJetMETReader::Clone() const } +double PECJetMETReader::GetJetRadius() const +{ + return 0.4; +} + + void PECJetMETReader::SetSelection(double minPt_, double maxAbsEta_) { minPt = minPt_;