GENIEGenerator
|
A simple cache branch storing the cached data in a TNtuple. More...
#include <CacheBranchFx.h>
Public Member Functions | |
CacheBranchFx () | |
CacheBranchFx (string name) | |
~CacheBranchFx () | |
const map< double, double > & | Map (void) const |
Spline * | Spl (void) const |
void | CreateSpline (string type="TSpline3") |
void | AddValues (double x, double y) |
void | Reset (void) |
void | Print (ostream &stream) const |
double | operator() (double x) const |
Public Member Functions inherited from genie::CacheBranchI | |
virtual | ~CacheBranchI () |
Private Member Functions | |
void | Init (void) |
void | CleanUp (void) |
Private Attributes | |
string | fName |
cache branch name More... | |
map< double, double > | fFx |
x->y map More... | |
Spline * | fSpline |
spline y = f(x) More... | |
Friends | |
ostream & | operator<< (ostream &stream, const CacheBranchFx &cbntp) |
Additional Inherited Members | |
Protected Member Functions inherited from genie::CacheBranchI | |
CacheBranchI () | |
A simple cache branch storing the cached data in a TNtuple.
Update May 15, 2022 IK: Now type of spline can be: TSpline3, TSpline5 and ROOT::Math::GSLInterpolator (LINEAR, POLYNOMIAL, CSPLINE, CSPLINE_PERIODIC, AKIMA, AKIMA_PERIODIC)
Definition at line 49 of file CacheBranchFx.h.
CacheBranchFx::CacheBranchFx | ( | void | ) |
CacheBranchFx::CacheBranchFx | ( | string | name | ) |
Definition at line 33 of file CacheBranchFx.cxx.
CacheBranchFx::~CacheBranchFx | ( | ) |
void CacheBranchFx::AddValues | ( | double | x, |
double | y | ||
) |
Definition at line 63 of file CacheBranchFx.cxx.
References fFx.
Referenced by genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::KineGeneratorWithCache::CacheMaxXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::SPPXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), and genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor().
|
private |
void CacheBranchFx::CreateSpline | ( | string | type = "TSpline3" | ) |
Definition at line 68 of file CacheBranchFx.cxx.
References fFx, fSpline, and genie::Spline::SetType().
Referenced by genie::DISXSec::CacheFreeNucleonXSec(), genie::DMDISXSec::CacheFreeNucleonXSec(), genie::KineGeneratorWithCache::CacheMaxXSec(), genie::ReinSehgalRESXSecWithCache::CacheResExcitationXSec(), genie::SPPXSecWithCache::CacheResExcitationXSec(), genie::ReinSehgalRESXSecWithCacheFast::CacheResExcitationXSec(), and genie::KNOTunedQPMDISPXSec::DISRESJoinSuppressionFactor().
|
private |
Definition at line 45 of file CacheBranchFx.cxx.
References fName, and fSpline.
Referenced by CacheBranchFx(), and Reset().
|
inline |
Definition at line 58 of file CacheBranchFx.h.
References fFx.
Referenced by genie::KineGeneratorWithCache::CacheMaxXSec(), and genie::KineGeneratorWithCache::FindMaxXSec().
double CacheBranchFx::operator() | ( | double | x | ) | const |
void CacheBranchFx::Print | ( | ostream & | stream | ) | const |
void CacheBranchFx::Reset | ( | void | ) |
|
inline |
Definition at line 59 of file CacheBranchFx.h.
References fSpline.
Referenced by genie::KineGeneratorWithCache::CacheMaxXSec(), and genie::KineGeneratorWithCache::FindMaxXSec().
|
friend |
Definition at line 20 of file CacheBranchFx.cxx.
|
private |
x->y map
Definition at line 75 of file CacheBranchFx.h.
Referenced by AddValues(), CleanUp(), CreateSpline(), Map(), and Print().
|
private |
cache branch name
Definition at line 74 of file CacheBranchFx.h.
Referenced by CacheBranchFx(), and Init().
|
private |
spline y = f(x)
Definition at line 76 of file CacheBranchFx.h.
Referenced by CleanUp(), CreateSpline(), Init(), operator()(), Print(), and Spl().