16 #ifndef TOOLS_PNDHISTOCOMBINER_H_ 17 #define TOOLS_PNDHISTOCOMBINER_H_ 52 fileData myData(fileName, shortName);
53 fFileData.push_back(myData);
97 void SetDimensions(
int x = 400,
int y = 300) { fCanCreator.SetDimensions(x, y); }
104 void DoTest(
int val = 0,
double threshold = 0.03)
107 fThreshold = threshold;
127 void DrawPulls(std::vector<TH1 *> &histos);
132 if (result > threshold)
140 void AddCDashOutput(TString prefix, TString histoName,
double value);
145 std::vector<fileData> fFileData;
146 std::vector<TString> fHistoSelector;
147 std::vector<TString> fBranchSelector;
148 std::vector<TString> fCDashOutput;
149 std::vector<TH1 *> fTmpHistos;
152 bool fCreateCDashOutput =
false;
153 double fThreshold = 0;
156 bool fDoPulls =
false;
std::pair< TPad *, TPad * > SplitPadForPulls()
int GenerateHistos()
Main method to generate histograms.
TString RemoveSpecialCharacters(TString input)
bool TestPassed(double result, double threshold)
void SetPicPerCan(int val)
pictures per canvas. They will be organized in a quadratic way
void SetCanvasPrefix(TString val)
fileData(TString fileName, TString shortName)
Combines histograms with the same name from different files in one overlay histogram.
double PerformTest(TH1 *h1, TH1 *h2)
void SetCDashOutput(bool val=true)
Select to generate output string automatically to upload data to CDASH server.
void CreateCDashOutput()
Generate output string to upload data to CDASH server This can be called automatically or by hand...
void AddCDashOutput(TString prefix, TString histoName, double value)
Add to output string to upload data to CDASH server.
bool CheckBranchName(TString branchName)
void AddFileNamesAndShortName(TString fileName, TString shortName)
Adds the file which contain the histos to be plotted together. First file is the one comparisons are ...
void SetCanvasOutputFormat(TString val)
Creates new canvasses once the number of histograms per canvas exceeds a setable threshold Automatic...
void AddHistoSelector(TString histoName)
Only those histograms are combined with part of their matching the histoName.
bool CheckHistoName(TString histoName)
void CreateLegend(std::vector< TH1 *> &histos)
void DoTest(int val=0, double threshold=0.03)
perform Kolmogorov or chi2 test between histograms of first file and all others.
void AddBranchSelector(TString branchName)
Only those branches are combined with part of their matching the branchName.
void SetDimensions(int x=400, int y=300)
int GenerateBranches()
Main method to generate histograms from branches.
void SetCanvasOutputDir(TString val)
void SetPulls(bool dopulls=true)
bool CheckBranchType(TString branchType)
void DrawPulls(std::vector< TH1 *> &histos)
virtual ~PndHistoCombiner()
void DrawAndTestHistoStack(std::vector< TH1 *> &histos)