11#include <analysis/VariableManager/Manager.h>
13#include <framework/core/Module.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <framework/pcore/RootMergeable.h>
43 virtual void event()
override;
51 std::vector<std::tuple<std::string, int, float, float>>
m_variables;
53 std::vector<std::tuple<std::string, int, float, float, std::string, int, float, float>>
m_variables_2d;
62 std::shared_ptr<TFile>
m_file{
nullptr};
64 std::vector<std::unique_ptr<StoreObjPtr<RootMergeable<TH1D>>>>
m_hists;
66 std::vector<std::unique_ptr<StoreObjPtr<RootMergeable<TH2D>>>>
m_2d_hists;
Module to calculate variables specified by the user for a given ParticleList and save them into an Hi...
std::string m_directory
Name of the Directory.
virtual void initialize() override
Initialises the module.
std::vector< std::tuple< std::string, int, float, float > > m_variables
List of variables to save.
virtual void event() override
Method called for each event.
VariablesToHistogramModule()
Constructor.
virtual void terminate() override
Write TTree to file, and close file if necessary.
std::vector< Variable::Manager::FunctionPtr > m_functions_2d_1
List of function pointers corresponding to given variables.
std::string m_fileName
Name of ROOT file for output.
std::vector< std::tuple< std::string, int, float, float, std::string, int, float, float > > m_variables_2d
List of pairs of variables to save.
std::vector< Variable::Manager::FunctionPtr > m_functions
List of function pointers corresponding to given variables.
std::string m_particleList
Name of particle list with reconstructed particles.
bool m_ignoreCommandLineOverride
if true, ignore override of filename
std::shared_ptr< TFile > m_file
ROOT file for output.
std::vector< Variable::Manager::FunctionPtr > m_functions_2d_2
List of function pointers corresponding to given variables.
std::vector< std::unique_ptr< StoreObjPtr< RootMergeable< TH2D > > > > m_2d_hists
The ROOT TH2Ds for output.
std::vector< std::unique_ptr< StoreObjPtr< RootMergeable< TH1D > > > > m_hists
The ROOT TH1Ds for output.
std::string m_fileNameSuffix
Suffix to be appended to the output file name.
Abstract base class for different kinds of events.