-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerator.h
More file actions
53 lines (43 loc) · 1 KB
/
Generator.h
File metadata and controls
53 lines (43 loc) · 1 KB
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
46
47
48
49
50
51
52
#ifndef __plotter_Generator__
#define __plotter_Generator__
#include <string>
#include "json.hh"
#include "TColor.h"
class TFile;
class TH1;
/**
* @class Generator
* @brief A set of NUISANCE comparisons
*/
class Generator {
public:
/** Default ctor. */
Generator() : color(kBlack) {}
/**
* Constructor with a JSON configuration.
*
* @param c JSON configuration block
*/
Generator(json::Value& c);
/**
* Get a histogram object out of the file.
*
* @param key Name of the object
* @returns Histogram as a generic TH1*
*/
TH1* getHistogram(std::string key);
/**
* Get the chi2/ndof as a string.
*
* @param key Name of the sample
* @returns "chi2/ndof" as a string
*/
std::string getChi2String(std::string sample);
public:
std::string title; //!< Generator display title
int color; //!< Line color
std::vector<std::string> keys; //!< List of available keys
private:
TFile* tfile; //!< ROOT file (nuiscomp output)
};
#endif // __plotter_Generator__