LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Stores fitting parameters for all neutrino types from a single time bin in a "fit"-format spectrum file. More...
Public Member Functions | |
TimeFit (double time, double Emean_nue, double alpha_nue, double lum_nue, double Emean_nuebar, double alpha_nuebar, double lum_nuebar, double Emean_nux, double alpha_nux, double lum_nux) | |
double | Time () const |
Returns the low edge (in s) of the time bin that uses these fit parameters. More... | |
const FitParameters & | GetFitParameters (int pdg_code) const |
Retrieves fit parameters for a specific neutrino type for this time bin. More... | |
Static Public Member Functions | |
template<typename It > | |
static marley::IteratorToMember< It, TimeFit, FitParameters > | make_FitParameters_iterator (int pdg_code, It iterator) |
Converts an iterator that points to a TimeFit object into an iterator that points to the appropriate (based on the neutrino PDG code) FitParameters member owned by the TimeFit object. More... | |
Static Protected Member Functions | |
static FitParameters TimeFit::* | GetFitParametersMemberPointer (int pdg_code) |
Helper function that returns a pointer-to-member for the FitParameters object appropriate for a given neutrino type. More... | |
Protected Attributes | |
double | fTime |
Time bin low edge (s) More... | |
FitParameters | fNueFitParams |
Fitting parameters for electron neutrinos in this time bin. More... | |
FitParameters | fNuebarFitParams |
Fitting parameters for electron antineutrinos in this time bin. More... | |
FitParameters | fNuxFitParams |
Fitting parameters for non-electron-flavor neutrinos in this time bin. More... | |
Stores fitting parameters for all neutrino types from a single time bin in a "fit"-format spectrum file.
Definition at line 284 of file MARLEYTimeGen_module.cc.
|
inline |
Definition at line 286 of file MARLEYTimeGen_module.cc.
|
inline |
Retrieves fit parameters for a specific neutrino type for this time bin.
pdg_code | The PDG code for the desired neutrino type |
Definition at line 329 of file MARLEYTimeGen_module.cc.
Referenced by evgen::MarleyTimeGen::make_nu_emission_histograms(), evgen::MarleyTimeGen::reconfigure(), and evgen::MarleyTimeGen::source_from_time_fit().
|
inlinestaticprotected |
Helper function that returns a pointer-to-member for the FitParameters object appropriate for a given neutrino type.
pdg_code | PDG code for the neutrino type of interest |
Definition at line 304 of file MARLEYTimeGen_module.cc.
References fNuebarFitParams, fNueFitParams, and fNuxFitParams.
|
inlinestatic |
Converts an iterator that points to a TimeFit object into an iterator that points to the appropriate (based on the neutrino PDG code) FitParameters member owned by the TimeFit object.
This function helps us to be able to sample time bins with a std::discrete_distribution using the bin luminosities without redundnant storage.
pdg_code | PDG code for the neutrino type of interest |
iterator | An iterator to a TimeFit object that will be converted |
Definition at line 344 of file MARLEYTimeGen_module.cc.
Referenced by evgen::MarleyTimeGen::create_truths_time_fit().
|
inline |
Returns the low edge (in s) of the time bin that uses these fit parameters.
Time zero is defined to be the core bounce
Definition at line 297 of file MARLEYTimeGen_module.cc.
Referenced by evgen::MarleyTimeGen::make_nu_emission_histograms().
|
protected |
Fitting parameters for electron antineutrinos in this time bin.
Definition at line 360 of file MARLEYTimeGen_module.cc.
Referenced by GetFitParametersMemberPointer().
|
protected |
Fitting parameters for electron neutrinos in this time bin.
Definition at line 356 of file MARLEYTimeGen_module.cc.
Referenced by GetFitParametersMemberPointer().
|
protected |
Fitting parameters for non-electron-flavor neutrinos in this time bin.
Definition at line 364 of file MARLEYTimeGen_module.cc.
Referenced by GetFitParametersMemberPointer().
|
protected |
Time bin low edge (s)
Definition at line 353 of file MARLEYTimeGen_module.cc.