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

Creates the Bld receiver and the XTC names of one BLD source, either from a built-in table or from EPICS PVs (BldPVA). More...

#include <BldDetector.hh>

Public Member Functions

 BldFactory (const BldPVA &pva, bool simulate)
 Wait (polling every 10 ms) until the PVs of pva are ready, then create a Bld for its multicast address and port with the LCLS-II header layout and the payload described by its PV.
 
 BldFactory (const char *name, unsigned interface, bool simulate)
 Choose the multicast address, names and algorithm for a known BLD name (text after the last colon): ebeam, pcav, gasdet, gmd, xgmd, feespec, or a beam monitor or UsdUsb name from BldNames; then create a Bld on port 10148 with the LCLS-I header layout.
 
 BldFactory (const BldFactory &)
 Copy only the name, type, ID and algorithm (not the receiver or names) and log a warning.
 
 ~BldFactory ()
 Does nothing; empty body.
 
Bld & handler ()
 Return the Bld receiver.
 
XtcData::NameIndex addToXtc (XtcData::Xtc &, const void *bufEnd, const XtcData::NamesId &)
 Add Names for this source with namesId to xtc and return their NameIndex.
 
void addEventData (XtcData::Xtc &, const void *bufEnd, XtcData::NamesLookup &, XtcData::NamesId &)
 Copy the current Bld payload into a DescribedData entry and set the array shapes (fixed sizes, or sizes read from the payload for variable-length arrays).
 
XtcData::VarDef & varDef ()
 Return the field definitions of this source.
 
const std::string & detName () const
 Return the detector name.
 

Detailed Description

Creates the Bld receiver and the XTC names of one BLD source, either from a built-in table or from EPICS PVs (BldPVA).

Constructor & Destructor Documentation

◆ BldFactory() [1/3]

Drp::BldFactory::BldFactory ( const BldPVA &  pva,
bool  simulate 
)

Wait (polling every 10 ms) until the PVs of pva are ready, then create a Bld for its multicast address and port with the LCLS-II header layout and the payload described by its PV.

◆ BldFactory() [2/3]

Drp::BldFactory::BldFactory ( const char *  name,
unsigned  interface,
bool  simulate 
)

Choose the multicast address, names and algorithm for a known BLD name (text after the last colon): ebeam, pcav, gasdet, gmd, xgmd, feespec, or a beam monitor or UsdUsb name from BldNames; then create a Bld on port 10148 with the LCLS-I header layout.

Throws a std::string for an unknown name.

◆ BldFactory() [3/3]

Drp::BldFactory::BldFactory ( const BldFactory &  )

Copy only the name, type, ID and algorithm (not the receiver or names) and log a warning.

◆ ~BldFactory()

Drp::BldFactory::~BldFactory ( )

Does nothing; empty body.

Member Function Documentation

◆ addEventData()

void Drp::BldFactory::addEventData ( XtcData::Xtc &  ,
const void *  bufEnd,
XtcData::NamesLookup &  ,
XtcData::NamesId &   
)

Copy the current Bld payload into a DescribedData entry and set the array shapes (fixed sizes, or sizes read from the payload for variable-length arrays).

◆ addToXtc()

XtcData::NameIndex Drp::BldFactory::addToXtc ( XtcData::Xtc &  ,
const void *  bufEnd,
const XtcData::NamesId &   
)

Add Names for this source with namesId to xtc and return their NameIndex.

◆ detName()

const std::string & Drp::BldFactory::detName ( ) const
inline

Return the detector name.

◆ handler()

Bld & Drp::BldFactory::handler ( )

Return the Bld receiver.

◆ varDef()

XtcData::VarDef & Drp::BldFactory::varDef ( )
inline

Return the field definitions of this source.


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