StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGlauberPlotMaker.h
1 /******************************************************************************
2  * $Id: StGlauberPlotMaker.h,v 1.2 2012/04/25 05:02:16 hmasui Exp $
3  * $Log: StGlauberPlotMaker.h,v $
4  * Revision 1.2 2012/04/25 05:02:16 hmasui
5  * 5% increment for centrality bins. Added 3rd harmonic eccentricity
6  *
7 ******************************************************************************/
8 
9 #ifndef __StGlauberPlotMaker_h__
10 #define __StGlauberPlotMaker_h__
11 
12 class TGraph ;
13 class TGraphErrors ;
14 #include <vector>
15 #include "TString.h"
16 
17 //____________________________________________________________________________________________________
18 // Class StGlauberPlotMaker: Plot average quantity as a function of centrality and evaluate systematic error
20  public:
21  StGlauberPlotMaker(const TString name="Npart");
22  virtual ~StGlauberPlotMaker();
23 
25  Int_t Read(const TString filename, const TString type) ;
26 
32  void Draw(const UInt_t mode = 0) ;
33 
34  private:
35  // Functions
36  Double_t GetYMinimum() const ;
37  Double_t GetYMaximum() const ;
38  TString GetYTitle() const ;
39 
41  TGraphErrors* Divide(const TGraphErrors& g0, const TGraphErrors& g1) const ;
42 
44  TGraphErrors* SystematicErrors(const UInt_t mode) ;
45 
46  // Data members
47  enum {
48  mNCentrality = 16 // 16 centrality bins in 0-80% (5% increment)
49  };
50  const TString mName ;
51  std::vector<TGraphErrors*> mGraph ;
52  std::vector<TGraphErrors*> mGraphDraw ;
53 
54  TGraph* mSystematicError ;
55  static UInt_t mCanvasId ;
56  static UInt_t mGraphId ;
57 
58  ClassDef(StGlauberPlotMaker, 0)
59 };
60 #endif
61 
void Draw(const UInt_t mode=0)
virtual ~StGlauberPlotMaker()
Default constructor.
Int_t Read(const TString filename, const TString type)
Default destructor.