00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef CTH_hh
00036 #define CTH_hh
00037
00038 #include "TH1.h"
00039 #include "TH2.h"
00040 #include "TH3.h"
00041
00042 #include "StHbtMaker/Infrastructure/StHbtHistoCollector.h"
00043 #include "StChain.h"
00044
00045 class CTH1D : public TH1D {
00046 public:
00047 CTH1D(): TH1D(){
00048 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00049 collector->Add(this);
00050 }
00051 CTH1D(const char* name, const char* title,
00052 Int_t nbinsx, Axis_t xlow, Axis_t xup) : TH1D(name, title, nbinsx, xlow, xup){
00053 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00054 collector->Add(this);
00055 }
00056 ClassDef(CTH1D,1)
00057 };
00058
00059 class CTH2D : public TH2D {
00060 public:
00061 CTH2D() : TH2D(){
00062 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00063 collector->Add(this);
00064 }
00065 CTH2D(const char* name, const char* title,
00066 Int_t nbinsx, Axis_t xlow, Axis_t xup,
00067 Int_t nbinsy, Axis_t ylow, Axis_t yup) : TH2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup){
00068 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00069 collector->Add(this);
00070 }
00071 ClassDef(CTH2D,1)
00072 };
00073
00074 class CTH3D : public TH3D {
00075 public:
00076 CTH3D() : TH3D(){
00077 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00078 collector->Add(this);
00079 }
00080 CTH3D(const char* name, const char* title,
00081 Int_t nbinsx, Axis_t xlow, Axis_t xup,
00082 Int_t nbinsy, Axis_t ylow, Axis_t yup,
00083 Int_t nbinsz, Axis_t zlow, Axis_t zup) : TH3D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup, nbinsz, zlow, zup){
00084 StHbtHistoCollector* collector = StHbtHistoCollector::Instance();
00085 collector->Add(this);
00086 }
00087 ClassDef(CTH3D,1)
00088 };
00089
00090
00091
00092 #endif
00093