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

A plugin that evaluates and stores basic kinematical variables. More...

#include <BasicKinematicsPlugin.hpp>

Inheritance diagram for BasicKinematicsPlugin:
AnalysisPlugin Plugin

Public Member Functions

 BasicKinematicsPlugin (std::string const name="BasicKinematics")
 Constructor.
 
 BasicKinematicsPlugin (BasicKinematicsPlugin &&)=default
 Default move constructor.
 
BasicKinematicsPluginoperator= (BasicKinematicsPlugin const &)=delete
 Assignment operator is deleted.
 
virtual ~BasicKinematicsPlugin () noexcept
 Trivial destructor.
 
virtual void BeginRun (Dataset const &dataset) override
 Creates a new output file and sets up a tree. 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

A plugin that evaluates and stores basic kinematical variables.

This plugin represents an example of producing custom trees with some representative observables. It uses a TFileService with a default name "TFileService" to create the output tree. Inputs are access with dedicated readers with default names "Leptons", "JetMET", and "PileUp". In case of simulation, combined event weights are read from a WeightCollector with a default name "EventWeights".

Member Function Documentation

void BasicKinematicsPlugin::BeginRun ( Dataset const &  dataset)
overridevirtual

Creates a new output file and sets up a tree.

Reimplemented from Plugin.

Reimplemented from Plugin.

Plugin * BasicKinematicsPlugin::Clone ( ) const
overridevirtual

Creates a newly configured clone.

Implemented from Plugin.

Implements Plugin.


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