Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ClientHistoList.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ClientHistoList.cc
1
#include "
ClientHistoList.h
"
2
3
#include <TH1.h>
4
5
ClientHistoList::ClientHistoList
()
6
: histo(nullptr)
7
, serverport(0)
8
, serverhost(
"UNKNOWN"
)
9
, subsystem(
"UNKNOWN"
)
10
{
11
}
12
13
ClientHistoList::ClientHistoList
(
const
std::string
&subsys)
14
: histo(nullptr)
15
, serverport(0)
16
, serverhost(
"UNKNOWN"
)
17
, subsystem(subsys)
18
19
{
20
}
21
22
ClientHistoList::~ClientHistoList
()
23
{
24
delete
histo
;
25
}
26
27
TH1 *
ClientHistoList::Histo
()
const
28
{
29
return
histo
;
30
}
31
32
void
ClientHistoList::Histo
(TH1 *Histo)
33
{
34
histo
=
Histo
;
35
return
;
36
}
37
38
const
std::string
39
ClientHistoList::ServerHost
()
const
40
{
41
return
serverhost
;
42
}
43
44
void
ClientHistoList::ServerHost
(
const
std::string
&ServerHost)
45
{
46
serverhost
=
ServerHost
;
47
return
;
48
}
49
50
const
std::string
51
ClientHistoList::SubSystem
()
const
52
{
53
return
subsystem
;
54
}
55
56
void
ClientHistoList::SubSystem
(
const
std::string
&
SubSystem
)
57
{
58
subsystem
=
SubSystem
;
59
return
;
60
}
61
62
void
ClientHistoList::identify
(std::ostream &
os
)
const
63
{
64
os <<
"Histo"
<<
histo
->GetName()
65
<<
", subsystem: "
<<
subsystem
66
<<
", host: "
<<
serverhost
67
<<
", port: "
<<
serverport
<< std::endl;
68
}
69
70
void
ClientHistoList::ServerPort
(
const
int
port)
71
{
72
serverport
= port;
73
return
;
74
}
75
76
int
ClientHistoList::ServerPort
()
const
77
{
78
return
serverport
;
79
}
OnlMon
blob
main
onlmonclient
ClientHistoList.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration