artdaq
v3_08_00
|
ArtdaqFragmentNamingService extends ArtdaqFragmentNamingServiceInterface. This implementation uses the default SystemTypeMap and directly assigns names based on it. More...
#include <artdaq/ArtModules/ArtdaqFragmentNamingService.h>
Public Member Functions | |
virtual | ~ArtdaqFragmentNamingService () |
DefaultArtdaqFragmentNamingService Destructor. | |
ArtdaqFragmentNamingService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
NetMonTransportService Constructor. More... | |
virtual std::string | GetInstanceNameForType (artdaq::Fragment::type_t type_id) |
Returns the basic translation for the specified type. Defaults to the specified unidentified_instance_name if no translation can be found. | |
virtual std::set< std::string > | GetAllProductInstanceNames () |
Returns the full set of product instance names which may be present in the data, based on the types that have been specified in the SetBasicTypes() and AddExtraType() methods. This does include "container" types, if the container type mapping is part of the basic types. | |
virtual std::pair< bool, std::string > | GetInstanceNameForFragment (artdaq::Fragment const &fragment) |
Returns the product instance name for the specified fragment, based on the types that have been specified in the SetBasicTypes() and AddExtraType() methods. This does include the use of "container" types, if the container type mapping is part of the basic types. If no mapping is found, the specified unidentified_instance_name is returned. | |
![]() | |
virtual | ~ArtdaqFragmentNamingServiceInterface ()=default |
Default virtual destructor. | |
ArtdaqFragmentNamingServiceInterface (fhicl::ParameterSet const &ps) | |
ArtdaqFragmentNamingServiceInterface constructor. More... | |
void | SetBasicTypes (std::map< artdaq::Fragment::type_t, std::string > const &type_map) |
Sets the basic types to be translated. (Should not include "container" types.) | |
void | AddExtraType (artdaq::Fragment::type_t type_id, std::string type_name) |
Adds an additional type to be translated. | |
std::string | GetUnidentifiedInstanceName () |
Get the configured unidentified_instance_name. More... | |
Additional Inherited Members | |
![]() | |
std::map < artdaq::Fragment::type_t, std::string > | type_map_ |
Map relating Fragment Type to strings. | |
std::string | unidentified_instance_name_ |
The name to use for unknown Fragment types. | |
ArtdaqFragmentNamingService extends ArtdaqFragmentNamingServiceInterface. This implementation uses the default SystemTypeMap and directly assigns names based on it.
Definition at line 98 of file ArtdaqFragmentNamingService.h.
ArtdaqFragmentNamingService::ArtdaqFragmentNamingService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
NetMonTransportService Constructor.
pset | ParameterSet used to configure NetMonTransportService and DataSenderManager. See NetMonTransportService::Config |
Definition at line 7 of file ArtdaqFragmentNamingService_service.cc.