All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Friends | List of all members
sbn::evwgh::EventWeightParameter Struct Reference

A single parameter to be reweighted. More...

#include <EventWeightParameterSet.h>

Public Member Functions

 EventWeightParameter ()
 
 EventWeightParameter (std::string name, float mean, float width, size_t covIndex=0)
 
 EventWeightParameter (std::string name, float mean, std::vector< float > widths, size_t covIndex=0)
 

Public Attributes

std::string fName
 Parameter name. More...
 
float fMean
 Gaussian mean. More...
 
float fWidth
 Gaussian sigma. More...
 
size_t fCovIndex
 Index in the covariance matrix (if any) More...
 
std::vector< float > fWidths
 for multi sigma modes More...
 

Friends

bool operator< (const EventWeightParameter &lhs, const EventWeightParameter &rhs)
 
bool operator== (const EventWeightParameter &lhs, const EventWeightParameter &rhs)
 

Detailed Description

A single parameter to be reweighted.

Definition at line 18 of file EventWeightParameterSet.h.

Constructor & Destructor Documentation

sbn::evwgh::EventWeightParameter::EventWeightParameter ( )
inline

Default constructor.

Definition at line 20 of file EventWeightParameterSet.h.

20 : fName(""), fMean(0), fWidth(1), fCovIndex(0) {}
std::string fName
Parameter name.
size_t fCovIndex
Index in the covariance matrix (if any)
sbn::evwgh::EventWeightParameter::EventWeightParameter ( std::string  name,
float  mean,
float  width,
size_t  covIndex = 0 
)
inline

Constructor specifying all parameter properties.

Definition at line 23 of file EventWeightParameterSet.h.

24  : fName(name), fMean(mean), fWidth(width), fCovIndex(covIndex) {}
std::string fName
Parameter name.
size_t fCovIndex
Index in the covariance matrix (if any)
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:13
then echo fcl name
sbn::evwgh::EventWeightParameter::EventWeightParameter ( std::string  name,
float  mean,
std::vector< float >  widths,
size_t  covIndex = 0 
)
inline

Definition at line 26 of file EventWeightParameterSet.h.

27  : fName(name), fMean(mean), fWidth(0), fCovIndex(covIndex), fWidths(widths) {}
std::string fName
Parameter name.
size_t fCovIndex
Index in the covariance matrix (if any)
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:13
std::vector< float > fWidths
for multi sigma modes
then echo fcl name

Friends And Related Function Documentation

bool operator< ( const EventWeightParameter lhs,
const EventWeightParameter rhs 
)
friend

Comparison operator (required for use as an std::map key).

Definition at line 30 of file EventWeightParameterSet.h.

31  {
32  return lhs.fName < rhs.fName;
33  }
bool operator== ( const EventWeightParameter lhs,
const EventWeightParameter rhs 
)
friend

Equality operator, testing equality of all members.

Definition at line 36 of file EventWeightParameterSet.h.

37  {
38  return (lhs.fName == rhs.fName &&
39  lhs.fMean == rhs.fMean &&
40  lhs.fWidth == rhs.fWidth &&
41  lhs.fCovIndex == rhs.fCovIndex &&
42  lhs.fWidths == rhs.fWidths);
43  }

Member Data Documentation

size_t sbn::evwgh::EventWeightParameter::fCovIndex

Index in the covariance matrix (if any)

Definition at line 48 of file EventWeightParameterSet.h.

float sbn::evwgh::EventWeightParameter::fMean

Gaussian mean.

Definition at line 46 of file EventWeightParameterSet.h.

std::string sbn::evwgh::EventWeightParameter::fName

Parameter name.

Definition at line 45 of file EventWeightParameterSet.h.

float sbn::evwgh::EventWeightParameter::fWidth

Gaussian sigma.

Definition at line 47 of file EventWeightParameterSet.h.

std::vector<float> sbn::evwgh::EventWeightParameter::fWidths

for multi sigma modes

Definition at line 49 of file EventWeightParameterSet.h.


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