|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Example trigger primitive writing a TmoTebData record with fixed values. More...
#include <tmoTebPrimitive.hh>
Inherits Pds::Trg::TriggerPrimitive.
Public Member Functions | |
| int | configure (const nlohmann::json &configureMsg, const nlohmann::json &connectMsg, size_t collectionId) override |
| Does nothing; returns 0. | |
| void | configure (const XtcData::Xtc &xtc, const void *bufEnd) override |
| Call TriggerPrimitive::configure(xtc, bufEnd), which does nothing. | |
| void | event (const Drp::MemPool &pool, uint32_t idx, const XtcData::Xtc &ctrb, XtcData::Xtc &xtc, const void *bufEnd) override |
| Append a TmoTebData with the fixed example values write 0xdeadbeef and monitor 0x12345678 to xtc; the contribution is not inspected. | |
| void | event (cudaStream_t stream, unsigned *const state, float const *const calibBuffers, size_t const calibBufsCnt, uint32_t *const outBuffers, size_t const outBufsCnt, unsigned const *const index, unsigned *const retCode_d) override |
| GPU build (tmoTebPrimitive_gpu.cu): launch a kernel that, in state 1, writes the same fixed values into the TEB input part of the output buffer and moves to state 2. | |
| size_t | size () const override |
| Return sizeof(TmoTebData). | |
Public Member Functions inherited from Pds::Trg::TriggerPrimitive | |
| virtual | ~TriggerPrimitive () |
| Does nothing; empty virtual destructor. | |
Example trigger primitive writing a TmoTebData record with fixed values.
|
overridevirtual |
Does nothing; returns 0.
Implements Pds::Trg::TriggerPrimitive.
|
inlineoverridevirtual |
Call TriggerPrimitive::configure(xtc, bufEnd), which does nothing.
Reimplemented from Pds::Trg::TriggerPrimitive.
|
overridevirtual |
Append a TmoTebData with the fixed example values write 0xdeadbeef and monitor 0x12345678 to xtc; the contribution is not inspected.
Implements Pds::Trg::TriggerPrimitive.
|
overridevirtual |
GPU build (tmoTebPrimitive_gpu.cu): launch a kernel that, in state 1, writes the same fixed values into the TEB input part of the output buffer and moves to state 2.
The CPU build (tmoTebPrimitive_cpu.cc) logs a critical error and aborts.
Reimplemented from Pds::Trg::TriggerPrimitive.
|
inlineoverridevirtual |
Return sizeof(TmoTebData).
Implements Pds::Trg::TriggerPrimitive.