Jpp
|
Auxiliary class for mapping serial number and object identifier of detectors. More...
#include <JDBToolkit.hh>
Public Types | |
typedef T | data_type |
Public Member Functions | |
int | operator() (const std::string &detid) const |
Get detector serial number. More... | |
std::string | operator() (const int id) const |
Get detector identifier. More... | |
Static Public Member Functions | |
static void | initialise () |
Initialise. More... | |
static data_type & | getInstance () |
Get unique instance of template class. More... | |
Protected Attributes | |
std::map< int, std::string > | id2det |
std::map< std::string, int > | det2id |
Auxiliary class for mapping serial number and object identifier of detectors.
Definition at line 34 of file JDBToolkit.hh.
|
inherited |
Definition at line 20 of file JSingleton.hh.
|
inlinestatic |
Initialise.
Definition at line 40 of file JDBToolkit.hh.
|
inline |
Get detector serial number.
detid | object identifier |
Definition at line 59 of file JDBToolkit.hh.
|
inline |
Get detector identifier.
id | serial number |
Definition at line 94 of file JDBToolkit.hh.
|
inlinestaticinherited |
|
mutableprotected |
Definition at line 123 of file JDBToolkit.hh.
|
mutableprotected |
Definition at line 124 of file JDBToolkit.hh.