-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataMCplotMaker.h
More file actions
31 lines (22 loc) · 1.61 KB
/
dataMCplotMaker.h
File metadata and controls
31 lines (22 loc) · 1.61 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
#ifndef MAKEPLOT_H
#define MAKEPLOT_H
#include "PlotMakingTools.h"
struct PlotInfo {
TH1F* Plot;
std::string Title;
Color_t Color;
int Number;
TH1F* Signal;
Color_t SignalColor;
std::string SignalTitle;
};
//TStyle *tdrStyleAG = NULL;
//Main function
void dataMCplotMaker(TH1F* Data_in, std::vector <std::pair <TH1F*, TH1F*> > Backgrounds_pair_in, std::vector <std::string> Titles, std::string titleIn = "", std::string title2In = "", std::string options_string = "", std::vector <TH1F*> Signals_in = std::vector<TH1F*>(), std::vector <std::string> SignalTitles = std::vector<std::string>(), std::vector <Color_t> color_input = std::vector<Color_t>());
//Overload for the case of no stat errors
void dataMCplotMaker(TH1F* Data_in, std::vector <TH1F*> Backgrounds_in, std::vector <std::string> Titles, std::string titleIn = "", std::string title2In = "", std::string options_string = "", std::vector <TH1F*> Signals_in = std::vector<TH1F*>(), std::vector <std::string> SignalTitles = std::vector<std::string>(), std::vector <Color_t> color_input = std::vector<Color_t>());
//Overload for the case of numeric stat errors
void dataMCplotMaker(TH1F* Data_in, std::vector <std::pair <TH1F*, float> > Backgrounds_in, std::vector <std::string> Titles, std::string titleIn = "", std::string title2In = "", std::string options_string = "", std::vector <TH1F*> Signals_in = std::vector<TH1F*>(), std::vector <std::string> SignalTitles = std::vector<std::string>(), std::vector <Color_t> color_input = std::vector<Color_t>());
//Quick wrapper
void singlePlotMaker(TH1F* h1, std::string title="", std::string options_string="");
#endif