Hello,
I am trying to extends TH1D and add some additional parameters related to my physics case.
Additionally, I am declaring new constructor as shown below
#ifndef exTH2D_H
#define exTH2D_H
#include <Riostream.h>
#include <TObject.h>
#include <TH1D.h>
namespace UMO {
class exTH2D: public TH1D
{
private:
public:
exTH2D() : TH1D() {};
exTH2D(const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup) : TH1D(name, title, nbinsx, xlow, xup) {};
exTH2D(const char *name, const char *title, Int_t nbinsx, const Float_t *xbins) : TH1D(name, title, nbinsx, xbins) {};
exTH2D(const char *name, const char *title, Int_t nbinsx, const Double_t *xbins) : TH1D(name, title, nbinsx, xbins) {};
explicit exTH2D(const TVectorD &v) : TH1D(v) {};
exTH2D(const exTH2D &ts) : TH1D(ts) {};
~exTH2D() override {};
void Print(Option_t *option = "") const override;
ClassDefOverride(UMO::exTH2D,1);
};
}
#endif
I can use it in my compiled programs but when I try to load it in TBrowser I am getting the following issue:
#pragma clang diagnostic pop
==== SOURCE END ====
Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!
Error in <TClingCallFunc::make_wrapper>: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) __attribute__((annotate("__cling__ptrcheck(off)")))
extern "C" void __cf_171(void* obj, int nargs, void** args, void* ret)
{
((TGFileBrowser*)obj)->Update();
return;
}
#pragma clang diagnostic pop
==== SOURCE END ====
Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!
Error in <TClingCallFunc::make_wrapper>: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) __attribute__((annotate("__cling__ptrcheck(off)")))
extern "C" void __cf_172(void* obj, int nargs, void** args, void* ret)
{
((TTimer*)obj)->TurnOn();
return;
}
#pragma clang diagnostic pop
==== SOURCE END ====
Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!
Error in <TClingCallFunc::make_wrapper>: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) __attribute__((annotate("__cling__ptrcheck(off)")))
extern "C" void __cf_173(void* obj, int nargs, void** args, void* ret)
{
((TTimer*)obj)->TurnOff();
return;
}
#pragma clang diagnostic pop
==== SOURCE END ====
Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!
^C
Would you have any advice how I can fix it ?
Many thanks
ROOT: v6.26