All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 241 of file MARLEYTimeGen_module.cc.

Constructor & Destructor Documentation

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

Definition at line 244 of file MARLEYTimeGen_module.cc.

245  : fEmean(Emean), fAlpha(alpha), fLuminosity(luminosity) {}
double fLuminosity
Luminosity (erg / s)
double fEmean
Mean neutrino energy (MeV)
double Emean() const
Mean neutrino energy (MeV)

Member Function Documentation

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

Pinching parameter (dimensionless)

Definition at line 250 of file MARLEYTimeGen_module.cc.

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

Mean neutrino energy (MeV)

Definition at line 248 of file MARLEYTimeGen_module.cc.

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

Luminosity (erg / s)

Definition at line 252 of file MARLEYTimeGen_module.cc.

252 { 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 268 of file MARLEYTimeGen_module.cc.

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

Set the pinching parameter.

Definition at line 257 of file MARLEYTimeGen_module.cc.

257 { fAlpha = alpha; }
void evgen::MarleyTimeGen::FitParameters::set_Emean ( double  Emean)
inline

Set the mean neutrino energy (MeV)

Definition at line 255 of file MARLEYTimeGen_module.cc.

255 { 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 259 of file MARLEYTimeGen_module.cc.

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

Member Data Documentation

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

Pinching parameter.

Definition at line 276 of file MARLEYTimeGen_module.cc.

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

Mean neutrino energy (MeV)

Definition at line 275 of file MARLEYTimeGen_module.cc.

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

Luminosity (erg / s)

Definition at line 277 of file MARLEYTimeGen_module.cc.


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