2 #include <onlmon/tpot/TpotMonDraw.h>
3 #include <onlmon/OnlMonClient.h>
8 R__LOAD_LIBRARY(libonltpotmon_client.so)
17 cl->registerDrawer(tpotmon);
20 const auto detector_names = tpotmon->get_detnames_sphenix();
23 for(
const std::string& hname: {
"m_counters",
"m_detector_occupancy_phi",
"m_detector_occupancy_z",
"m_resist_occupancy_phi",
"m_resist_occupancy_z" } )
24 { cl->registerHisto( hname,
"TPOTMON_0" ); }
26 for(
const std::string& hname: {
"m_adc_sample",
"m_counts_sample",
"m_hit_charge",
"m_hit_multiplicity",
"m_hit_vs_channel" } )
28 for(
const auto& detname : detector_names )
29 { cl->registerHisto( hname+
"_"+detname,
"TPOTMON_0" ); }
37 cl->requestHistoBySubSystem(
"TPOTMON_0", 1);
43 cl->requestHistoBySubSystem(
"TPOTMON_0",1);
44 cl->Draw(
"TPOT", what);