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 Alignment_OfflineValidation_CompareAlignments_h
#define Alignment_OfflineValidation_CompareAlignments_h
#include "Riostream.h"
#include "TCanvas.h"
#include "TChain.h"
#include "TEnv.h"
#include "TFile.h"
#include "TH1.h"
#include "TKey.h"
#include "TLegend.h"
#include "TMath.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "TPaveStats.h"
#include "TROOT.h"
#include "TStyle.h"
#include "TTree.h"
#include <cstring>
#include <sstream>
#include <vector>
#include "Alignment/OfflineValidation/interface/TkAlStyle.h"
class CompareAlignments {
private:
TList *FileList;
TList *LabelList;
TFile *Target;
std::vector<std::string> lowestlevels;
std::vector<int> theColors;
std::vector<int> theStyles;
std::vector<int> phases;
std::string outPath;
void MergeRootfile(TDirectory *target, TList *sourcelist, TList *labellist, bool bigtext);
void nicePad(Int_t logx, Int_t logy);
void SetMinMaxRange(TObjArray *hists);
void ColourStatsBoxes(TObjArray *hists);
public:
CompareAlignments(const std::string &outPath) : outPath(outPath) {}
void doComparison(TString namesandlabels,
TString legendheader = "",
TString lefttitle = "",
TString righttitle = "",
PublicationStatus status = INTERNAL,
bool bigtext = false);
};
#endif
|