#ifndef HMDCHISTBOOKER_H #define HMDCHISTBOOKER_H #include "hparcond.h" class TList; class TString; class HOnlineMdcHistFiller; class HMdcDetector; class HParamList; /** Mdc Histogram Booker. * The container keeps the list of histograms (pool) * and the list of activehistograms and the HOnlineMdcHistFiller, * which is responsible of booking, creating and filling * of the histograms. All actions on the histograms * have to through HOnlineMdcHistBooker and HOnlineMdcHistFiller. */ class HOnlineMdcHistBooker : public HParCond { protected: HMdcDetector* fMdc; //! static TList* mdcHistpool; //!< pointer to histogram pool list static TList* mdcActiveHists; //!< pointer to histogram active list static HOnlineMdcHistBooker* fMdcHistBooker; //!< pointer to self static HOnlineMdcHistFiller* mdcfiller; //!< pointer to internal HOnlineMdcHistFiller public: HOnlineMdcHistBooker(const Char_t* name ="MdcHistBooker", const Char_t* title ="parameters for Mdc hists", const Char_t* context="MdcHistBookerProduction"); ~HOnlineMdcHistBooker(); /// get pointer to container static HOnlineMdcHistBooker* getExObject(); /// get pointer to container, if /// the container does not exist it will be created static HOnlineMdcHistBooker* getObject(); /// init the conatiner (no rtdb) Bool_t initStandAlone(); /// get the pointer to the list of active hists TList* getListOfActiveHists(){return mdcActiveHists;} /// get the pointer to the hist pool list TList* getListOfHists() {return mdcHistpool;} /// reset all hists in active list void resetActiveList(Int_t level,Int_t count); /// put the parameter to the list of HParCond void putParams(HParamList*); /// get the parameters from the list of HParCond Bool_t getParams(HParamList*); /// reset the container void clear(); /// print the parameter to the screen void printParam(void); /// print the status of the container to the screen void printStatus(void); /// get the pointer to the internal HOnlineMdcHistFiller HOnlineMdcHistFiller* getMdcFiller(){return mdcfiller;} ClassDef(HOnlineMdcHistBooker,1) // Container for the MDC Hists }; #endif /*!HMDCHISTBOOKER_H*/