|
| | EaDetector (Parameters &, const std::string &pvCfgFile, MemPoolCpu &) |
| |
| virtual | ~EaDetector () |
| |
| unsigned | connect (const nlohmann::json &, const std::string &collectionId, std::string &msg) |
| |
| unsigned | disconnect () |
| |
| unsigned | configure (const std::string &config_alias, XtcData::Xtc &xtc, const void *bufEnd) override |
| | Run XpmDetector::configure (returning 1 if it fails), reset the stale count and add the PV names from the EpicsArchMonitor to xtc.
|
| |
| unsigned | unconfigure () |
| |
| void | slowupdate (XtcData::Xtc &xtc, const void *bufEnd) override |
| | Add the current PV values and their stale flags to xtc with EpicsArchMonitor::getData, which also sets the stale count returned by nStales().
|
| |
| void | event (XtcData::Dgram &dgram, const void *bufEnd, PGPEvent *event, uint64_t l1count) override |
| | Does nothing; empty body (marked unused).
|
| |
| const std::unique_ptr< EpicsArchMonitor > & | monitor () const |
| |
| const uint64_t | nStales () const |
| |
| | Detector (Parameters *para, MemPool *pool) |
| | Set nodeId to -1u and virtChan to 0, keep para and pool, and allocate a transition buffer of para->maxTrSize bytes.
|
| |
| virtual | ~Detector () |
| | Does nothing; empty body.
|
| |
| virtual Gpu::Detector * | gpuDetector () |
| | Return nullptr; Gpu::Detector overrides it to return itself.
|
| |
| virtual unsigned | beginrun (XtcData::Xtc &xtc, const void *bufEnd, const nlohmann::json &runInfo) |
| | Return 0 without doing anything unless overridden.
|
| |
| virtual unsigned | beginstep (XtcData::Xtc &xtc, const void *bufEnd, const nlohmann::json &stepInfo) |
| | Return 0 without doing anything unless overridden.
|
| |
| virtual unsigned | enable (XtcData::Xtc &xtc, const void *bufEnd, const nlohmann::json &info) |
| | Return 0 without doing anything unless overridden.
|
| |
| virtual unsigned | disable (XtcData::Xtc &xtc, const void *bufEnd, const nlohmann::json &info) |
| | Return 0 without doing anything unless overridden.
|
| |
| virtual void | event (XtcData::Dgram &dgram, const void *bufEnd, const Pds::Eb::ResultDgram &result) |
| | Does nothing unless overridden; called with the trigger result for an event.
|
| |
| virtual XtcData::Shape | shapeCube (unsigned rawDefIndex, unsigned valueIndex, XtcData::DescData &rawData) |
| | Return the shape in rawData of entry valueIndex of raw definition rawDefIndex (from rawDef()).
|
| |
| virtual unsigned | addToCube (unsigned rawDefIndex, unsigned valueIndex, unsigned subIndex, double *dst, unsigned bin, XtcData::DescData &rawData) |
| | Generic cube accumulation without calibration: add the value or array entry valueIndex of rawData, converted to double, into bin bin of dst (entries of any XTC numeric type).
|
| |
| virtual unsigned | subIndices () |
| | Return 0 unless overridden.
|
| |
| virtual unsigned | rawNamesIndex () |
| | Return 0 unless overridden.
|
| |
| virtual unsigned | cubeNamesIndex () |
| | Return 0 unless overridden.
|
| |
| virtual unsigned | cubeBinBytes () |
| | Return ten times the pebble buffer size unless overridden.
|
| |
| virtual std::vector< XtcData::VarDef > & | rawDef () |
| | Log an error and abort; detectors used for cube binning must override it.
|
| |
| virtual unsigned | maxMonBufSize () |
| | Return the pebble buffer size, times 10 when Parameters::nCubeWorkers is non-zero.
|
| |
| virtual unsigned | configureScan (const nlohmann::json &stepInfo, XtcData::Xtc &xtc, const void *bufEnd) |
| | Return 1 (failure) unless overridden, per the code comment.
|
| |
| virtual unsigned | stepScan (const nlohmann::json &stepInfo, XtcData::Xtc &xtc, const void *bufEnd) |
| | Return 1 (failure) unless overridden.
|
| |
| virtual Pds::TimingHeader * | getTimingHeader (uint32_t index) const |
| | Return the start of DMA buffer index as a TimingHeader pointer.
|
| |
| virtual bool | scanEnabled () |
| | Return false unless overridden.
|
| |
| XtcData::Xtc & | transitionXtc () |
| | Return the start of the transition buffer as an Xtc reference.
|
| |
| const void * | trXtcBufEnd () |
| | Return the end of the transition buffer.
|
| |
| XtcData::NamesLookup & | namesLookup () |
| | Return the names lookup table of this detector.
|
| |