StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
QAH.h
1 // $Id: QAH.h,v 2.5 2014/08/06 11:43:52 jeromel Exp $
2 // $Log: QAH.h,v $
3 // Revision 2.5 2014/08/06 11:43:52 jeromel
4 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
5 //
6 // Revision 2.4 2007/03/13 18:44:07 genevb
7 // Added StMultiH2F support
8 //
9 // Revision 2.3 2004/12/13 15:52:36 genevb
10 // Numerous updates: PMD, primtrk, FPD, QAShift lists
11 //
12 // Revision 2.2 2001/04/28 22:05:12 genevb
13 // Added EMC histograms
14 //
15 // Revision 2.1 2000/08/25 16:04:09 genevb
16 // Introduction of files
17 //
18 //
20 // //
21 // QAH class for instantiating QA Histograms //
22 // //
24 
25 #ifndef STAR_StQAH
26 #define STAR_StQAH
27 
28 #include "TString.h"
29 #include "TH1.h"
30 #include "TH2.h"
31 #include "TH3.h"
32 class StMaker;
33 
34 class QAH {
35 
36 // ************************ Public Functions *****************************
37  public:
38 
39  QAH() {}
40  virtual ~QAH() {}
41  static StMaker* maker; // maker to which histograms belong
42  static TString preString; // string to prepend to names/titles
43 
44  // methods for 1d-hists
45  static TH1F* H1F(const Text_t* name, const Text_t* title,
46  Int_t nbinsx, Axis_t xlow, Axis_t xup);
47  static TH1F* H1F(const Text_t* name, const Text_t* title,
48  Int_t nbinsx, const Double_t* xbins);
49 
50  // methods for 2d-hists
51  static TH2F* H2F(const Text_t* name, const Text_t* title,
52  Int_t nbinsx, Axis_t xlow, Axis_t xup,
53  Int_t nbinsy, Axis_t ylow, Axis_t yup);
54  static TH2F* H2F(const Text_t* name, const Text_t* title,
55  Int_t nbinsx, const Double_t* xbins,
56  Int_t nbinsy, Axis_t ylow, Axis_t yup);
57 
58  // methods for multi 1d-hists
59  static TH2F* MH1F(const Text_t* name, const Text_t* title,
60  Int_t nbinsx, Axis_t xlow, Axis_t xup, Int_t nbinsy);
61  // several similar multi 1d-hists
62  static void MMH1F(TH2F** histp, Int_t nhist, const Text_t* name, const Text_t* title,
63  Int_t nbinsx, Axis_t xlow, Axis_t xup, Int_t nbinsy, Int_t first=0);
64  // methods for multi 2d-hists
65  static TH3F* MH2F(const Text_t* name, const Text_t* title,
66  Int_t nbinsx, Axis_t xlow, Axis_t xup, Int_t nbinsy, Axis_t ylow, Axis_t yup,
67  Int_t nbinsz);
68 
69 
70 // the following is a ROOT macro that is needed in all ROOT code
71  virtual const char *GetCVS() const
72  {static const char cvs[]="Tag $Name: $ $Id: QAH.h,v 2.5 2014/08/06 11:43:52 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
73 
74 
75  protected:
76  static TString QAHistName; // character string for each hist name
77  static TString QAHistTitle; // character string for each hist title
78  static const char* NameIt(const char* name); // method for naming histograms
79  static const char* TitleIt(const char* name);// method for titling histograms
80 
81  ClassDef(QAH,0)
82 };
83 
84 
85 #endif
86 
87 
88 
89 
90 
91 
92 
93 
Definition: QAH.h:34