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

Filter to perform event selection based on jet multiplicity. More...

#include <JetFilter.hpp>

Inheritance diagram for JetFilter:
AnalysisPlugin Plugin

Public Member Functions

 JetFilter (std::string const name, double minPt, BTagger const &bTagger) noexcept
 Creates filter with the given name and parameters for jet counting. More...
 
 JetFilter (double minPt, BTagger const &bTagger) noexcept
 A short-cut for the above version with default name "JetFilter".
 
 JetFilter (JetFilter const &)=default
 
 JetFilter (JetFilter &&)=default
 Default move constructor.
 
JetFilteroperator= (JetFilter const &)=delete
 Assignment operator is disabled.
 
virtual ~JetFilter () noexcept
 Trivial destructor.
 
void AddSelectionBin (unsigned minJets, unsigned maxJets, unsigned minTags, unsigned maxTags)
 Adds a new selection bin.
 
void AddSelectionBin (unsigned nJets, unsigned nTags)
 Adds a new selection bin. More...
 
virtual void BeginRun (Dataset const &) override
 Performs initialization for a new dataset. More...
 
virtual PluginClone () const override
 Creates a newly configured clone. More...
 
- Public Member Functions inherited from AnalysisPlugin
 AnalysisPlugin (std::string const &name)
 Constructor.
 
 AnalysisPlugin (AnalysisPlugin const &)=default
 Default copy constructor.
 
 AnalysisPlugin (AnalysisPlugin &&)=default
 Default move constructor.
 
AnalysisPluginoperator= (AnalysisPlugin const &)=default
 Default assignment operator.
 
virtual ~AnalysisPlugin ()
 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...
 

Detailed Description

Filter to perform event selection based on jet multiplicity.

The filter counts jets above a user-defined pt threshold. Out of the selected jets, it also counts those that are b-tagged according to the provided algorithm and working point. The event is accepted if these two multiplicities fall into one of 2D regions of acceptance (selection bins)provided by the user.

The filter relies on the presence of a JetMETReader and a BTagWPService. The default names are "JetMET" and "BTagWP" respectively.

Constructor & Destructor Documentation

JetFilter::JetFilter ( std::string const  name,
double  minPt,
BTagger const &  bTagger 
)
noexcept

Creates filter with the given name and parameters for jet counting.

Only jets with transverse momenta larger than the given threshold are considered. Among them, b-tagged jets are defined by the given b tagger.

Member Function Documentation

void JetFilter::AddSelectionBin ( unsigned  nJets,
unsigned  nTags 
)

Adds a new selection bin.

The bin consists of a single point in the multiplicity plane.

void JetFilter::BeginRun ( Dataset const &  )
overridevirtual

Performs initialization for a new dataset.

Reimplemented from Plugin.

Reimplemented from Plugin.

Plugin * JetFilter::Clone ( ) const
overridevirtual

Creates a newly configured clone.

Implemented from Plugin.

Implements Plugin.


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