LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred > Struct Template Reference

#include "SimpleFits.h"

Public Member Functions

 EncodeExtractor (VPred &vpred, UPred &upred)
 
template<typename Elem >
auto operator() (Elem elem)
 

Public Attributes

VPred & value_extractor
 value extractor More...
 
UPred & error_extractor
 uncertainty extractor More...
 

Detailed Description

template<typename T>
template<typename VPred, typename UPred = void>
struct lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred >

Wrapper to encode a MeasurementAndUncertainty_t from a value and a error extractor

Definition at line 1284 of file SimpleFits.h.

Constructor & Destructor Documentation

template<typename T>
template<typename VPred , typename UPred = void>
lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred >::EncodeExtractor ( VPred &  vpred,
UPred &  upred 
)
inline

Definition at line 1285 of file SimpleFits.h.

1285  : value_extractor(vpred), error_extractor(upred)
1286  {}
UPred & error_extractor
uncertainty extractor
Definition: SimpleFits.h:1300
VPred & value_extractor
value extractor
Definition: SimpleFits.h:1299

Member Function Documentation

template<typename T>
template<typename VPred , typename UPred = void>
template<typename Elem >
auto lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred >::operator() ( Elem  elem)
inline

Definition at line 1292 of file SimpleFits.h.

1293  {
1294  // use explicit casts to make sure we know what we are doing
1295  return EncodeValue(static_cast<Measurement_t&&>(value_extractor(elem)),
1296  static_cast<Data_t&&>(error_extractor(elem)));
1297  } // operator()
UPred & error_extractor
uncertainty extractor
Definition: SimpleFits.h:1300
VPred & value_extractor
value extractor
Definition: SimpleFits.h:1299
static Data_t EncodeValue(Data_t value)
Definition: SimpleFits.h:1237

Member Data Documentation

template<typename T>
template<typename VPred , typename UPred = void>
UPred& lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred >::error_extractor

uncertainty extractor

Definition at line 1300 of file SimpleFits.h.

template<typename T>
template<typename VPred , typename UPred = void>
VPred& lar::util::GaussianFit< T >::EncodeExtractor< VPred, UPred >::value_extractor

value extractor

Definition at line 1299 of file SimpleFits.h.


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