|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
EPICS statistics PVs of one XPM partition, updated from Module::l0Stats() by update(). More...
#include <PVPStats.hh>
Public Member Functions | |
| PVPStats (Module &, unsigned partition) | |
| Store the module and partition; no PVs until allocate(). | |
| ~PVPStats () | |
| Does nothing; the PVs are not deleted. | |
| void | allocate (const std::string &title, const std::string &dttitle) |
| Delete earlier PVs and create the partition PVs named title, a colon and L0InpRate, L0AccRate, L1Rate, NumL0Inp, NumL0Acc, NumL1, DeadFrac, DeadTime, RunTime or MsgDelay, plus the 32-element dttitle:DeadFLnk. | |
| void | update (bool) |
| Select the partition, read Module::l0Stats() and publish values computed from the change since the last call; the fiducial period is taken as 14/13 us. | |
EPICS statistics PVs of one XPM partition, updated from Module::l0Stats() by update().
| Pds::Xpm::PVPStats::PVPStats | ( | Module & | , |
| unsigned | partition | ||
| ) |
Store the module and partition; no PVs until allocate().
| Pds::Xpm::PVPStats::~PVPStats | ( | ) |
Does nothing; the PVs are not deleted.
| void Pds::Xpm::PVPStats::allocate | ( | const std::string & | title, |
| const std::string & | dttitle | ||
| ) |
Delete earlier PVs and create the partition PVs named title, a colon and L0InpRate, L0AccRate, L1Rate, NumL0Inp, NumL0Acc, NumL1, DeadFrac, DeadTime, RunTime or MsgDelay, plus the 32-element dttitle:DeadFLnk.
| void Pds::Xpm::PVPStats::update | ( | bool | ) |
Select the partition, read Module::l0Stats() and publish values computed from the change since the last call; the fiducial period is taken as 14/13 us.
If enabled, write RunTime, MsgDelay (the L0 delay), the L0 input and accept rates, the counts, DeadFrac and, if L0 was enabled in the interval, DeadTime and the per-link DeadFLnk. Otherwise write only DeadFLnk, from the per-link inhibit times over the elapsed wall-clock time; L1Rate and NumL1 are never written.