Mēnsūra
Public Member Functions | List of all members
PECJetMETReader Class Reference

Provides reconstructed jets and MET. More...

#include <PECJetMETReader.hpp>

Inheritance diagram for PECJetMETReader:
JetMETReader ReaderPlugin Plugin

Public Member Functions

 PECJetMETReader (std::string const name="JetMET")
 Creates plugin with the given name. More...
 
 PECJetMETReader (PECJetMETReader const &src) noexcept
 Copy constructor.
 
 PECJetMETReader (PECJetMETReader &&)=default
 Default move constructor.
 
PECJetMETReaderoperator= (PECJetMETReader const &)=delete
 Assignment operator is deleted.
 
virtual void BeginRun (Dataset const &) override
 Sets up reading of a tree containing jets and MET. More...
 
virtual PluginClone () const override
 Creates a newly configured clone. More...
 
void ConfigureLeptonCleaning (std::string const leptonPluginName, double dR)
 Changes parameters of jet-lepton cleaning. More...
 
void ConfigureLeptonCleaning (std::string const leptonPluginName="Leptons")
 A short-cut for the above method that uses jet radius as the minimal allowed separation.
 
virtual double GetJetRadius () const override
 Returns radius parameter used in the jet clustering algorithm. More...
 
void ReadRawMET (bool enable=true)
 Requests reading of raw MET.
 
void SetGenJetReader (std::string const name="GenJetMET")
 Specifies name of the plugin that provides generator-level jets.
 
void SetSelection (double minPt, double maxAbsEta)
 Specifies desired selection on jets.
 
- Public Member Functions inherited from JetMETReader
 JetMETReader (std::string const name="JetMET")
 Creates plugin with the given name. More...
 
 JetMETReader (JetMETReader const &)=default
 Default copy constructor.
 
 JetMETReader (JetMETReader &&)=default
 Default move constructor.
 
JetMETReaderoperator= (JetMETReader const &)=default
 Default assignment operator.
 
virtual ~JetMETReader () noexcept
 Trivial destructor.
 
std::vector< Jet > const & GetJets () const
 Returns collection of corrected jets in the current event.
 
MET const & GetMET () const
 Returns corrected MET in the current event.
 
MET const & GetRawMET () const
 Returns raw MET in the current event.
 
- Public Member Functions inherited from ReaderPlugin
 ReaderPlugin (std::string const &name)
 Constructor.
 
 ReaderPlugin (ReaderPlugin const &)=default
 Default copy constructor.
 
 ReaderPlugin (ReaderPlugin &&)=default
 Default move constructor.
 
ReaderPluginoperator= (ReaderPlugin const &)=default
 Default assignment operator.
 
virtual ~ReaderPlugin ()
 Trivial destructor.
 
- Public Member Functions inherited from Plugin
 Plugin (std::string const &name)
 Constructor.
 
 Plugin (Plugin const &)=default
 Default copy constructor.
 
 Plugin (Plugin &&)=default
 Default move constructor.
 
Pluginoperator= (Plugin const &)=default
 Default assignment operator.
 
virtual ~Plugin ()
 Trivial destructor.
 
virtual void EndRun ()
 Performs necessary actions needed after processing of a dataset is finished. More...
 
Processor const & GetMaster () const
 Returns a reference to the master. More...
 
std::string const & GetName () const
 Returns name of the plugin.
 
EventOutcome ProcessEventToOutcome ()
 Processes a new event from the current dataset. More...
 
void SetMaster (Processor const *processor)
 Provides a pointer to an instance of Processor class that owns the plugin. More...
 

Additional Inherited Members

- Public Types inherited from Plugin
enum  EventOutcome { EventOutcome::Ok, EventOutcome::FilterFailed, EventOutcome::NoEvents }
 Outcome of processing of an event. More...
 
- Protected Member Functions inherited from Plugin
Plugin const * GetDependencyPlugin (std::string const &name) const
 Returns a pointer to a precedent plugin in the path with the given name. More...
 
- Protected Attributes inherited from JetMETReader
std::vector< Jetjets
 Collection of (corrected) jets in the current event.
 
MET met
 Corrected MET in the current event.
 
MET rawMET
 Raw MET in the current event.
 

Detailed Description

Provides reconstructed jets and MET.

This plugin reads reconstructed jets and MET from a PEC file, with the help of a PECInputData plugin, and translates them to standard classes used by the framework. User can specify a kinematic selection to be applied to jets, using method SetSelection. By default, jets are cleaned against tight leptons produced by a LeptonReader with name "Leptons". This behaviour can be configured with method ConfigureLeptonCleaning.

If the name of a plugin that reads generator-level jets is provided with the help of the method SetGenJetReader, angular matching to them is performed. The maximal allowed angular distance for matching is set to half of the radius parameter of reconstructed jets.

Systematic variations in JEC, JER, or "unclustered MET" are applied as requested by a SystService with a default name "Systematics". The service is optional; if it is not defined, variations are not performed.

Constructor & Destructor Documentation

PECJetMETReader::PECJetMETReader ( std::string const  name = "JetMET")

Creates plugin with the given name.

User is encouraged to keep the default name.

Member Function Documentation

void PECJetMETReader::BeginRun ( Dataset const &  )
overridevirtual

Sets up reading of a tree containing jets and MET.

Reimplemented from Plugin.

Reimplemented from Plugin.

Plugin * PECJetMETReader::Clone ( ) const
overridevirtual

Creates a newly configured clone.

Implemented from Plugin.

Implements Plugin.

void PECJetMETReader::ConfigureLeptonCleaning ( std::string const  leptonPluginName,
double  dR 
)

Changes parameters of jet-lepton cleaning.

The first argument is the name of a LeptonReader, which must precede this plugin in the path. The second argument is the minimal allowed separation between a jet and a lepton in the (eta, phi) metric. Each jets is checked against all tight leptons produced by the LeptonReader, and if the separation from a lepton is less than dR, the jet is dropped.

The cleaning is enabled by default, with the lepton reader called "Leptons" and dR equal to the jet radius. It can be disabled by providing an empty name ("") for the lepton reader.

double PECJetMETReader::GetJetRadius ( ) const
overridevirtual

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.

Implements JetMETReader.


The documentation for this class was generated from the following files: