#ifndef HWALLHISTBOOKER_H #define HWALLHISTBOOKER_H #include "hparcond.h" class TList; class TString; class HOnlineWallHistFiller; class HWallDetector; class HParamList; /** Wall Histogram Booker. * The container keeps the list of histograms (pool) * and the list of activehistograms and the HOnlineWallHistFiller, * which is responsible of booking, creating and filling * of the histograms. All actions on the histograms * have to through HOnlineWallHistBooker and HOnlineWallHistFiller. */ class HOnlineWallHistBooker : public HParCond { protected: HWallDetector* fWall; //! static TList* wallHistpool; //!< list of pool histograms static TList* wallActiveHists; //!< list of active histograms static HOnlineWallHistBooker* fWallHistBooker; //!< pointer to self static HOnlineWallHistFiller* wallfiller; //!< pointer to internal HOnlineWallHistFiller public: HOnlineWallHistBooker(const Char_t* name ="WallHistBooker", const Char_t* title ="parameters for Wall hists", const Char_t* context="WallHistBookerProduction"); ~HOnlineWallHistBooker(); /// get pointer to container static HOnlineWallHistBooker* getExObject(); /// get pointer to container, if /// it does not exist, it will be created static HOnlineWallHistBooker* getObject(); /// init the container standalone (no rtdb) Bool_t initStandAlone(); /// get list of active histograms TList* getListOfActiveHists(){return wallActiveHists;} /// get list of pool histograms TList* getListOfHists() {return wallHistpool;} /// reset histograms of active list void resetActiveList(Int_t level,Int_t count); /// put parameter to lsit of HParCond void putParams(HParamList*); /// ge parameter from list of HParCond Bool_t getParams(HParamList*); /// reset the container void clear(); Bool_t check(); /// print parameter to the screen void printParam(void); /// print status of the container to the screen void printStatus(void); /// get pointer t the internal HOnlineWallHistFiller HOnlineWallHistFiller* getWallFiller(){return wallfiller;} ClassDef(HOnlineWallHistBooker,1) // Container for the Wall Hists }; #endif /*!HWALLHISTBOOKER_H*/