GGS(GenericGEANT4Simulation)Software  2.7.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 <iostream>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string>
16 
26 public:
32  static GGSNameDecoder &GetInstance();
33 
42  bool IsSensitive(const std::string &volumeName);
43 
52  int GetHitType(const std::string &volumeName);
53 
61  const std::string &GetDetectorName(const std::string &volumeName);
62 
63 private:
66 
68  ~GGSNameDecoder();
69 };
70 
71 #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.