npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::NtNtupleFill< Ntuple > Class Template Reference

#include <NtNtupleFill.hh>

Public Types

typedef Ntuple ntuple_type
 

Public Member Functions

 NtNtupleFill (Ntuple *destination, const std::vector< unsigned long > &columnMap)
 
template<typename T >
void accumulate (const T *rowContents, const unsigned long nCols) const
 

Detailed Description

template<class Ntuple>
class npstat::NtNtupleFill< Ntuple >

This convenience class fills an ntuple using contents of another ntuple

Constructor & Destructor Documentation

◆ NtNtupleFill()

template<class Ntuple >
npstat::NtNtupleFill< Ntuple >::NtNtupleFill ( Ntuple *  destination,
const std::vector< unsigned long > &  columnMap 
)
inline

The constructor assumes that correctness of the ntuple column numbers has already been verified. Column numbers are thus best generated with AbsNtuple methods "columnIndices". Column number columnMap[0] of the source ntuple (whose "cycleOverRows" method will be called) will be mapped into the first column of the destination ntuple, columnMap[1] into the second, etc. The number of "columnMap" elements must be equal either to the number of columns in the destination ntuple or to zero. In the latter case an automatic trivial sequential column mapping will be generated.


The documentation for this class was generated from the following file: