32 std::string fname = s +
"_0";
33 while (gROOT->GetListOfFunctions()->FindObject(fname.c_str())) {
35 fname = s +
"_" + std::to_string(idx);
42 std::string hname = s +
"_0";
43 while (gDirectory->GetList()->FindObject(hname.c_str())) {
45 hname = s +
"_" + std::to_string(idx);
void SetDefaultStyle()
Apply the default Garfield ROOT style.
std::string FindUnusedFunctionName(const std::string &s) const
void SetCanvas(TCanvas *c)
Set the canvas to be painted on.
std::string FindUnusedHistogramName(const std::string &s) const
virtual ~ViewBase()
Destructor.
ViewBase()=delete
Default constructor.
PlottingEngineRoot plottingEngine