LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 228 of file MARLEYTimeGen_module.cc.

Constructor & Destructor Documentation

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

Definition at line 230 of file MARLEYTimeGen_module.cc.

231  : fEmean(Emean), fAlpha(alpha), fLuminosity(luminosity)
232  {}
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 237 of file MARLEYTimeGen_module.cc.

Referenced by evgen::MarleyTimeGen::source_from_time_fit().

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

Mean neutrino energy (MeV)

Definition at line 235 of file MARLEYTimeGen_module.cc.

Referenced by evgen::MarleyTimeGen::source_from_time_fit().

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

Luminosity (erg / s)

Definition at line 239 of file MARLEYTimeGen_module.cc.

Referenced by evgen::MarleyTimeGen::make_nu_emission_histograms(), and evgen::MarleyTimeGen::reconfigure().

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

References fLuminosity.

Referenced by evgen::MarleyTimeGen::create_truths_time_fit().

256  {
257  return marley::IteratorToMember<It, double>(it, &FitParameters::fLuminosity);
258  }
double fLuminosity
Luminosity (erg / s)
void evgen::MarleyTimeGen::FitParameters::set_Alpha ( double  alpha)
inline

Set the pinching parameter.

Definition at line 244 of file MARLEYTimeGen_module.cc.

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

Set the mean neutrino energy (MeV)

Definition at line 242 of file MARLEYTimeGen_module.cc.

242 { 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 246 of file MARLEYTimeGen_module.cc.

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

Member Data Documentation

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

Pinching parameter.

Definition at line 262 of file MARLEYTimeGen_module.cc.

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

Mean neutrino energy (MeV)

Definition at line 261 of file MARLEYTimeGen_module.cc.

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

Luminosity (erg / s)

Definition at line 263 of file MARLEYTimeGen_module.cc.

Referenced by make_luminosity_iterator().


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