40class RooUnitTest :
public TNamed {
42 RooUnitTest(
const char *
name, TFile *refFile,
bool writeRef,
Int_t verbose);
44 void setDebug(
bool flag) { _debug = flag; }
46 void clearSilentMode();
47 void regPlot(RooPlot *frame,
const char *refName);
48 void regResult(std::unique_ptr<RooFitResult>
r,
const char *refName);
49 void regValue(
double value,
const char *refName);
50 void regTable(RooTable *t,
const char *refName);
51 void regWS(RooWorkspace *ws,
const char *refName);
52 void regTH(TH1 *
h,
const char *refName);
53 RooWorkspace *getWS(
const char *refName);
56 bool areTHidentical(TH1 *htest, TH1 *href);
58 virtual bool isTestAvailable() {
return true; }
59 virtual bool testCode() = 0;
61 virtual double htol() {
return 5
e-4; }
63 virtual double ctol() {
return 2
e-3; }
65 virtual double ctol() {
return 4
e-3; }
67 virtual double fptol() {
return 1
e-5; }
68 virtual double fctol() {
return 1
e-4; }
69 virtual double vtol() {
return 1
e-3; }
71 static void setMemDir(TDirectory *memDir);
74 static TDirectory *gMemDir;
80 std::list<std::pair<RooPlot *, std::string>> _regPlots;
81 std::list<std::pair<RooFitResult *, std::string>> _regResults;
82 std::list<std::pair<double, std::string>> _regValues;
83 std::list<std::pair<RooTable *, std::string>> _regTables;
84 std::list<std::pair<RooWorkspace *, std::string>> _regWS;
85 std::list<std::pair<TH1 *, std::string>> _regTH;
int Int_t
Signed integer 4 bytes (int).
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
The TNamed class is the base class for all named ROOT classes.