#ifndef HTOFINOHISTBOOKER_H #define HTOFINOHISTBOOKER_H #include "hparcond.h" class TList; class TString; class HOnlineTofinoHistFiller; class HTofinoDetector; class HParamList; /** Tofino Histogram Booker. * The container keeps the list of histograms (pool) * and the list of activehistograms and the HOnlineTofinoHistFiller, * which is responsible of booking, creating and filling * of the histograms. All actions on the histograms * have to through HOnlineTofinoHistBooker and HOnlineTofinoHistFiller. */ class HOnlineTofinoHistBooker : public HParCond { protected: HTofinoDetector* fTofino; //! static TList* tofHistpool; //!< list of pool histograms static TList* tofActiveHists; //!< list of active histograms static HOnlineTofinoHistBooker* fTofinoHistBooker; //!< pointer to self static HOnlineTofinoHistFiller* toffiller; //!< pointer to internal HOnlineTofinoHistFiller public: HOnlineTofinoHistBooker(const Char_t* name ="TofinoHistBooker", const Char_t* title ="parameters for Tofino hists", const Char_t* context="TofinoHistBookerProduction"); ~HOnlineTofinoHistBooker(); /// get pointer to container static HOnlineTofinoHistBooker* getExObject(); /// get pointer to container, if /// it does not exist, it will be created static HOnlineTofinoHistBooker* getObject(); /// init the container standalone (no rtdb) Bool_t initStandAlone(); /// get list of active histograms TList* getListOfActiveHists(){return tofActiveHists;} /// get list of pool histograms TList* getListOfHists() {return tofHistpool;} /// 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 HOnlineTofinoHistFiller HOnlineTofinoHistFiller* getTofinoFiller(){return toffiller;} ClassDef(HOnlineTofinoHistBooker,1) // Container for the Tofino Hists }; #endif /*!HTOFINOHISTBOOKER_H*/