#ifndef PLOTTER_H #define PLOTTER_H //*************************** //Class that falicitates comparing the same plot from different Root TTrees, //in different files; //Just supply, the name of the TTree, the names of the files and the branches //to Plot. With every file you can specify a linestyle and a color. //With every variable you can specify the number of bins and the ranges. //Will plot each variable on a different Canvas. // //Usage: With SetTreeName, you name the tree in each file, it has to be // the same treename in each file // With AddFile, you add another file to be plotted. Each file gets // a samplename, and optionally a different color and linestyle. // With AddVar, you specify the name of a branch in the tree // giving also the number of bins and the range of this variable // Each var gets its own canvas, and the distribution is plotted // for each file. // Plot then loads all the trees, fills the histograms and makes the plots // and writes them to file. //Written by: F.Koetsveld f.koetsveld@hef.kun.nl //Date: 08-07-2008 #include #include "TH1F.h" #include "TCanvas.h" using std::cout; using std::string; class Plotter{ public: Plotter(); ~Plotter(); Bool_t doPlot(); }; #endif