CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Public Attributes | List of all members
lucassview::updateHist Struct Reference

create the list of updateable histograms from all available keys More...

+ Collaboration diagram for lucassview::updateHist:

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...
 

Detailed Description

create the list of updateable histograms from all available keys

Author
Lutz Foucar

Definition at line 258 of file histo_updater.cpp.

Constructor & Destructor Documentation

lucassview::updateHist::updateHist ( const TCPClient client)
inline

constructor

Parameters
clientthe client to connecto to the server

Definition at line 267 of file histo_updater.cpp.

Member Function Documentation

void lucassview::updateHist::operator() ( const string &  key) const
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.

Parameters
keyThe 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.

Member Data Documentation

const TCPClient& lucassview::updateHist::_client

the client for the server

Definition at line 261 of file histo_updater.cpp.


The documentation for this struct was generated from the following file: