LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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, FitParameters, 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 243 of file MARLEYTimeGen_module.cc.

Constructor & Destructor Documentation

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

Definition at line 246 of file MARLEYTimeGen_module.cc.

247  : 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 252 of file MARLEYTimeGen_module.cc.

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

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

Mean neutrino energy (MeV)

Definition at line 250 of file MARLEYTimeGen_module.cc.

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

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

Luminosity (erg / s)

Definition at line 254 of file MARLEYTimeGen_module.cc.

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

254 { return fLuminosity; }
double fLuminosity
Luminosity (erg / s)
template<typename It >
static marley::IteratorToMember<It, FitParameters, 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 270 of file MARLEYTimeGen_module.cc.

References fLuminosity.

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

271  {
272  return marley::IteratorToMember<It, FitParameters,
273  double>(it, &FitParameters::fLuminosity);
274  }
double fLuminosity
Luminosity (erg / s)
FitParameters(double Emean, double alpha, double luminosity)
void evgen::MarleyTimeGen::FitParameters::set_Alpha ( double  alpha)
inline

Set the pinching parameter.

Definition at line 259 of file MARLEYTimeGen_module.cc.

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

Set the mean neutrino energy (MeV)

Definition at line 257 of file MARLEYTimeGen_module.cc.

257 { 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 261 of file MARLEYTimeGen_module.cc.

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

Member Data Documentation

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

Pinching parameter.

Definition at line 278 of file MARLEYTimeGen_module.cc.

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

Mean neutrino energy (MeV)

Definition at line 277 of file MARLEYTimeGen_module.cc.

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

Luminosity (erg / s)

Definition at line 279 of file MARLEYTimeGen_module.cc.

Referenced by make_luminosity_iterator().


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