Namespaces | |
namespace | ThrObjHolder |
Classes | |
class | CheckFileForNan |
class CheckFileForNan can be used to check if the file contains objects with Nan values More... | |
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 | ThrObj |
Class ThrObj can be used to simplify the work with TThreadedObject histograms in multithreaded applications. More... | |
Functions | |
void | PrintCanvas (TCanvas *canv, const std::string &outputFileNameNoExt, const bool printPng=true, const bool compressPdf=true, const bool parallelCompression=true) |
Saves TCanvas in .pdf format and additionaly in .png format if specified. | |
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. | |
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 | compressPdf = true, | ||
const bool | parallelCompression = true ) |
Saves TCanvas in .pdf format and additionaly in .png format if specified.
[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 is also printed additionaly to .pdf file; else only .pdf file will be printed. Note that saving complex canvases in .png takes much more time than saving them in .pdf |
[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. |