21 GGSNameDecoder::GGSNameDecoder() {}
23 GGSNameDecoder::~GGSNameDecoder() {}
30 if (sscanf(volumeName.c_str(),
"%*4cH%dE", &hitType) == 1) {
37 if (volumeName.length() != 7)
41 if (sscanf(volumeName.c_str(),
"%*4cH%dE", &hitType) == 1) {
49 static std::string returnValue;
53 returnValue = volumeName.substr(0, 4);
const std::string & GetDetectorName(const std::string &volumeName)
Get detector name.
int GetHitType(const std::string &volumeName)
Get hit type.
static GGSNameDecoder & GetInstance()
Get instance of the singleton.
bool IsSensitive(const std::string &volumeName)
Check if the logical volume is sensitive.
Class needed to decode sensitive volume names.