A Read-Write version of the ContainerFragment, used for filling ContainerFragment objects with other Fragment objects. More...
#include <artdaq-core/Data/ContainerFragmentLoader.hh>
Public Member Functions | |
ContainerFragmentLoader (Fragment &f) | |
Constructs the ContainerFragmentLoader. | |
Metadata * | metadata () |
Get the ContainerFragment metadata (includes information about the location of Fragment objects within the ContainerFragment). | |
void | set_fragment_type (Fragment::type_t type) |
Sets the type of Fragment which this ContainerFragment should contain. | |
void | set_missing_data (bool isDataMissing) |
Sets the missing_data flag. | |
void | addFragment (artdaq::Fragment &frag) |
Add a Fragment to the ContainerFragment by reference. | |
void | addFragment (artdaq::FragmentPtr &frag) |
Add a Fragment to the ContainerFragment by smart pointer. | |
void | addFragments (artdaq::FragmentPtrs &frags) |
Add a collection of Fragment objects to the ContainerFragment. |
A Read-Write version of the ContainerFragment, used for filling ContainerFragment objects with other Fragment objects.
Definition at line 28 of file ContainerFragmentLoader.hh.
artdaq::ContainerFragmentLoader::ContainerFragmentLoader | ( | artdaq::Fragment & | f | ) | [inline, explicit] |
Constructs the ContainerFragmentLoader.
cet::exception | if the Fragment input has inconsistent Header information |
Definition at line 104 of file ContainerFragmentLoader.hh.
void artdaq::ContainerFragmentLoader::addFragment | ( | artdaq::FragmentPtr & | frag | ) | [inline] |
Add a Fragment to the ContainerFragment by smart pointer.
frag | A FragmentPtr to a Fragment to be added to the ContainerFragment |
Definition at line 166 of file ContainerFragmentLoader.hh.
void artdaq::ContainerFragmentLoader::addFragment | ( | artdaq::Fragment & | frag | ) | [inline] |
Add a Fragment to the ContainerFragment by reference.
frag | A Fragment object to be added to the ContainerFragment |
cet::exception | If the Fragment to be added has a different type than expected |
Definition at line 146 of file ContainerFragmentLoader.hh.
void artdaq::ContainerFragmentLoader::addFragments | ( | artdaq::FragmentPtrs & | frags | ) | [inline] |
Add a collection of Fragment objects to the ContainerFragment.
frags | An artdaq::FragmentPtrs object containing Fragments to be added to the ContainerFragment |
Definition at line 171 of file ContainerFragmentLoader.hh.
Metadata* artdaq::ContainerFragmentLoader::metadata | ( | ) | [inline] |
Get the ContainerFragment metadata (includes information about the location of Fragment objects within the ContainerFragment).
Definition at line 45 of file ContainerFragmentLoader.hh.
void artdaq::ContainerFragmentLoader::set_fragment_type | ( | Fragment::type_t | type | ) | [inline] |
Sets the type of Fragment which this ContainerFragment should contain.
type | The Fragment::type_t identifying the type of Fragment objects stored in this ContainerFragment |
Definition at line 55 of file ContainerFragmentLoader.hh.
void artdaq::ContainerFragmentLoader::set_missing_data | ( | bool | isDataMissing | ) | [inline] |
Sets the missing_data flag.
isDataMissing | The value of the missing_data flag |
The ContainerFragment::Metadata::missing_data flag is used for FragmentGenerators to indicate that the fragment is incomplete, but the generator does not have the correct data to fill it. This happens for Window-mode FragmentGenerators when the window requested is before the start of the FragmentGenerator's buffers, for example.
Definition at line 68 of file ContainerFragmentLoader.hh.