Mēnsūra
|
Constructs collections of analysis-level electrons and muons. More...
#include <PECLeptonReader.hpp>
Public Member Functions | |
PECLeptonReader (std::string const name="Leptons") | |
Creates plugin with the given name. More... | |
PECLeptonReader (PECLeptonReader const &src) noexcept | |
Copy constructor. | |
PECLeptonReader (PECLeptonReader &&)=default | |
Default move constructor. | |
PECLeptonReader & | operator= (PECLeptonReader const &)=delete |
Assignment operator is deleted. | |
virtual | ~PECLeptonReader () noexcept |
Trivial destructor. | |
virtual void | BeginRun (Dataset const &) override |
Sets up reading of trees with electrons and muons. More... | |
virtual Plugin * | Clone () const override |
Creates a newly configured clone. More... | |
![]() | |
LeptonReader (std::string const name="Leptons") | |
Creates plugin with the given name. More... | |
LeptonReader (LeptonReader const &)=default | |
Default copy constructor. | |
LeptonReader (LeptonReader &&)=default | |
Default move constructor. | |
LeptonReader & | operator= (LeptonReader const &)=default |
Default assignment operator. | |
virtual | ~LeptonReader () |
Trivial destructor. | |
virtual std::vector< Lepton > const & | GetLeptons () const |
Returns collection of tight leptons in the current event. | |
virtual std::vector< Lepton > const & | GetLooseLeptons () const |
Returns collection of loose leptons in the current event. More... | |
![]() | |
ReaderPlugin (std::string const &name) | |
Constructor. | |
ReaderPlugin (ReaderPlugin const &)=default | |
Default copy constructor. | |
ReaderPlugin (ReaderPlugin &&)=default | |
Default move constructor. | |
ReaderPlugin & | operator= (ReaderPlugin const &)=default |
Default assignment operator. | |
virtual | ~ReaderPlugin () |
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 | |
![]() | |
enum | EventOutcome { EventOutcome::Ok, EventOutcome::FilterFailed, EventOutcome::NoEvents } |
Outcome of processing of an event. More... | |
![]() | |
Plugin const * | GetDependencyPlugin (std::string const &name) const |
Returns a pointer to a precedent plugin in the path with the given name. More... | |
![]() | |
std::vector< Lepton > | leptons |
Collection of tight leptons in the current event. | |
std::vector< Lepton > | looseLeptons |
Collection of looose leptons in the current event. | |
Constructs collections of analysis-level electrons and muons.
This plugin reads collections of electrons and muons from a PEC file (with the help of a PECInputData plugin), translates them to the standard class Lepton used by the framework, and applies required filtering to construct collections of loose and tight leptons.
PECLeptonReader::PECLeptonReader | ( | std::string const | name = "Leptons" | ) |
Creates plugin with the given name.
User is encouraged to keep the default name.
|
overridevirtual |
|
overridevirtual |