Mēnsūra
|
Filter on MET or MtW. More...
#include <MetFilter.hpp>
Public Types | |
enum | Mode { MET, MtW } |
Supported filtering modes. | |
![]() | |
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. | |
MetFilter & | operator= (MetFilter const &)=delete |
Assignment operator is deleted. | |
virtual | ~MetFilter () |
Trivial destructor. | |
void | BeginRun (Dataset const &) |
Notifies this that a dataset has been opened. More... | |
Plugin * | Clone () const |
Constructs a newly-initialised copy. More... | |
![]() | |
AnalysisPlugin (std::string const &name) | |
Constructor. | |
AnalysisPlugin (AnalysisPlugin const &)=default | |
Default copy constructor. | |
AnalysisPlugin (AnalysisPlugin &&)=default | |
Default move constructor. | |
AnalysisPlugin & | operator= (AnalysisPlugin const &)=default |
Default assignment operator. | |
virtual | ~AnalysisPlugin () |
Trivial destructor. | |
![]() | |
Plugin (std::string const &name) | |
Constructor. | |
Plugin (Plugin const &)=default | |
Default copy constructor. | |
Plugin (Plugin &&)=default | |
Default move constructor. | |
Plugin & | operator= (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 | |
![]() | |
Plugin const * | GetDependencyPlugin (std::string const &name) const |
Returns a pointer to a precedent plugin in the path with the given name. More... | |
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.
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.
|
virtual |
Notifies this that a dataset has been opened.
Only updates the pointer to the reader plugin.
Reimplemented from Plugin.
|
virtual |
Constructs a newly-initialised copy.
Consult documentation of the overriden method for details.
Implements Plugin.