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

#include <MultivariateFunctorScanner.hh>

Public Member Functions

 MultivariateFunctorScanner (const AbsMultivariateFunctor &fcn, const std::vector< IndexMapper > &maps)
 
double operator() (const unsigned *index, const unsigned indexLen) const
 

Detailed Description

template<class IndexMapper>
class npstat::MultivariateFunctorScanner< IndexMapper >

This class adapts an object derived from AbsMultivariateFunctor so that it can be used with ArrayND method "functorFill" and such

Constructor & Destructor Documentation

◆ MultivariateFunctorScanner()

template<class IndexMapper >
npstat::MultivariateFunctorScanner< IndexMapper >::MultivariateFunctorScanner ( const AbsMultivariateFunctor fcn,
const std::vector< IndexMapper > &  maps 
)
inline

A mapper for each coordinate in the "maps" argument will convert the array index into a proper argument for the scanned density.

This functor will NOT make copies of either "fcn" or "maps" parameters. These parameters will be used by reference only (aliased). It is up to the user of this class to ensure proper lifetime of these objects.

Member Function Documentation

◆ operator()()

template<class IndexMapper >
double npstat::MultivariateFunctorScanner< IndexMapper >::operator() ( const unsigned *  index,
const unsigned  indexLen 
) const
inline

Calculate the functor value for the given array indices


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