CFEL - ASG Software Suite
2.5.0
CASS
|
create the list of updateable histograms from all available keys More...
Public Member Functions | |
updateHist (const TCPClient &client) | |
constructor More... | |
void | operator() (const string &key) const |
update the histogram with key More... | |
Public Attributes | |
const TCPClient & | _client |
the client for the server More... | |
create the list of updateable histograms from all available keys
Definition at line 258 of file histo_updater.cpp.
|
inline |
constructor
client | the client to connecto to the server |
Definition at line 267 of file histo_updater.cpp.
|
inline |
update the histogram with key
retrieve the cass histogram for key. Then try to get the root histogram that has the name "key". Find out what dimension the cass histogram has. Depending on that one treats the histograms differently. In case of the 2D histogram one checks whether the root histogram already exists (the returned pointer is non Zero). If it does exist, check whether the axis properties are the same. When they differ then set the root axis properties to be the same as the properties that the cass histogram has. When the root histogram does not exist, create it from the cass histogram properties.
Now copy the histogram contents from the cass histogram to the root histogram. After that copy the over and underflow quadrants and the number of fills to the root histogram.
In case the histogram is a 1D histogram make the same procedure as you did with the 2D histogram, just only for the x-axis. When then histogram is a 0D histogram or has a different dimension ignore it.
key | The key that the histogram has on the server |
copy histogram contents
copy over / underflow
copy number of fills (how many shots have been accumulated)
copy histogram contents
copy over / underflow
copy number of fills (how many shots have been accumulated)
Definition at line 292 of file histo_updater.cpp.
References cass::Result< T >::axis(), cass::Result< T >::dim(), cass::Result< T >::getValue(), and value.
const TCPClient& lucassview::updateHist::_client |
the client for the server
Definition at line 261 of file histo_updater.cpp.