1 #ifndef _ONL_MON_CLIENT__H_
2 #define _ONL_MON_CLIENT__H_
45 typedef std::map<std::string, HistMode_t> HistModeMap_t;
46 HistModeMap_t m_hist_mode;
48 typedef enum { BIN_RUN = 1, BIN_SPILL = 2, BIN_EVENT = 3, BIN_SPILL_MIN = 4, BIN_SPILL_MAX = 5 } BasicIdBin_t;
49 typedef enum { BIN_N_EVT = 1, BIN_N_SP = 2 } BasicInfoBin_t;
53 typedef std::vector<TH1*> HistList_t;
56 typedef std::map<int, TH1*> SpillHistMap_t;
57 typedef std::map<std::string, SpillHistMap_t> Name2SpillHistMap_t;
58 Name2SpillHistMap_t m_map_hist_sp;
63 typedef std::vector<OnlMonClient*> SelfList_t;
64 static SelfList_t m_list_us;
65 static bool m_bl_clear_us;
72 void Title(
const std::string &title) { m_title = title; }
73 std::string
Title() {
return m_title; }
80 void GetBasicID(
int* run_id=0,
int* spill_id=0,
int* event_id=0,
int* spill_id_min=0,
int* spill_id_max=0);
83 TH1*
FindMonHist(
const std::string name,
const bool non_null=
true);
95 int SendHist(TSocket* sock,
int sp_min,
int sp_max);
105 void ClearSpillHist();
106 void MakeSpillHist(
const int spill_id,
const int spill_id_new=0);
107 void DisableSpillHist();
108 void MakeMergedHist(HistList_t& list_h1,
const int sp_min=0,
const int sp_max=0);
110 void ClearHistList(HistList_t& list_h1);
111 void ClearCanvasList();
112 int DrawCanvas(
const bool at_end=
false);
virtual int EndOnlMon(PHCompositeNode *topNode)
OnlMonCanvas * GetCanvas(const int num=0)
int SendHist(TSocket *sock, int sp_min, int sp_max)
void GetBasicCount(int *n_evt=0, int *n_sp=0)
int process_event(PHCompositeNode *topNode)
virtual int InitOnlMon(PHCompositeNode *topNode)
void RegisterHist(TH1 *h1, const HistMode_t mode=MODE_ADD)
void Title(const std::string &title)
virtual int FindAllMonHist()
int InitRun(PHCompositeNode *topNode)
void NumCanvases(const int num)
virtual int ProcessEventOnlMon(PHCompositeNode *topNode)
void GetBasicID(int *run_id=0, int *spill_id=0, int *event_id=0, int *spill_id_min=0, int *spill_id_max=0)
virtual OnlMonClient * Clone()
int End(PHCompositeNode *topNode)
Called at the end of all processing.
int Init(PHCompositeNode *topNode)
static bool GetClearUsFlag()
TH1 * FindMonHist(const std::string name, const bool non_null=true)
virtual int DrawMonitor()
virtual int InitRunOnlMon(PHCompositeNode *topNode)
Base class for the OnlMon subsystem module.
static void SetClearUsFlag(const bool val)