GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSUniqueTouchableIDComputer.h
1 /*
2  * GGSUniqueTouchableIDComputer.h
3  *
4  * Created on: 3 Jun 2020
5  * Author: Nicola Mori
6  */
7 
8 #ifndef GGSUNIQUETOUCHABLEIDCOMPUTER_H_
9 #define GGSUNIQUETOUCHABLEIDCOMPUTER_H_
10 
11 #include "montecarlo/scoring/GGSTouchableIDComputer.h"
12 
13 class G4VPhysicalVolume;
14 
15 #include <unordered_map>
16 
33 public:
45  int ComputeTouchableID(G4Step *aStep);
46 
47 private:
48  std::unordered_map<G4VPhysicalVolume *, int> _multMap;
49 };
50 
51 #endif /* GGSUNIQUETOUCHABLEIDCOMPUTER_H_ */
A class that computes unique IDs for each touchable.
int ComputeTouchableID(G4Step *aStep)
Computes the touchable ID in a unique way.
Interface for volume ID calculator classes.