![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
Specialized Algorithm for NTuple writing. More...
#include </builds/gaudi/Gaudi/GaudiUtils/include/Gaudi/NTuple/Writer.h>


Public Types | |
| using | Consumer_t = FileHolder<Gaudi::Functional::Consumer<void( const INPUTs&... ), Traits_>> |
Public Member Functions | |
| 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 () |
Public Attributes | |
| Gaudi::Property< std::string > | m_ntupleTname { this, "NTupleName", this->name(), "Name of the TTree." } |
| Gaudi::Property< std::array< std::string, sizeof...(OUTPUTs)> > | m_branchNames |
Private Attributes | |
| Wrapper< OUTPUTs... > | m_ntuple |
Specialized Algorithm for NTuple writing.
Provides the functionality for handling a single NTuple in an algorithm If several NTuples are used in parallel, one should use the FileHolder and Wrapper classes directly
An algorithm inheriting from this class needs to implement the operator() and call fillTree as many times as needed per event. Note that fillTree is internally synchronized, so calling it is thread safe. The main Properties are :
| OUTPUTs | Variadic template parameters representing output data types. |
| INPUTs | Variadic template parameters representing input data types. |
| using Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ >::Consumer_t = FileHolder<Gaudi::Functional::Consumer<void( const INPUTs&... ), Traits_>> |
|
delete |
|
inline |
Definition at line 186 of file Writer.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Reimplemented from Gaudi::NTuple::FileHolder< Gaudi::Functional::Consumer< void(const INPUTs &...), Traits_ > >.
Definition at line 178 of file Writer.h.
| Gaudi::Property<std::array<std::string, sizeof...( OUTPUTs )> > Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ >::m_branchNames |
|
private |
| Gaudi::Property<std::string> Gaudi::NTuple::SimpleWriter< std::tuple< OUTPUTs... >(const INPUTs &...), Traits_ >::m_ntupleTname { this, "NTupleName", this->name(), "Name of the TTree." } |