CFEL - ASG Software Suite  2.5.0
CASS
Classes | Functions
lucassview Namespace Reference

Classes

struct  deleteObsoleteHistogram
 delete all root histograms that are not on the list More...
 
class  TCPClient
 the tcp client that connects to the cass server More...
 
struct  updateHist
 create the list of updateable histograms from all available keys More...
 
struct  writeObject
 write the object to file More...
 

Functions

void updateCanvases (TSeqCollection *list)
 update the contents of the canvases More...
 
void iterateListAndAddDisplayedHistograms (TSeqCollection *list, std::list< string > &updateList)
 iteratively go through canvas list and find histgrams More...
 
list< string > checkList (const list< string > &allkeys)
 create the list of updateable histograms from all available keys More...
 
bool operator== (const cass::Result< float >::axe_t &ca, const TAxis &ra)
 comapre axis for equalitiy More...
 
bool operator!= (const cass::Result< float >::axe_t &ca, const TAxis &ra)
 comapre axis for inequality More...
 

Function Documentation

list<string> lucassview::checkList ( const list< string > &  allkeys)

create the list of updateable histograms from all available keys

First add all cass histograms that are not present as root histograms. Then go through all canvases and add the histograms that are shown in them and add them to the list returned. For this one must go through all canvases and the pads within the canvases. The pads contain the histograms.

Returns
list of keys that need to be updated
Parameters
allkeysall available keys on the server
Author
Lutz Foucar

Definition at line 147 of file histo_updater.cpp.

References iterateListAndAddDisplayedHistograms().

Referenced by HistogramUpdater::syncHistograms().

void lucassview::iterateListAndAddDisplayedHistograms ( TSeqCollection *  list,
std::list< string > &  updateList 
)

iteratively go through canvas list and find histgrams

when a histogram is found add it to the updateList, if it is another pad, iterate through its primatives

Parameters
listThe list of TObjects to iterate through
updateListThe list containg the names of the found histgrams
Author
Lutz Foucar

Definition at line 118 of file histo_updater.cpp.

Referenced by checkList().

bool lucassview::operator!= ( const cass::Result< float >::axe_t &  ca,
const TAxis &  ra 
)

comapre axis for inequality

Returns
the inverse of opertator==
Parameters
cathe axis of the cass histogram
rathe axis of the root histogram
Author
Lutz Foucar

Definition at line 249 of file histo_updater.cpp.

bool lucassview::operator== ( const cass::Result< float >::axe_t &  ca,
const TAxis &  ra 
)

comapre axis for equalitiy

check whether the cass histogram axis and the root histogram axis are the same. Test for number of bins, low and high ends and the title of the axis.

Returns
true when both axis are the same
Parameters
cathe axis of the cass histogram
rathe axis of the root histogram
Author
Lutz Foucar

Definition at line 233 of file histo_updater.cpp.

References cass::Axis< T >::low, cass::Axis< T >::nBins, cass::Axis< T >::title, and cass::Axis< T >::up.

void lucassview::updateCanvases ( TSeqCollection *  list)

update the contents of the canvases

recursively iterate through lists if object is a pad, update it and iterate through its primitives.

Parameters
listthe list of TObjects to iterate through
Author
Lutz Foucar

Definition at line 50 of file histo_updater.cpp.

Referenced by HistogramUpdater::syncHistograms().