-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutput.h
43 lines (32 loc) · 1.31 KB
/
Output.h
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
#ifndef OUTPUT_H
#define OUTPUT_H
#include <vector>
#include <map>
#include "TCanvas.h"
#include "TString.h"
#include "GlobalParameters.h"
class Output {
public:
static TString resultDir() {
return cleanName("results/"+GlobalParameters::analysisId());
}
static TString id() {
return cleanName(GlobalParameters::analysisId());
}
static TString cleanName(const TString &name);
static TString cleanLatexName(const TString &name);
Output();
~Output() {};
void addPlot(TCanvas* can, const TString &var, const TString &dataSetLabel, const TString &selection);
void addPlot(TCanvas* can, const TString &var, const std::vector<TString> &dataSetLabels, const TString &plotType, const TString &selection);
void addPlot(TCanvas* can, const TString &var, const std::vector<TString> &dataSetLabels1, const std::vector<TString> &dataSetLabels2, const TString &selection);
void createLaTeXSlide() const;
private:
std::map< TString, TString > dirs_;
std::map< TString, std::map< TString, std::vector<TString> > > plotsSingleSpectrum_;
std::map< TString, std::vector<TString> > plotsNormedSpectra_;
std::map< TString, std::map< TString, std::vector<TString> > > plotsStack_;
TString dir(const TString &selection);
void storeCanvas(TCanvas* can, const TString &selection, const TString &plotName);
};
#endif