-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRooUnfoldTest.cxx
45 lines (36 loc) · 1.42 KB
/
RooUnfoldTest.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//=====================================================================-*-C++-*-
// File and Version Information:
// $Id$
//
// Description:
// Tests RooUnfold package using toy MC generated according to PDFs
// defined in RooUnfoldTestPdf.icc or RooUnfoldTestPdfRooFit.icc.
// This is the main program. The actual tests are performed using the
// RooUnfoldTestHarness class.
//
// Author: Tim Adye <[email protected]>
//
//==============================================================================
#include "RooUnfoldTestHarness.h"
RooUnfoldTestHarness* test= 0;
//==============================================================================
// Routine to run with parameters specified as a string
//==============================================================================
void RooUnfoldTest (const char* args= "")
{
// If run interactively, remove canvas and all histograms that might have been
// created with a previous invocation.
delete test; test= 0;
gDirectory->Clear();
test= new RooUnfoldTestHarness ("RooUnfoldTest", args);
test->Run();
}
#ifndef __CINT__
//==============================================================================
// Main program when run stand-alone
//==============================================================================
int main (int argc, char** argv) {
RooUnfoldTestHarness maintest ("RooUnfoldTest", argc, argv);
return maintest.Run();
}
#endif