#ifndef PLOT_H #define PLOT_H class TTree; class TGraphErrors; class TGraph2D; class TBranch; class TPaveText; class TCanvas; #include #include inline void loadbar(unsigned int x, unsigned int n, unsigned int w = 50) { if ( (x != n) && (x % (n/100+1) != 0) ) return; float ratio = x/(float)n; int c = ratio * w; std::cout << std::setw(3) << (int)(ratio*100) << "% ["; for (int x=0; x