GGS(GenericGEANT4Simulation)Software
2.6.0
|
Class needed to decode sensitive volume names. More...
#include <GGSNameDecoder.h>
Public Member Functions | |
bool | IsSensitive (const std::string &volumeName) |
Check if the logical volume is sensitive. More... | |
int | GetHitType (const std::string &volumeName) |
Get hit type. More... | |
const std::string & | GetDetectorName (const std::string &volumeName) |
Get detector name. More... | |
Static Public Member Functions | |
static GGSNameDecoder & | GetInstance () |
Get instance of the singleton. More... | |
Class needed to decode sensitive volume names.
This class is a helper for parsing the names of the logical volumes. Its methods recognize if a volume name complies with the pattern defining sensitive volumes (i.e. XXXXH::E), which kind of hit is to be associated with the volume etc.
Definition at line 26 of file GGSNameDecoder.h.
const std::string & GGSNameDecoder::GetDetectorName | ( | const std::string & | volumeName | ) |
Get detector name.
Returns the name of the detector. If volumeName is not the name of a sensitive volume then an empty string is returned.
Definition at line 55 of file GGSNameDecoder.cpp.
int GGSNameDecoder::GetHitType | ( | const std::string & | volumeName | ) |
Get hit type.
1: position hit 2: particle hit 4: integrated hit
Definition at line 29 of file GGSNameDecoder.cpp.
|
static |
Get instance of the singleton.
Method to access the pointer to the class
Definition at line 18 of file GGSNameDecoder.cpp.
bool GGSNameDecoder::IsSensitive | ( | const std::string & | volumeName | ) |
Check if the logical volume is sensitive.
Given the name of the logical volume, this method checks if the volume is sensitive.
volumeName | The name of the logical volume. |
Definition at line 41 of file GGSNameDecoder.cpp.