54 :
TF1(
name,
"x", 0, 0, addToGlobList)
61 Error(
"TF12",
"Pointer to TF2 is null");
90 f12.TF12::Copy(*
this);
167 fF2->InitArgs(xx,params);
168 return fF2->EvalPar(xx,params);
177 thread_local Int_t save_f2_id = 9000;
186 out <<
" TF12 *" << f12Name <<
" = new TF12(\"" <<
"*" <<
GetName() <<
"\", " << f2Name <<
", " <<
fXY <<
", "
187 << (
fCase ?
"\"y\"" :
"\"x\"") <<
");\n";
int Int_t
Signed integer 4 bytes (int)
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char)
Option_t Option_t TPoint xy
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
void SaveAttributes(std::ostream &out, const char *name, const char *subname) override
Save axis attributes as C++ statement(s) on output stream out.
Int_t fCase
Projection along X(0), or Y(1)
Double_t fXY
Value along Y (if projection X) or X (if projection Y)
Double_t EvalPar(const Double_t *x, const Double_t *params=nullptr) override
Evaluate this function at point x[0].
TF12()
TF12 default constructor.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void Copy(TObject &f12) const override
Copy this F2 to a new F2.
~TF12() override
F2 default destructor.
virtual void SetXY(Double_t xy)
Set the value of the constant for the TF2.
TF1 * DrawCopy(Option_t *option="") const override
Draw a copy of this function with its current attributes.
TF2 * fF2
Pointer to the mother TF2.
Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const override
Evaluate this formula.
virtual Double_t GetXmax() const
EAddToList
Add to list behavior.
TAxis * GetYaxis() const
Get y axis of the function.
Double_t fXmin
Lower bounds for the range.
TString ProvideSaveName(Option_t *option)
Provide variable name for function for saving as primitive When TH1 or TGraph stores list of function...
TH1 * fHistogram
! Pointer to histogram used for visualisation
void SetTitle(const char *title="") override
Set function title if title has the form "fffffff;xxxx;yyyy", it is assumed that the function title i...
void Copy(TObject &f1) const override
Copy this F1 to a new F1.
TF1(EFType functionType, const char *name, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim, EAddToList addToGlobList, TF1Parameters *params=nullptr, TF1FunctorPointer *functor=nullptr)
General constructor for TF1. Most of the other constructors delegate on it.
Double_t fXmax
Upper bounds for the range.
virtual Double_t GetXmin() const
TAxis * GetXaxis() const
Get x axis of the function.
A 2-Dim function with parameters.
virtual Double_t GetYmax() const
virtual Double_t GetYmin() const
void SavePrimitiveNameTitle(std::ostream &out, const char *variable_name)
Save object name and title into the output stream "out".
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
static void SavePrimitiveDraw(std::ostream &out, const char *variable_name, Option_t *option=nullptr)
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
TObject()
TObject constructor.
@ kCanDelete
if object in a list can be deleted
void ToLower()
Change string to lower-case.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const