lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::BldPVA Class Reference

Looks up the multicast address, port and payload description of a BLD source through EPICS PVs: ID:BLD1_MULT_ADDR and ID:BLD1_MULT_PORT (ca) and ID:BLD_PAYLOAD (pva). More...

#include <BldDetector.hh>

Public Member Functions

 BldPVA (std::string det, unsigned interface)
 Split det at the plus signs into detector name, type and ID, and create the PV monitors for address, port and payload with the ID as prefix.
 
 ~BldPVA ()
 Does nothing; empty body.
 
std::string detName () const
 Return the detector name parsed from det.
 
std::string detType () const
 Return the detector type parsed from det.
 
std::string detId () const
 Return the detector ID parsed from det (also the PV prefix).
 
XtcData::Alg alg () const
 Return the algorithm (raw, version 1.0.0).
 
unsigned interface () const
 Return the interface address given to the constructor.
 
bool ready () const
 Log the state of the three PVs and return true if all of them are ready.
 
unsigned addr () const
 Return the address PV parsed as a dotted IPv4 address, in host byte order (0 if it does not parse).
 
unsigned port () const
 Return the port PV value.
 
XtcData::VarDef varDef (unsigned &sz, std::vector< unsigned > &) const
 Return BldDescriptor::get() for the payload PV, filling sz and the array sizes.
 

Detailed Description

Looks up the multicast address, port and payload description of a BLD source through EPICS PVs: ID:BLD1_MULT_ADDR and ID:BLD1_MULT_PORT (ca) and ID:BLD_PAYLOAD (pva).

Constructor & Destructor Documentation

◆ BldPVA()

Drp::BldPVA::BldPVA ( std::string  det,
unsigned  interface 
)

Split det at the plus signs into detector name, type and ID, and create the PV monitors for address, port and payload with the ID as prefix.

◆ ~BldPVA()

Drp::BldPVA::~BldPVA ( )

Does nothing; empty body.

Member Function Documentation

◆ addr()

unsigned Drp::BldPVA::addr ( ) const

Return the address PV parsed as a dotted IPv4 address, in host byte order (0 if it does not parse).

◆ alg()

XtcData::Alg Drp::BldPVA::alg ( ) const
inline

Return the algorithm (raw, version 1.0.0).

◆ detId()

std::string Drp::BldPVA::detId ( ) const
inline

Return the detector ID parsed from det (also the PV prefix).

◆ detName()

std::string Drp::BldPVA::detName ( ) const
inline

Return the detector name parsed from det.

◆ detType()

std::string Drp::BldPVA::detType ( ) const
inline

Return the detector type parsed from det.

◆ interface()

unsigned Drp::BldPVA::interface ( ) const
inline

Return the interface address given to the constructor.

◆ port()

unsigned Drp::BldPVA::port ( ) const

Return the port PV value.

◆ ready()

bool Drp::BldPVA::ready ( ) const

Log the state of the three PVs and return true if all of them are ready.

◆ varDef()

XtcData::VarDef Drp::BldPVA::varDef ( unsigned &  sz,
std::vector< unsigned > &   
) const

Return BldDescriptor::get() for the payload PV, filling sz and the array sizes.


The documentation for this class was generated from the following file: