CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
utils.h
Go to the documentation of this file.
1 #ifndef utils_h
2 #define utils_h
3 #include "TH1F.h"
4 #include "TH2F.h"
5 #include "TFile.h"
6 #include "TString.h"
7 #include "TMath.h"
8 #include "TStyle.h"
9 class Tutils {
10  public:
11  void drawGFit(TH1 * h1, float nsigmas, float min, float max);
12  void drawGFit(TH1 * h1, float min, float max);
13  void drawGFit(TH1 * h1, float min, float max, float minfit, float maxfit);
14  void setStyle(TH1 *histo);
15  void setStyle(TH2 *histo);
16  void plotAndProfileX (TH2* h2, float min, float max, bool profile=false);
17  private:
18  TStyle * getStyle(const TString& name);
19  TStyle * mystyle;
20 
21 };
22 #endif
void setStyle(TH1 *histo)
Definition: utils.cc:23
T min(T a, T b)
Definition: MathUtil.h:58
TStyle * mystyle
Definition: utils.h:19
void plotAndProfileX(TH2 *h2, float min, float max, bool profile=false)
Definition: utils.cc:219
void drawGFit(TH1 *h1, float nsigmas, float min, float max)
Definition: utils.h:9
TStyle * getStyle(const TString &name)
Definition: utils.cc:49