File indexing completed on 2025-08-03 08:20:54
0001 #include "CommonFuncs.C"
0002
0003 #include <onlmon/spin/SpinMonDraw.h>
0004
0005 #include <onlmon/OnlMonClient.h>
0006
0007
0008 R__LOAD_LIBRARY(libonlspinmon_client.so)
0009
0010 void spinDrawInit(const int online = 0)
0011 {
0012
0013 OnlMonClient *cl = OnlMonClient::instance();
0014
0015 cl->registerHisto("h1_pCspinpatternBlue","SPINMON_0");
0016 cl->registerHisto("h1_pCspinpatternYellow","SPINMON_0");
0017 cl->registerHisto("h1_spinpatternBlue","SPINMON_0");
0018 cl->registerHisto("h1_spinpatternYellow","SPINMON_0");
0019
0020 cl->registerHisto("h2_pCspinpatternBlueUp","SPINMON_0");
0021 cl->registerHisto("h2_pCspinpatternBlueDown","SPINMON_0");
0022 cl->registerHisto("h2_pCspinpatternBlueUnpol","SPINMON_0");
0023
0024 cl->registerHisto("h2_pCspinpatternYellowUp","SPINMON_0");
0025 cl->registerHisto("h2_pCspinpatternYellowDown","SPINMON_0");
0026 cl->registerHisto("h2_pCspinpatternYellowUnpol","SPINMON_0");
0027
0028 cl->registerHisto("h2_spinpatternBlueUp","SPINMON_0");
0029 cl->registerHisto("h2_spinpatternBlueDown","SPINMON_0");
0030 cl->registerHisto("h2_spinpatternBlueUnpol","SPINMON_0");
0031
0032 cl->registerHisto("h2_spinpatternYellowUp","SPINMON_0");
0033 cl->registerHisto("h2_spinpatternYellowDown","SPINMON_0");
0034 cl->registerHisto("h2_spinpatternYellowUnpol","SPINMON_0");
0035
0036 cl->registerHisto("h1_polBlue","SPINMON_0");
0037 cl->registerHisto("h1_polYellow","SPINMON_0");
0038
0039 cl->registerHisto("h1_xingshift","SPINMON_0");
0040 cl->registerHisto("h1_fillnumber","SPINMON_0");
0041 cl->registerHisto("h1_filltypeBlue","SPINMON_0");
0042 cl->registerHisto("h1_filltypeYellow","SPINMON_0");
0043
0044 cl->registerHisto("hCorrect","SPINMON_0");
0045 cl->registerHisto("hAbortgap","SPINMON_0");
0046 cl->registerHisto("hForbidden","SPINMON_0");
0047
0048
0049 for (int i = 0; i < 16; i++){
0050 cl->registerHisto(Form("gl1_counter_trig%d",i),"SPINMON_0");
0051 }
0052
0053
0054 CreateSubsysHostlist("spin_hosts.list", online);
0055
0056
0057 cl->requestHistoBySubSystem("SPINMON_0", 1);
0058 OnlMonDraw *spinmon = new SpinMonDraw("SPINMONDRAW");
0059 cl->registerDrawer(spinmon);
0060 }
0061
0062 void spinDraw(const char *what="ALL")
0063 {
0064 OnlMonClient *cl = OnlMonClient::instance();
0065 cl->requestHistoBySubSystem("SPINMON_0",1);
0066 cl->Draw("SPINMONDRAW",what);
0067 }
0068
0069 void spinSavePlot()
0070 {
0071 OnlMonClient *cl = OnlMonClient::instance();
0072 cl->SavePlot("SPINMONDRAW");
0073 return;
0074 }
0075
0076 void spinHtml()
0077 {
0078 OnlMonClient *cl = OnlMonClient::instance();
0079 cl->MakeHtml("SPINMONDRAW");
0080 return;
0081 }