Hall-D Software
alpha
|
#include <DModuleType.h>
Public Types | |
enum | type_id_t { TID, FADC250, FADC125, F1TDC32, F1TDC48, JLAB_TS, TD, SSP, JLAB_DISC, MODULE_TYPE_RES1, MODULE_TYPE_RES2, MODULE_TYPE_RES3, MODULE_TYPE_RES4, MODULE_TYPE_RES5, MODULE_TYPE_RES6, MODULE_TYPE_RES7, UNKNOWN, VMECPU, CAEN1190, CAEN1290, CDAQTSG =22, N_MODULE_TYPES } |
Public Member Functions | |
DModuleType (type_id_t type, std::string name, std::string description) | |
type_id_t | GetType (void) const |
string | GetName (void) const |
string | GetDescription (void) const |
Static Public Member Functions | |
static DModuleType | GetModule (type_id_t id) |
Given the type_id of a module type, return a DModuleType object. This is much more efficient than GetModule(string), but is still not really intended to be called every event. More... | |
static DModuleType | GetModule (std::string name) |
Given the name of a module type, return a DModuleType object. This is not a terribly efficient mechanism and is inteded to be called only at the beginning of event processing rather than every event. More... | |
static void | GetModuleList (std::vector< DModuleType > &modules) |
Get a list of all module types currently defined. This will append the full list to the given "modules" container. (The vector is not cleared on input). More... | |
static string | GetName (type_id_t id) |
Get the name of a module type based on its id. This can be called without an instance of the class if one already has the type. More... | |
static string | GetDescription (type_id_t id) |
Get the name of a module type based on its id. This can be called without an instance of the class if one already has the type. More... | |
Protected Attributes | |
type_id_t | type |
std::string | name |
std::string | description |
Definition at line 14 of file DModuleType.h.
Definition at line 27 of file DModuleType.h.
|
inline |
Definition at line 61 of file DModuleType.h.
Referenced by GetModule().
Get the name of a module type based on its id. This can be called without an instance of the class if one already has the type.
Definition at line 136 of file DModuleType.h.
References GetDescription(), and GetModule().
Referenced by GetDescription().
|
inline |
Definition at line 144 of file DModuleType.h.
References description.
|
inlinestatic |
Given the type_id of a module type, return a DModuleType object. This is much more efficient than GetModule(string), but is still not really intended to be called every event.
Definition at line 70 of file DModuleType.h.
References CAEN1190, CAEN1290, DModuleType(), F1TDC32, F1TDC48, FADC125, FADC250, JLAB_DISC, JLAB_TS, SSP, TD, TID, UNKNOWN, and VMECPU.
Referenced by GetDescription(), GetModule(), GetModuleList(), and GetName().
|
inlinestatic |
Given the name of a module type, return a DModuleType object. This is not a terribly efficient mechanism and is inteded to be called only at the beginning of event processing rather than every event.
Definition at line 97 of file DModuleType.h.
References GetModule(), GetModuleList(), N_MODULE_TYPES, and UNKNOWN.
|
inlinestatic |
Get a list of all module types currently defined. This will append the full list to the given "modules" container. (The vector is not cleared on input).
Definition at line 113 of file DModuleType.h.
References GetModule(), N_MODULE_TYPES, and UNKNOWN.
Referenced by GetModule().
Get the name of a module type based on its id. This can be called without an instance of the class if one already has the type.
Definition at line 126 of file DModuleType.h.
References GetModule(), and GetName().
Referenced by GetName().
|
inline |
Definition at line 143 of file DModuleType.h.
References name.
Referenced by DEVIOWorkerThread::F1TDC_channel(), and JEventProcessor_pedestals::GetHist().
|
inline |
Definition at line 142 of file DModuleType.h.
References type.
|
protected |
Definition at line 149 of file DModuleType.h.
Referenced by GetDescription().
|
protected |
Definition at line 148 of file DModuleType.h.
Referenced by GetName().
|
protected |
Definition at line 147 of file DModuleType.h.
Referenced by GetType().