18 :
SimpleWriter( name, svcLoc, { KeyValue(
"InputLocation", {
"MyVector" } ) } ) {}
21 for (
size_t index = 0;
auto& v :
vector ) { fillTree( { v, index++, std::rand() % 20 } ); }
29 :
Writer( name, svcLoc, { KeyValue(
"InputLocation", {
"MyVector" } ) } ) {}
31 std::tuple<int, size_t, float>
transform(
const std::vector<int>&
vector )
const override {
32 return std::make_tuple( std::accumulate(
vector.begin(),
vector.end(), 0 ),
vector.size(), std::rand() % 20 );
#define DECLARE_COMPONENT(type)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Base template for NTuple::Writer.
NTupleSimpleWriter_V(const std::string &name, ISvcLocator *svcLoc)
void operator()(std::vector< int > const &vector) const override
std::tuple< int, size_t, float > transform(const std::vector< int > &vector) const override
NTupleWriter_V(const std::string &name, ISvcLocator *svcLoc)