49 static void SetInstance(std::shared_ptr<Debugger> instance);
55 virtual void AddNtuple(
const char* name,
const char* varlist) = 0;
61 template<
typename... Targs>
64 constexpr std::size_t n =
sizeof...(Targs);
72 template<
typename T,
typename... Targs>
76 if (
sizeof...(args) > 0) {
void FillFloatArray(float *v, T last)
Debugger()=default
Default constructor.
Debugger & operator=(const Debugger &other)=delete
Copy assignment operator.
virtual ~Debugger()=default
Destructor.
static Debugger & Instance()
Instance.
virtual void FillNtuple(const char *name, float v[])=0
Add an entry to ntuple.
virtual void Write()=0
Write ntuples to the file.
Debugger(Debugger &&other)=delete
Move constructor.
Debugger(const Debugger &other)=delete
Copy constructor.
static void SetInstance(std::shared_ptr< Debugger > instance)
Set instance.
void FillNtuple(const char *name, Targs... args)
Add an entry to ntuple.
void FillFloatArray(float *v, T val, Targs... args)
Debugger & operator=(Debugger &&other)=delete
Move assignment operator.
virtual void AddNtuple(const char *name, const char *varlist)=0
Set new ntuple.