Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Add an accessor to jet radius parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-popov committed Apr 6, 2016
1 parent d076b32 commit 52d8e7c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
10 changes: 10 additions & 0 deletions include/PECFwk/PECReader/PECGenJetMETReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
12 changes: 11 additions & 1 deletion include/PECFwk/PECReader/PECJetMETReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down
3 changes: 3 additions & 0 deletions include/PECFwk/core/GenJetMETReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class GenJetMETReader: public ReaderPlugin
/// Returns collection of corrected jets in the current event
std::vector<GenJet> 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;

Expand Down
3 changes: 3 additions & 0 deletions include/PECFwk/core/JetMETReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class JetMETReader: public ReaderPlugin
/// Returns collection of corrected jets in the current event
std::vector<Jet> 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;

Expand Down
6 changes: 6 additions & 0 deletions modules/PECReader/src/PECGenJetMETReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ Plugin *PECGenJetMETReader::Clone() const
}


double PECGenJetMETReader::GetJetRadius() const
{
return 0.4;
}


void PECGenJetMETReader::SetSelection(double minPt_, double maxAbsEta_)
{
minPt = minPt_;
Expand Down
6 changes: 6 additions & 0 deletions modules/PECReader/src/PECJetMETReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ Plugin *PECJetMETReader::Clone() const
}


double PECJetMETReader::GetJetRadius() const
{
return 0.4;
}


void PECJetMETReader::SetSelection(double minPt_, double maxAbsEta_)
{
minPt = minPt_;
Expand Down

0 comments on commit 52d8e7c

Please sign in to comment.