Namespaces | |
| namespace | ThrObjHolder |
Classes | |
| class | GUIFit |
| class GUIFit that can be used for providing GUI for improving the approximations of form "foreground + background" by tweaking the background More... | |
| class | CheckFileForNan |
| class CheckFileForNan can be used to check if the file contains objects with Nan values More... | |
| class | ThrObj |
| Class ThrObj can be used to simplify the work with TThreadedObject histograms in multithreaded applications. More... | |
Functions | |
| template<typename T> | |
| void | DrawFrame (T *hist, const std::string &title, const std::string &xTitle, const std::string &yTitle, const double xTitleOffset=1., const double yTitleOffset=1.5, const double xTitleSize=0.05, const double yTitleSize=0.05, const bool drawOppositeAxis=true, const bool drawContents=true) |
| void | DrawFrame (const double xMin, const double yMin, const double xMax, const double yMax, const std::string &title, const std::string &xTitle, const std::string &yTitle, const double xTitleOffset=1., const double yTitleOffset=1.5, const double xTitleSize=0.05, const double yTitleSize=0.05, const bool drawOppositeAxis=true) |
| void | PrintCanvas (TCanvas *canv, const std::string &outputFileNameNoExt, const bool printPng=true, const bool printPdf=true, const bool compressPdf=true, const bool parallelCompression=true) |
| Saves TCanvas in .pdf format and additionaly in .png format if specified. Also makes canvas background transparent. Either printPng or printPdf must be true, else error will be printed. | |
| unsigned int | GetNumberOfParameters (const std::string &formula, const std::string &parName="p") |
| Return the biggest parameter index + 1 in formula of labmda function that was used in TF1 constructor. | |
| void ROOTTools::DrawFrame | ( | const double | xMin, |
| const double | yMin, | ||
| const double | xMax, | ||
| const double | yMax, | ||
| const std::string & | title, | ||
| const std::string & | xTitle, | ||
| const std::string & | yTitle, | ||
| const double | xTitleOffset = 1., | ||
| const double | yTitleOffset = 1.5, | ||
| const double | xTitleSize = 0.05, | ||
| const double | yTitleSize = 0.05, | ||
| const bool | drawOppositeAxis = true ) |
| void ROOTTools::DrawFrame | ( | T * | hist, |
| const std::string & | title, | ||
| const std::string & | xTitle, | ||
| const std::string & | yTitle, | ||
| const double | xTitleOffset = 1., | ||
| const double | yTitleOffset = 1.5, | ||
| const double | xTitleSize = 0.05, | ||
| const double | yTitleSize = 0.05, | ||
| const bool | drawOppositeAxis = true, | ||
| const bool | drawContents = true ) |
| unsigned int ROOTTools::GetNumberOfParameters | ( | const std::string & | formula, |
| const std::string & | parName = "p" ) |
Return the biggest parameter index + 1 in formula of labmda function that was used in TF1 constructor.
| [in] | formula | formula that was used to define fit function in TF1. The formula must be a labmda expression (see examples below). |
| [in] | parName | parameter name in formula |
Example:
Result:
3 4 2 3
| void ROOTTools::PrintCanvas | ( | TCanvas * | canv, |
| const std::string & | outputFileNameNoExt, | ||
| const bool | printPng = true, | ||
| const bool | printPdf = true, | ||
| const bool | compressPdf = true, | ||
| const bool | parallelCompression = true ) |
Saves TCanvas in .pdf format and additionaly in .png format if specified. Also makes canvas background transparent. Either printPng or printPdf must be true, else error will be printed.
| [in] | canv | TCanvas object that will be written |
| [in] | outputFileNameNoExt | name of the output file without extention (such as ".pdf" or ".png"). Extentions of the files will be added automaticaly |
| [in] | printPng | if true .png file will be printed (note that saving complex canvases in .png takes much more time than saving them in .pdf) |
| [in] | printPdf | if true .pdf file will be printed |
| [in] | compressPdf | if true .pdf file will be compressed with ghostscript. It is recommended to leave this parameter true since it doesn't take a lot of resources to compress the file and the size of the compressed file will usually be reduced by ~0.5-0.7 of the uncompressed file size (depends on the contents of canvas and with more complex canvases more reduction in size can be achieved) |
| [in] | parallelCompression | if true the compression will be ran on the separate thread detached from the current program. Parallel compression speeds up the function completion time since the program does not need to wait until compression is done. It is recommended to leave this parameter true unless the program you're running takes all resources of the machine. |