00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4COMCREATEHISTOGRAM_H 00017 #define TGO4COMCREATEHISTOGRAM_H 00018 00019 #include "Go4CommandsAnalysis/TGo4ComCreateObject.h" 00020 #include "Go4StatusAnalysis/TGo4HistogramStatus.h" 00021 00028 class TGo4ComCreateHistogram : public TGo4ComCreateObject { 00029 public: 00030 00031 TGo4ComCreateHistogram(); 00032 00033 TGo4ComCreateHistogram(const char* obname, const char* classname); 00034 00035 virtual ~TGo4ComCreateHistogram(); 00036 00037 Int_t ExeCom(); 00038 00039 void SetHistogramTitle(const char* title) { fxHistoStatus.SetTitle(title); } 00040 00041 void SetHistogramName(const char* name) 00042 { 00043 fxHistoStatus.SetName(name); 00044 SetObjectName(name); // redundant, keep for compatibility 00045 } 00046 00047 void SetDimension(Int_t dim) { fxHistoStatus.fiDim=dim; } 00048 00049 void SetXbins(Int_t nbins) { fxHistoStatus.fiNbinX=nbins; } 00050 00051 void SetYbins(Int_t nbins) { fxHistoStatus.fiNbinY=nbins; } 00052 00053 void SetZbins(Int_t nbins) { fxHistoStatus.fiNbinZ=nbins; } 00054 00055 void SetXmin(Axis_t min) { fxHistoStatus.fdXmin=min; } 00056 00057 void SetXmax(Axis_t max) { fxHistoStatus.fdXmax=max; } 00058 00059 void SetYmin(Axis_t min) { fxHistoStatus.fdYmin=min; } 00060 00061 void SetYmax(Axis_t max) { fxHistoStatus.fdYmax=max; } 00062 00063 void SetZmin(Axis_t min) { fxHistoStatus.fdZmin=min; } 00064 00065 void SetZmax(Axis_t max) { fxHistoStatus.fdZmax=max; } 00066 00067 private: 00068 00069 TGo4HistogramStatus fxHistoStatus; 00070 00071 00072 ClassDef(TGo4ComCreateHistogram,1) 00073 }; 00074 00075 #endif //TGO4COMCREATEHISTOGRAM_H 00076 00077 //----------------------------END OF GO4 SOURCE FILE ---------------------