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

Provides generator-level jets and MET. More...

#include <PECGenJetMETReader.hpp>

Inheritance diagram for PECGenJetMETReader:
GenJetMETReader ReaderPlugin Plugin

Public Member Functions

 PECGenJetMETReader (std::string const name="GenJetMET")
 Creates plugin with the given name. More...
 
 PECGenJetMETReader (PECGenJetMETReader const &src) noexcept
 Copy constructor.
 
 PECGenJetMETReader (PECGenJetMETReader &&)=default
 Default move constructor.
 
PECGenJetMETReaderoperator= (PECGenJetMETReader const &)=delete
 Assignment operator is deleted.
 
virtual ~PECGenJetMETReader () noexcept
 Trivial destructor.
 
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...
 
virtual double GetJetRadius () const override
 Returns radius parameter used in the jet clustering algorithm. More...
 
void SetSelection (double minPt, double maxAbsEta)
 Specifiy desired selection on jets.
 
- Public Member Functions inherited from GenJetMETReader
 GenJetMETReader (std::string const name="GenJetMET")
 Creates plugin with the given name. More...
 
 GenJetMETReader (GenJetMETReader const &)=default
 Default copy constructor.
 
 GenJetMETReader (GenJetMETReader &&)=default
 Default move constructor.
 
GenJetMETReaderoperator= (GenJetMETReader const &)=default
 Default assignment operator.
 
virtual ~GenJetMETReader () noexcept
 Trivial destructor.
 
std::vector< GenJet > const & GetJets () const
 Returns collection of corrected jets in the current event.
 
MET const & GetMET () const
 Returns corrected 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 GenJetMETReader
std::vector< GenJetjets
 Collection of generator-level jets in the current event.
 
MET met
 Corrected MET in the current event.
 

Detailed Description

Provides generator-level jets and MET.

This plugin reads generator-level 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.

Constructor & Destructor Documentation

PECGenJetMETReader::PECGenJetMETReader ( std::string const  name = "GenJetMET")

Creates plugin with the given name.

User is encouraged to keep the default name.

Member Function Documentation

void PECGenJetMETReader::BeginRun ( Dataset const &  )
overridevirtual

Sets up reading of a tree containing jets and MET.

Reimplemented from Plugin.

Reimplemented from Plugin.

Plugin * PECGenJetMETReader::Clone ( ) const
overridevirtual

Creates a newly configured clone.

Implemented from Plugin.

Implements Plugin.

double PECGenJetMETReader::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 GenJetMETReader.

Implements GenJetMETReader.


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