Public Member Functions | Public Attributes | List of all members
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 1315 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 1316 of file SimpleFits.h.

1316  :
1317  value_extractor(vpred), error_extractor(upred) {}
UPred & error_extractor
uncertainty extractor
Definition: SimpleFits.h:1333
VPred & value_extractor
value extractor
Definition: SimpleFits.h:1332

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 1323 of file SimpleFits.h.

1324  {
1325  // use explicit casts to make sure we know what we are doing
1326  return EncodeValue(
1327  static_cast<Measurement_t&&>(value_extractor(elem)),
1328  static_cast<Data_t&&>(error_extractor(elem))
1329  );
1330  } // operator()
UPred & error_extractor
uncertainty extractor
Definition: SimpleFits.h:1333
VPred & value_extractor
value extractor
Definition: SimpleFits.h:1332
static Data_t EncodeValue(Data_t value)
Definition: SimpleFits.h:1265

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 1333 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 1332 of file SimpleFits.h.


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