#include <SctApiHisto.h>
Inheritance diagram for SctApi::ScanControlRODHisto:
Public Types | |
typedef std::pair< std::pair< int, int >, std::pair< int, int > > | TrapBuffers |
Public Member Functions | |
ScanControlRODHisto (SctApi &api, boost::shared_ptr< Scan > aScan, boost::shared_ptr< ScanEx > aScanEx) | |
void | startHistogramming () |
Check possible and start. | |
void | initialisePolling () |
Setup variables after starting histogramming? | |
void | reportEventErrors () |
Report on event errors found in slaves. | |
TrapBuffers | getTrapBuffers (const RodLabel rlabel, int dsp) |
Return head and tail of iframe and xframe buffers. | |
unsigned int | getProcTime (const RodLabel rlabel, int dsp) |
Return the processing time for the last trigger. | |
void | dumpHistoStatus (const RodLabel label, int dsp) |
Report on status of histogramming and event traps. | |
void | reportTimeout () |
Report on progress at timeout. | |
void | nextBin () |
Move to the next bin (not necessary). | |
bool | checkScanComplete (bool &progressMade, bool &newBin) |
Is the scan complete? | |
virtual bool | checkScanCompleteROD (const RodLabel &rodLabel, bool &progressMade, bool &newBin, int &totalBin) |
Is this ROD scan complete? | |
void | finishHistogram (bool success) |
Tidy up, read out and save histogram. | |
std::pair< RodLabel, unsigned int > | findModuleSlave (unsigned int mid) |
Protected Member Functions | |
void | readHistograms () |
Read all module's histogram data. | |
scan_result_ptrs | readHistogramData (UINT32 mid, int frame=0) |
Read histogram data. | |
char * | readHistogramRawData (UINT32 mid, int frame=0) |
void | postScanModuleSetup () |
Restore modules after scanning. | |
unsigned long * | getHistogramChunk (RodLabel label, int slave, unsigned long offset, unsigned long size) |
This caches the result from sendData and allows indexing each bin individually. | |
unsigned long * | getEventCountChunk (RodLabel label, int slave) |
Provides cache of data which will be the same for all modules. | |
bool | checkDebugOption (int opt) |
bool | findNextSection () |
Protected Attributes | |
std::map< RodLabel, int > | lastBin |
std::map< RodLabel, int > | lastEvent |
boost::shared_ptr< Scan > | scan |
boost::shared_ptr< ScanEx > | scanEx |
int | finalBin |
int | finalTrigger |
int | sectionStartBin |
int | sectionEndBin |
int | sectionEndTrigger |
time_t | scanStart |
Definition at line 150 of file SctApiHisto.h.
|
Is the scan complete?
Implements SctApi::ScanControl. |
|
Is this ROD scan complete?
Reimplemented in SctApi::ScanControlTIMHisto. |
|
Report on status of histogramming and event traps.
|
|
Tidy up, read out and save histogram.
Implements SctApi::ScanControl. |
|
Provides cache of data which will be the same for all modules.
|
|
This caches the result from sendData and allows indexing each bin individually.
|
|
Return the processing time for the last trigger.
|
|
Return head and tail of iframe and xframe buffers.
|
|
Setup variables after starting histogramming?
Implements SctApi::ScanControl. |
|
Move to the next bin (not necessary).
Implements SctApi::ScanControl. Reimplemented in SctApi::ScanControlTIMHisto. |
|
Restore modules after scanning.
|
|
Read histogram data.
|
|
Read all module's histogram data.
|
|
Report on event errors found in slaves.
Implements SctApi::ScanControl. |
|
Report on progress at timeout.
Implements SctApi::ScanControl. |
|
Check possible and start.
Implements SctApi::ScanControl. Reimplemented in SctApi::ScanControlTIMHisto. |