![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
Specialized algorithm for NTuple writing when exactly one entry is written per event and a transformation is used to convert INPUTS to the stored items, aka OUTPUTS. More...
#include </builds/gaudi/Gaudi/GaudiUtils/include/Gaudi/NTuple/Writer.h>


Public Types | |
| using | SimpleWriter_t = SimpleWriter<std::tuple<OUTPUTs...>( const INPUTs&... ), Traits_> |
| Public Types inherited from Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ > | |
| using | Consumer_t = FileHolder<Gaudi::Functional::Consumer<void( const INPUTs&... ), Traits_>> |
Public Member Functions | |
| virtual std::tuple< OUTPUTs... > | transform (const INPUTs &... inputs) const =0 |
| Transform input data to the desired output format. | |
| void | operator() (const INPUTs &... inputs) const override |
| Writer ()=delete | |
| Public Member Functions inherited from Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ > | |
| virtual StatusCode | initialize () override |
| void | fillTree (const std::tuple< OUTPUTs... > &data) const |
| virtual StatusCode | finalize () override |
| SimpleWriter ()=delete | |
| Public Member Functions inherited from Gaudi::NTuple::FileHolder< Gaudi::Functional::Consumer< void(const INPUTs &...), Traits_ > > | |
| TFile * | file () |
Additional Inherited Members | |
| Public Attributes inherited from Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ > | |
| Gaudi::Property< std::string > | m_ntupleTname { this, "NTupleName", this->name(), "Name of the TTree." } |
| Gaudi::Property< std::array< std::string, sizeof...(OUTPUTs)> > | m_branchNames |
Specialized algorithm for NTuple writing when exactly one entry is written per event and a transformation is used to convert INPUTS to the stored items, aka OUTPUTS.
A class inheriting Writer only has to provide the transform method converting INPUTS into OUTPUTS. Write inherits from SimpleWriter and thus has the same Properties
| OUTPUTs | Variadic template parameters representing output data types. |
| INPUTs | Variadic template parameters representing input data types. |
| using Gaudi::NTuple::Writer< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ >::SimpleWriter_t = SimpleWriter<std::tuple<OUTPUTs...>( const INPUTs&... ), Traits_> |
|
delete |
|
inlineoverride |
Definition at line 235 of file Writer.h.
|
pure virtual |
Transform input data to the desired output format.
Must be overridden in derived classes.
| inputs | Variadic inputs of types specified by INPUTs... |