// inline functions static inline void addTextNode(ticpp::Element& parent, const char* title, const char* value) { if (!value) { return; } ticpp::Text myText(value); if (!title) { parent.SetText(myText); } else { ticpp::Element myTitle(title); myTitle.LinkEndChild(&myText); parent.LinkEndChild(&myTitle); } }
void PDFFile::AddCanvas(TCanvas* canv, Option_t* title) { TString myTitle(title); myTitle.ReplaceAll(".root", ""); if (!fileOpened) { if (strlen(title)) { canv->Print(fileName + TString("("), "pdf,Title:" + myTitle); } else { std::cout << "No Title" << std::endl; canv->Print(fileName + TString("("), "pdf"); } fileOpened = true; } else { if (strlen(title)) { canv->Print(fileName, "pdf,Title:" + myTitle); } else { canv->Print(fileName, "pdf"); } } } //PDFFile::AddCanvas