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