Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:55

0001 #include "ClientHistoList.h"
0002 
0003 #include <TH1.h>
0004 
0005 ClientHistoList::ClientHistoList()
0006   : histo(nullptr)
0007   , serverport(0)
0008   , serverhost("UNKNOWN")
0009   , subsystem("UNKNOWN")
0010 {
0011 }
0012 
0013 ClientHistoList::ClientHistoList(const std::string &subsys)
0014   : histo(nullptr)
0015   , serverport(0)
0016   , serverhost("UNKNOWN")
0017   , subsystem(subsys)
0018 
0019 {
0020 }
0021 
0022 ClientHistoList::~ClientHistoList()
0023 {
0024   delete histo;
0025 }
0026 
0027 TH1 *ClientHistoList::Histo() const
0028 {
0029   return histo;
0030 }
0031 
0032 void ClientHistoList::Histo(TH1 *Histo)
0033 {
0034   histo = Histo;
0035   return;
0036 }
0037 
0038 const std::string
0039 ClientHistoList::ServerHost() const
0040 {
0041   return serverhost;
0042 }
0043 
0044 void ClientHistoList::ServerHost(const std::string &ServerHost)
0045 {
0046   serverhost = ServerHost;
0047   return;
0048 }
0049 
0050 const std::string
0051 ClientHistoList::SubSystem() const
0052 {
0053   return subsystem;
0054 }
0055 
0056 void ClientHistoList::SubSystem(const std::string &SubSystem)
0057 {
0058   subsystem = SubSystem;
0059   return;
0060 }
0061 
0062 void ClientHistoList::identify(std::ostream &os) const
0063 {
0064   os << "Histo" << histo->GetName()
0065      << ", subsystem: " << subsystem
0066      << ", host: " << serverhost
0067      << ", port: " << serverport << std::endl;
0068 }
0069 
0070 void ClientHistoList::ServerPort(const int port)
0071 {
0072   serverport = port;
0073   return;
0074 }
0075 
0076 int ClientHistoList::ServerPort() const
0077 {
0078   return serverport;
0079 }