File indexing completed on 2024-04-06 12:31:59
0001 #ifndef utils_h
0002 #define utils_h
0003 #include "TFile.h"
0004 #include "TH1F.h"
0005 #include "TH2F.h"
0006 #include "TMath.h"
0007 #include "TString.h"
0008 #include "TStyle.h"
0009 class Tutils {
0010 public:
0011 void drawGFit(TH1 *h1, float nsigmas, float min, float max);
0012 void drawGFit(TH1 *h1, float min, float max);
0013 void drawGFit(TH1 *h1, float min, float max, float minfit, float maxfit);
0014 void setStyle(TH1 *histo);
0015 void setStyle(TH2 *histo);
0016 void plotAndProfileX(TH2 *h2, float min, float max, bool profile = false);
0017
0018 private:
0019 TStyle *getStyle(const TString &name);
0020 TStyle *mystyle;
0021 };
0022 #endif