23 GGSNameDecoder::GGSNameDecoder() {
26 GGSNameDecoder::~GGSNameDecoder() {
34 if (sscanf(volumeName.c_str(),
"%*4cH%dE", &hitType) == 1) {
42 if (volumeName.length() != 7)
46 if (sscanf(volumeName.c_str(),
"%*4cH%dE", &hitType) == 1) {
56 static std::string returnValue;
61 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.