GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSNameDecoder.h
Go to the documentation of this file.
1 /*
2  * GGSNameDecoder.h
3  *
4  * Created on: 2010-10-07
5  * Author: Emiliano Mocchiutti
6  */
7 
10 #ifndef GGSNAMEDECODER_H
11 #define GGSNAMEDECODER_H
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <iostream>
15 #include <string>
16 
17 
27 public:
33  static GGSNameDecoder& GetInstance();
34 
43  bool IsSensitive(const std::string &volumeName);
44 
53  int GetHitType(const std::string &volumeName);
54 
62  const std::string &GetDetectorName(const std::string &volumeName);
63 
64 private:
65 
68 
70  ~GGSNameDecoder();
71 
72 };
73 
74 #endif // GGSNAMEDECODER_H
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.