|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Namespace of the XTC data-format classes (Xtc, Dgram, TypeId, Src, NamesId, ShapesData, DescData, iterators, ...). More...
Classes | |
| class | Alg |
| Algorithm name (char[MaxNameSize]) plus an AlgVersion. More... | |
| class | AlgVersion |
| Version packed in 32 bits: major in bits 23:16, minor in bits 15:8, micro in bits 7:0. More... | |
| class | Array |
| Non-owning view of an array of T: a data pointer, a pointer to a shape array and a rank. More... | |
| class | AutoParentAlloc |
| Xtc whose alloc() overloads also add the same size to the extent of a parent (and optionally a grandparent) Xtc. More... | |
| class | BlockDgram |
| Builds a Dgram in a caller-supplied buffer by appending copies of pre-built Names, Shapes and Data blocks. More... | |
| class | ConfigIter |
| NamesIter subclass that, besides Names, keeps pointers to ShapesData xtcs keyed by the low 8 bits (NamesId::namesId()) of their NamesId. More... | |
| class | CreateData |
| Writer that builds a ShapesData field by field: the constructor appends the ShapesData, a Shapes child with room for numArrays() Shape entries, and an empty Data child. More... | |
| class | Damage |
| 16-bit damage word. More... | |
| class | Data |
| Child xtc of ShapesData with type TypeId::Data (version 0). More... | |
| class | DataDef |
| VarDef that also keeps a map from field name to the order in which it was added. More... | |
| class | DataIter |
| XtcIterator subclass that stores pointers to ShapesData xtcs in a 2-entry array indexed by NamesId::namesId() (low 8 bits of the NamesId). More... | |
| class | DescData |
| Reader for a ShapesData: combines it with the NameIndex of its Names to compute the byte offset of each field in the Data payload. More... | |
| class | DescribedData |
| Writer that appends a ShapesData with an empty Data child; the caller writes the payload at data() and then records its length with set_data_length(). More... | |
| class | Dgram |
| Datagram: the Transition header immediately followed by the top-level Xtc, whose payload follows it in memory. More... | |
| class | L1Dgram |
| Dgram with accessors for env bits 23:16. More... | |
| class | Level |
| Wrapper class for the Level::Type enum and its name() lookup. More... | |
| class | Name |
| Description of one data field: an Alg, a name (char[MaxNameSize]), a DataType and a rank. More... | |
| class | NameIndex |
| Holds a malloc'd copy of a Names xtc (extent bytes) plus two maps: nameMap (field name to its position in the Names) and shapeMap (field name to its position among the array fields, those with rank > 0). More... | |
| class | NameInfo |
| mechanism for the DataName to point to the correct DetInfo. More... | |
| class | Names |
| Xtc of type TypeId::Names: the header, a NameInfo, then an array of Name entries appended by add(). More... | |
| class | NamesId |
| Src whose value holds a node id in bits 19:8 and a names id in bits 7:0 (level Segment). More... | |
| class | NamesIter |
| XtcIterator subclass that records each Names xtc it visits into a NamesLookup, descending into Parent xtcs. More... | |
| class | Shape |
| Fixed array of MaxRank uint32_t dimensions. More... | |
| class | Shapes |
| Child xtc of ShapesData with type TypeId::Shapes (version 0); an array of Shape entries follows the header (see get()). More... | |
| class | ShapesData |
| Xtc of type TypeId::ShapesData whose payload holds a Shapes xtc and a Data xtc, in either order. More... | |
| class | Smd |
| Builds smd datagrams: non-L1Accept transitions are copied (EndRun without payload), and each L1Accept gets a ShapesData with two UINT64 fields, intOffset and intDgramSize. More... | |
| class | Src |
| 32-bit source word: bits 31:28 hold a Level::Type and bits 27:0 a value. More... | |
| class | TimeStamp |
| Time stored as two 32-bit words: seconds (high word) and nanoseconds (low word). More... | |
| class | Transition |
| TransitionBase with accessors that decode fields of the env word. More... | |
| class | TransitionBase |
| Datagram header base: a TimeStamp followed by a 32-bit env word. More... | |
| class | TransitionId |
| Wrapper class for the TransitionId::Value enum and its name() lookup. More... | |
| class | TypeId |
| 16-bit word: bits 11:0 hold the Type, bits 15:12 the version. More... | |
| class | VarDef |
| Holder for a list of Name definitions; Names::add() appends a copy of each entry in NameVec to a Names xtc. More... | |
| class | Xtc |
| Container header, packed with 2-byte alignment: src (Src, 4 bytes), damage (Damage, 2 bytes), contains (TypeId, 2 bytes), extent (uint32_t). More... | |
| class | XtcFileIterator |
| Reads datagrams sequentially from a file descriptor into a single internal buffer of maxDgramSize bytes. More... | |
| class | XtcIterator |
| Abstract iterator over the child xtcs of a root Xtc. More... | |
| class | XtcUpdateIter |
| XtcIterator that copies Names and ShapesData xtcs into an output buffer (setOutput()), dropping ShapesData whose detName_algName key is filtered, and records Names in its own NamesLookup. More... | |
Typedefs | |
| typedef std::unordered_map< unsigned, NameIndex > | NamesLookup |
| Map from a NamesId value (as unsigned) to the NameIndex built from the matching Names xtc. | |
Enumerations | |
| enum | { MaxRank =5 } |
| Maximum-rank constant, kept outside Array so it can be used without a template argument (per the comment above). More... | |
Variables | |
| static const int | MaxNameSize = 256 |
| Size (256) of the fixed char arrays that hold names in Alg, Name and NameInfo. | |
Namespace of the XTC data-format classes (Xtc, Dgram, TypeId, Src, NamesId, ShapesData, DescData, iterators, ...).
Namespace of the xtcdata library (XTC datagram types); psdaq headers only forward-declare parts of it.
Class to support scanning of python-implemented detector configurations.
Namespace of the XTC data-format classes, defined in the xtcdata package; only Dgram is forward-declared here.
Assumes python module named <detType>_config.py with functions: <detType>_scan_keys(json_str) <detType>_update (json_str)
| typedef std::unordered_map<unsigned,NameIndex> XtcData::NamesLookup |