Skip to content

Commit e9b5fde

Browse files
ferdymercuryhageboeck
authored andcommitted
[hist] Implement addToGlobList for TF12 constructors
1 parent e8a9e1f commit e9b5fde

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hist/hist/inc/TF12.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TF12 : public TF1 {
3131

3232
public:
3333
TF12();
34-
TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option="x");
34+
TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option="x", EAddToList addToGlobList = EAddToList::kDefault);
3535
TF12(const TF12 &f12);
3636
~TF12() override;
3737
void Copy(TObject &f12) const override;

hist/hist/src/TF12.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ TF12::TF12()
5151
/// for a fix value of Y if option="X" or X if option="Y"
5252
/// This value may be changed at any time via TF12::SetXY(xy)
5353

54-
TF12::TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option)
55-
:TF1(name,"x",0,0)
54+
TF12::TF12(const char *name, TF2 *f2, Double_t xy, Option_t *option, EAddToList addToGlobList)
55+
:TF1(name, "x", 0, 0, addToGlobList)
5656
{
5757
SetName(name);
5858
fF2 = f2;

0 commit comments

Comments
 (0)