simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
HistoUtils.h
1 /*
2  * HistoUtils.h
3  *
4  * Created on: Mar 12, 2013
5  * Author: Silvestro di Luise
6  */
7 
8 #ifndef HISTOUTILS_H_
9 #define HISTOUTILS_H_
10 
11 #include <TString.h>
12 #include <TGraph.h>
13 #include <TH1.h>
14 #include <TAxis.h>
15 #include <TObject.h>
16 
17 //#include "NAStringUtil.h"
18 
19 
20 class HistoUtils: public TObject {
21 
22 public:
23  HistoUtils();
24  virtual ~HistoUtils();
25 
26 
27 
28  TString BuildName(TString, TString);
29  TString BuildName(int, int);
30  TString BuildName(TString, int);
31  TString BuildName(TString, int, int);
32  TString BuildName(TString, TString, int);
33  TString BuildName(TString, TString, int, int);
34  TString BuildName(TString,TString,TString);
35 
36  TString BuildString(TString, TString);
37  TString BuildString(int, int);
38  TString BuildString(TString, int);
39  TString BuildString(TString, int, int);
40  TString BuildString(TString, TString, int);
41  TString BuildString(TString, TString, int, int);
42  TString BuildString(TString,TString,TString);
43 
44  TString BuildUnit(TString);
45  TString BuildAtit(TString,TString);
46  TString BuildTitle(TString,TString);
47  TString BuildTitle(TString,TString,TString);
48  TString BuildRange(TString,float,float,TString);
49  TString BuildRange(float,float,TString);
50  TString BuildRange(TString,float,float);
51  TString BuildRange(float,float);
52 
53  bool CheckAxisLimits(TAxis*,TAxis*);
54  bool CheckBinLimits(TAxis*,TAxis*);
55  bool CheckBinAlignment(TH1*,TH1*);
56  bool CheckConsistency(TH1*,TH1*);
57 
58 
59  bool PtrCheck(TObject*,TObject*);
60 
61  void SetSeparator(TString);
62 
63 
64 
65 private:
66 
67  TString mBuildString(TString, TString);
68  TString mBuildString(int, int);
69  TString mBuildString(TString, int);
70  TString mBuildString(TString, int, int);
71  TString mBuildString(TString, TString, int);
72  TString mBuildString(TString, TString, int, int);
73  TString mBuildString(TString,TString,TString);
74 
75  TString m_separ;
76  TString m_separ_name;
77  TString m_separ_tit;
78  TString m_separ_null;
79  TString m_unitL;
80  TString m_unitR;
81 
82 };
83 
84 #endif /* HISTOUTILS_H_ */
Definition: HistoUtils.h:20