Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
evgen::MarleyTimeGen::FitParameters Class Reference

Stores parsed fit parameters from a single time bin and neutrino type in a "fit"-format spectrum file. More...

Public Member Functions

 FitParameters (double Emean, double alpha, double luminosity)
 
double Emean () const
 Mean neutrino energy (MeV) More...
 
double Alpha () const
 Pinching parameter (dimensionless) More...
 
double Luminosity () const
 Luminosity (erg / s) More...
 
void set_Emean (double Emean)
 Set the mean neutrino energy (MeV) More...
 
void set_Alpha (double alpha)
 Set the pinching parameter. More...
 
void set_Luminosity (double lum)
 Set the luminosity (erg / s) More...
 

Static Public Member Functions

template<typename It >
static marley::IteratorToMember< It, double > make_luminosity_iterator (It it)
 Converts an iterator that points to a FitParameters object into an iterator that points to that object's fLuminosity member. More...
 

Protected Attributes

double fEmean
 Mean neutrino energy (MeV) More...
 
double fAlpha
 Pinching parameter. More...
 
double fLuminosity
 Luminosity (erg / s) More...
 

Detailed Description

Stores parsed fit parameters from a single time bin and neutrino type in a "fit"-format spectrum file.

Definition at line 240 of file MARLEYTimeGen_module.cc.

Constructor & Destructor Documentation

evgen::MarleyTimeGen::FitParameters::FitParameters ( double  Emean,
double  alpha,
double  luminosity 
)
inline

Definition at line 243 of file MARLEYTimeGen_module.cc.

244  : fEmean(Emean), fAlpha(alpha), fLuminosity(luminosity) {}
double fLuminosity
Luminosity (erg / s)
double fEmean
Mean neutrino energy (MeV)
double alpha
Definition: doAna.cpp:15
double Emean() const
Mean neutrino energy (MeV)

Member Function Documentation

double evgen::MarleyTimeGen::FitParameters::Alpha ( ) const
inline

Pinching parameter (dimensionless)

Definition at line 249 of file MARLEYTimeGen_module.cc.

249 { return fAlpha; }
double evgen::MarleyTimeGen::FitParameters::Emean ( ) const
inline

Mean neutrino energy (MeV)

Definition at line 247 of file MARLEYTimeGen_module.cc.

247 { return fEmean; }
double fEmean
Mean neutrino energy (MeV)
double evgen::MarleyTimeGen::FitParameters::Luminosity ( ) const
inline

Luminosity (erg / s)

Definition at line 251 of file MARLEYTimeGen_module.cc.

251 { return fLuminosity; }
double fLuminosity
Luminosity (erg / s)
template<typename It >
static marley::IteratorToMember<It, double> evgen::MarleyTimeGen::FitParameters::make_luminosity_iterator ( It  it)
inlinestatic

Converts an iterator that points to a FitParameters object into an iterator that points to that object's fLuminosity member.

This function helps us to be able to sample time bins with a std::discrete_distribution using the bin luminosities without redundnant storage.

Definition at line 267 of file MARLEYTimeGen_module.cc.

268  {
269  return marley::IteratorToMember<It, double>(
271  }
double fLuminosity
Luminosity (erg / s)
void evgen::MarleyTimeGen::FitParameters::set_Alpha ( double  alpha)
inline

Set the pinching parameter.

Definition at line 256 of file MARLEYTimeGen_module.cc.

256 { fAlpha = alpha; }
double alpha
Definition: doAna.cpp:15
void evgen::MarleyTimeGen::FitParameters::set_Emean ( double  Emean)
inline

Set the mean neutrino energy (MeV)

Definition at line 254 of file MARLEYTimeGen_module.cc.

254 { fEmean = Emean; }
double fEmean
Mean neutrino energy (MeV)
double Emean() const
Mean neutrino energy (MeV)
void evgen::MarleyTimeGen::FitParameters::set_Luminosity ( double  lum)
inline

Set the luminosity (erg / s)

Definition at line 258 of file MARLEYTimeGen_module.cc.

258 { fLuminosity = lum; }
double fLuminosity
Luminosity (erg / s)

Member Data Documentation

double evgen::MarleyTimeGen::FitParameters::fAlpha
protected

Pinching parameter.

Definition at line 275 of file MARLEYTimeGen_module.cc.

double evgen::MarleyTimeGen::FitParameters::fEmean
protected

Mean neutrino energy (MeV)

Definition at line 274 of file MARLEYTimeGen_module.cc.

double evgen::MarleyTimeGen::FitParameters::fLuminosity
protected

Luminosity (erg / s)

Definition at line 276 of file MARLEYTimeGen_module.cc.


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