artdaq_core_demo
v1_06_15
|
The artdaq_demo namespace. More...
Namespaces | |
detail | |
Implementation details namespace. | |
Classes | |
class | AsciiFragment |
An artdaq::Fragment overlay class designed to hold string data for pedagogical purposes. More... | |
class | AsciiFragmentWriter |
Class derived from AsciiFragment which allows writes to the data (for simulation purposes). More... | |
class | ToyFragment |
An artdaq::Fragment overlay class used for pedagogical purposes. More... | |
class | UDPFragment |
A Fragment designed to contain data received from the network in UDP datagrams. More... | |
class | UDPFragmentWriter |
Class derived from UDPFragment which allows writes to the data. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &, AsciiFragment const &) |
Dumps the AsciiFragment's data (text) to given stream. More... | |
FragmentType | toFragmentType (std::string t_string) |
Lookup the type code for a fragment by its string name. More... | |
std::string | fragmentTypeToString (FragmentType val) |
Look up the name of the given FragmentType. More... | |
std::map < artdaq::Fragment::type_t, std::string > | makeFragmentTypeMap () |
Create a list of all Fragment types defined by this package, in the format that RawInput expects. More... | |
std::ostream & | operator<< (std::ostream &, ToyFragment const &) |
Let the "<<" operator dump the ToyFragment's data to stdout. | |
std::ostream & | operator<< (std::ostream &, UDPFragment const &) |
Let the "<<" operator dump the UDPFragment's data to stdout. | |
Variables | |
std::vector< std::string > const | names {"MISSED", "TOY1", "TOY2", "ASCII", "UDP", "UNKNOWN"} |
List of names (in the order defined below) of the User types defined in artdaq_core_demo. | |
The artdaq_demo namespace.
std::string demo::fragmentTypeToString | ( | FragmentType | val | ) |
Look up the name of the given FragmentType.
val | FragmentType to look up |
Definition at line 23 of file FragmentType.cc.
std::map< artdaq::Fragment::type_t, std::string > demo::makeFragmentTypeMap | ( | ) |
Create a list of all Fragment types defined by this package, in the format that RawInput expects.
Definition at line 35 of file FragmentType.cc.
std::ostream & demo::operator<< | ( | std::ostream & | os, |
AsciiFragment const & | f | ||
) |
Dumps the AsciiFragment's data (text) to given stream.
Definition at line 13 of file AsciiFragment.cc.
demo::FragmentType demo::toFragmentType | ( | std::string | t_string | ) |
Lookup the type code for a fragment by its string name.
t_string | Name of the Fragment type to lookup |
Definition at line 9 of file FragmentType.cc.