#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) | |
virtual | ~ScanControlRODHisto () |
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? | |
void | abort () |
Signal that the next checkScanComplete should return true. | |
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 | |
unsigned int | getEventCounter (const RodLabel &rodLabel, int slave, bool fromMaster) |
Find the event counter on the ROD. | |
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 |
std::map< RodLabel, bool > | reportedFinished |
boost::shared_ptr< Scan > | scan |
boost::shared_ptr< ScanEx > | scanEx |
int | finalBin |
int | finalTrigger |
int | sectionStartBin |
int | sectionEndBin |
int | sectionEndTrigger |
time_t | scanStart |
bool | aborting |
Definition at line 201 of file SctApiHisto.h.
|
Signal that the next checkScanComplete should return true.
Implements SctApi::ScanControl. Definition at line 2432 of file SctApiHisto.cxx. References aborting. |
|
Is the scan complete?
Implements SctApi::ScanControl. Definition at line 2378 of file SctApiHisto.cxx. References aborting, and checkScanCompleteROD(). Here is the call graph for this function: ![]() |
|
Is this ROD scan complete?
Reimplemented in SctApi::ScanControlTIMHisto. Definition at line 2480 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::RodScanEx::bitFieldDSP, SctApi::RodLabel::crate, SctApi::SctApi::dspSingleRead(), SctApi::RodScanEx::firstSlave, getEventCounter(), lastBin, SctApi::RodLabel::partition, SctApi::RodLabel::rod, sectionEndBin, and sectionEndTrigger. Referenced by checkScanComplete(). Here is the call graph for this function: ![]() |
|
Report on status of histogramming and event traps.
Definition at line 2857 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::dspBlockRead(), SctApi::SctApi::dspSingleRead(), SctApi::SctApi::getRodRevision(), and SctApi::RodLabel::rod. Here is the call graph for this function: ![]() |
|
Tidy up, read out and save histogram.
Implements SctApi::ScanControl. Reimplemented in SctApi::ScanControlTIMHisto, and SctApi::ScanControlAsyncHisto. Definition at line 2630 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::dspSingleBlockRead(), SctApi::SctApi::dspSingleBlockWrite(), SctApi::SctApi::getRodRevision(), SctApi::SctApi::ucid(), and SctApi::useCCode(). Referenced by SctApi::ScanControlAsyncHisto::finishHistogram(), and SctApi::ScanControlTIMHisto::finishHistogram(). Here is the call graph for this function: ![]() |
|
Provides cache of data which will be the same for all modules.
Definition at line 2143 of file SctApiHisto.cxx. References SctApi::Utility::MemoryBlock::address(), SctApi::ScanControl::api, SctApi::SctApi::primReadSlaveDsp(), SctApi::RodLabel::rod, and SctApi::SctApi::sendData(). Here is the call graph for this function: ![]() |
|
Find the event counter on the ROD.
Definition at line 2436 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::dspSingleBlockRead(), SctApi::SctApi::dspSingleRead(), SctApi::SctApi::getRodRevision(), and SctApi::RodLabel::rod. Referenced by SctApi::ScanControlTIMHisto::checkScanCompleteROD(), and checkScanCompleteROD(). Here is the call graph for this function: ![]() |
|
This caches the result from sendData and allows indexing each bin individually.
Definition at line 2089 of file SctApiHisto.cxx. References SctApi::Utility::MemoryBlock::address(), SctApi::ScanControl::api, SctApi::RodLabel::crate, SctApi::SctApi::getRodRevision(), SctApi::SctApi::mrs, SctApi::SctApi::primReadSlaveDsp(), SctApi::RodLabel::rod, SctApi::SctApi::sendData(), SctApi::Utility::MemoryBlock::size(), and SctApi::SctApiException::what(). Here is the call graph for this function: ![]() |
|
Return the processing time for the last trigger.
Definition at line 2786 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::dspBlockRead(), SctApi::SctApi::getRodRevision(), and SctApi::RodLabel::rod. Here is the call graph for this function: ![]() |
|
Return head and tail of iframe and xframe buffers.
Definition at line 2819 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::dspBlockRead(), SctApi::SctApi::getRodRevision(), and SctApi::RodLabel::rod. Here is the call graph for this function: ![]() |
|
Setup variables after starting histogramming?
Implements SctApi::ScanControl. Definition at line 2203 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::mrs, scanStart, Sct::StringStreamer, and SctApi::SctApi::ucid(). Here is the call graph for this function: ![]() |
|
Move to the next bin (not necessary).
Implements SctApi::ScanControl. Reimplemented in SctApi::ScanControlTIMHisto, and SctApi::ScanControlAsyncHisto. Definition at line 2297 of file SctApiHisto.cxx. References SctApi::ScanControl::api, SctApi::SctApi::awaitResponse(), finalBin, findNextSection(), sectionEndBin, sectionEndTrigger, sectionStartBin, SctApi::SctApi::sendPrimList(), and SctApi::SctApi::startHistogramTask(). Here is the call graph for this function: ![]() |
|
Restore modules after scanning.
Definition at line 2774 of file SctApiHisto.cxx. References SctApi::ScanControl::api, and SctApi::SctApi::setErrorMasks(). Here is the call graph for this function: ![]() |
|
Read histogram data.
Definition at line 1355 of file SctApiHisto.cxx. References SctApi::ScanControl::api, scan_result_ptrs::data, SctApi::SctApiConfigCache::getFromMid(), SctApi::SctApi::getModuleConfigCache(), SctApi::SctApi::mrs, and readHistogramRawData(). Referenced by readHistograms(). Here is the call graph for this function: ![]() |
|
Read all module's histogram data.
Definition at line 1228 of file SctApiHisto.cxx. References SctApi::ScanControl::api, checkDebugOption(), SctApi::SctApi::convertToString(), scan_result_ptrs::data, SctApi::SctApi::findModule(), SctApi::Utility::getpcrc(), scan_result_ptrs::header, SctApi::SctApi::listRods(), SctApi::SctApi::mrs, scan_result_ptrs::nErrorEvents, scan_result_ptrs::nEvents, scan_result_ptrs::points, readHistogramData(), SctApi::readHistogramToFile(), SctApi::readHistogramToIS(), ScanHeader::scanNumber, and SctApi::SctApi::ucid(). Here is the call graph for this function: ![]() |
|
Report on event errors found in slaves.
Implements SctApi::ScanControl. Definition at line 2782 of file SctApiHisto.cxx. References SctApi::ScanControl::api, and SctApi::SctApi::reportEventErrors(). Here is the call graph for this function: ![]() |
|
Report on progress at timeout.
Implements SctApi::ScanControl. Definition at line 2244 of file SctApiHisto.cxx. |
|
Check possible and start.
Implements SctApi::ScanControl. Reimplemented in SctApi::ScanControlTIMHisto, and SctApi::ScanControlAsyncHisto. Definition at line 1890 of file SctApiHisto.cxx. References checkDebugOption(). Here is the call graph for this function: ![]() |