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

Filter on MET or MtW. More...

#include <MetFilter.hpp>

Inheritance diagram for MetFilter:
AnalysisPlugin Plugin

Public Types

enum  Mode { MET, MtW }
 Supported filtering modes.
 
- Public Types inherited from Plugin
enum  EventOutcome { EventOutcome::Ok, EventOutcome::FilterFailed, EventOutcome::NoEvents }
 Outcome of processing of an event. More...
 

Public Member Functions

 MetFilter (std::string const &name, Mode mode, double threshold)
 Constructor.
 
 MetFilter (Mode mode, double threshold)
 Constructor. More...
 
 MetFilter (double threshold)
 Constructor. More...
 
 MetFilter (MetFilter const &)=default
 Default copy constructor.
 
 MetFilter (MetFilter &&)=default
 Default move constructor.
 
MetFilteroperator= (MetFilter const &)=delete
 Assignment operator is deleted.
 
virtual ~MetFilter ()
 Trivial destructor.
 
void BeginRun (Dataset const &)
 Notifies this that a dataset has been opened. More...
 
PluginClone () const
 Constructs a newly-initialised copy. 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

- 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 on MET or MtW.

Depending on configuration, the plugin selects events in which value of MET or MtW is larger that the given threshold. The filter relies on the presence of a JetMETReader and (only for MtW) a LeptonReader with default names "JetMET" and "Leptons". The value of MtW is evaluated using the leading tight lepton; if the event does not contain any lepton, it is rejected.

Constructor & Destructor Documentation

MetFilter::MetFilter ( Mode  mode,
double  threshold 
)

Constructor.

A short-cut for the above version with the default plugin name ("MetFilter").

MetFilter::MetFilter ( double  threshold)

Constructor.

A short-cut with a default name ("MetFilter") and selection on MET.

Member Function Documentation

void MetFilter::BeginRun ( Dataset const &  )
virtual

Notifies this that a dataset has been opened.

Only updates the pointer to the reader plugin.

Reimplemented from Plugin.

Plugin * MetFilter::Clone ( ) const
virtual

Constructs a newly-initialised copy.

Consult documentation of the overriden method for details.

Implements Plugin.


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