Hi,
I am using the AnalysisManager interface to write some ntuples in hdf5 format. I successfully managed to do so, following example B5, but there are a number of things which are unclear to me:
The ntuples are saved under the directory ‘default_ntuples’. How do I change this name?
From the example (B5) it seems that the only way to write a column of std::vector type is to pass a reference to a std::vector when constructing the tuple and then update this vector at each Event. The update values are automatically written down upon calling AddNtupleRow(). Is this correct? Isn’t there a “FillNTupleXColumn” function to call, instead?
How do I add attributes to my hdf5 file? Is there an interface for doing it through the AnalysisManager?
From the example (B5) it seems that the only way to write a column of std::vector type is to pass a reference to a std::vector when constructing the tuple and then update this vector at each Event. The update values are automatically written down upon calling AddNtupleRow(). Is this correct? Isn’t there a “FillNTupleXColumn” function to call, instead?
Your observation is correct; for efficiency reasons there is no “FillNTupleXVectorColumn” function.