CbmRoot
|
#include <CaToolsDebugger.h>
Public Member Functions | |
Debugger (const char *fileName="CAdebug.root") | |
Default constructor. | |
~Debugger () | |
Destructor. | |
Debugger (const Debugger &other)=delete | |
Copy constructor. | |
Debugger (Debugger &&other)=delete | |
Move constructor. | |
Debugger & | operator= (const Debugger &other)=delete |
Copy assignment operator. | |
Debugger & | operator= (Debugger &&other)=delete |
Move assignment operator. | |
void | Write () |
Write ntuples to the file. | |
void | AddNtuple (const char *name, const char *varlist) |
Set new ntuple. | |
void | FillNtuple (const char *name, float v[]) |
Add an entry to ntuple. | |
template<typename... Targs> | |
void | FillNtuple (const char *name, Targs... args) |
Add an entry to ntuple. | |
int | GetNtupleIndex (const char *name) |
Get ntuple index. | |
Static Public Member Functions | |
static Debugger & | Instance () |
Instance. | |
Private Member Functions | |
template<typename T , typename... Targs> | |
void | FillFloatArray (float *v, T val, Targs... args) |
template<typename T > | |
void | FillFloatArray (float *v, T last) |
Private Attributes | |
std::string | fFileName {"CAdebug.root"} |
bool | fIsWritten {0} |
TFile * | fFile {nullptr} |
std::vector< TNtuple * > | fNtuples |
Class ca::tools::Debugger helps to debug CA tracking
Definition at line 23 of file CaToolsDebugger.h.
Debugger::Debugger | ( | const char * | fileName = "CAdebug.root" | ) |
Default constructor.
Default constructor
Definition at line 39 of file CaToolsDebugger.cxx.
References fFileName.
Debugger::~Debugger | ( | ) |
Destructor.
Destructor
Definition at line 59 of file CaToolsDebugger.cxx.
References fFile, and fIsWritten.
|
delete |
Copy constructor.
|
delete |
Move constructor.
void Debugger::AddNtuple | ( | const char * | name, |
const char * | varlist ) |
Set new ntuple.
add ntuple
Definition at line 67 of file CaToolsDebugger.cxx.
References fFile, fFileName, fNtuples, and GetNtupleIndex().
Referenced by CbmL1::EfficienciesPerformance().
|
inlineprivate |
Definition at line 85 of file CaToolsDebugger.h.
References v.
|
inlineprivate |
Definition at line 76 of file CaToolsDebugger.h.
References FillFloatArray(), and v.
Referenced by FillFloatArray(), and FillNtuple().
void Debugger::FillNtuple | ( | const char * | name, |
float | v[] ) |
Add an entry to ntuple.
Definition at line 94 of file CaToolsDebugger.cxx.
References fNtuples, GetNtupleIndex(), and v.
Referenced by CbmL1::EfficienciesPerformance(), and FillNtuple().
|
inline |
Add an entry to ntuple.
Definition at line 62 of file CaToolsDebugger.h.
References FillFloatArray(), FillNtuple(), and v.
int Debugger::GetNtupleIndex | ( | const char * | name | ) |
Get ntuple index.
Definition at line 82 of file CaToolsDebugger.cxx.
References fNtuples.
Referenced by AddNtuple(), and FillNtuple().
|
static |
Instance.
Definition at line 29 of file CaToolsDebugger.cxx.
Referenced by CbmL1::EfficienciesPerformance(), and CbmL1::Finish().
Copy assignment operator.
Move assignment operator.
void Debugger::Write | ( | ) |
Write ntuples to the file.
Write data to file
Definition at line 45 of file CaToolsDebugger.cxx.
References fFile, fIsWritten, and fNtuples.
Referenced by CbmL1::Finish().
|
private |
Definition at line 93 of file CaToolsDebugger.h.
Referenced by AddNtuple(), Write(), and ~Debugger().
|
private |
Definition at line 91 of file CaToolsDebugger.h.
Referenced by AddNtuple(), and Debugger().
|
private |
Definition at line 92 of file CaToolsDebugger.h.
Referenced by Write(), and ~Debugger().
|
private |
Definition at line 94 of file CaToolsDebugger.h.
Referenced by AddNtuple(), FillNtuple(), GetNtupleIndex(), and Write().