52 TF12::TF12(
const char *name, TF2 *f2, Double_t xy, Option_t *option)
60 Error(
"TF12",
"Pointer to TF2 is null");
64 if (opt.Contains(
"y")) {
65 fXmin = f2->GetYmin();
66 fXmax = f2->GetYmax();
69 fXmin = f2->GetXmin();
70 fXmax = f2->GetXmax();
87 TF12::TF12(
const TF12 &f12) : TF1(f12)
89 ((TF12&)f12).Copy(*
this);
96 void TF12::Copy(TObject &obj)
const
99 ((TF12&)obj).fXY = fXY;
100 ((TF12&)obj).fCase = fCase;
101 ((TF12&)obj).fF2 = fF2;
122 TF1 *TF12::DrawCopy(Option_t *option)
const
124 TF12 *newf2 =
new TF12();
126 newf2->AppendPad(option);
127 newf2->SetBit(kCanDelete);
137 Double_t TF12::Eval(Double_t x, Double_t , Double_t , Double_t )
const
141 return fF2->Eval(x,fXY,0);
143 return fF2->Eval(fXY,x,0);
155 Double_t TF12::EvalPar(
const Double_t *x,
const Double_t *params)
166 fF2->InitArgs(xx,params);
167 return fF2->EvalPar(xx,params);
174 void TF12::SavePrimitive(std::ostream & , Option_t * )
176 Error(
"SavePrimitive",
"Function not yet implemented");
188 void TF12::SetXY(Double_t xy)
192 if (fCase == 0) SetTitle(Form(
"%s (y=%g)",fF2->GetTitle(),xy));
193 else SetTitle(Form(
"%s (x=%g)",fF2->GetTitle(),xy));
194 if (fHistogram) fHistogram->SetTitle(GetTitle());
195 if (gPad) gPad->Modified();