lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
UtilsConfig.hh File Reference

Declares helpers that print or return descriptions of a ConfigIter's Names and of a Dgram header. More...

Namespaces

namespace  detector
 Namespace of the psalg detector classes and types (Detector, AreaDetector and subclasses, AREADETTYPE, ...).
 

Functions

XtcData::Names & detector::configNames (XtcData::ConfigIter &configo)
 Return the Names that configo's NamesLookup holds for the NamesId of configo.shape(); NameIndex::names() throws if there is none.
 
std::string detector::str_dg_info (const XtcData::Dgram *dg)
 Return a one-line description of dg: transition name, type, time (seconds.nanoseconds), env, payload size and extent.
 
void detector::print_dg_info (const XtcData::Dgram *dg)
 Print str_dg_info(dg) followed by a newline to stdout.
 
std::string detector::str_config_names (XtcData::ConfigIter &configo)
 Return a description of configo.shape()'s NamesId and Names: names id, detName, detType, detId, segment, number of names and alg name.
 
void detector::print_config_names (XtcData::ConfigIter &configo)
 Print str_config_names(configo) to stdout; the string is passed to printf as the format string and no newline is added.
 

Detailed Description

Declares helpers that print or return descriptions of a ConfigIter's Names and of a Dgram header.