CMS 3D CMS Logo

TrackerG4SimHitNumberingScheme.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_TrackerG4SimHitNumberingScheme_H
2 #define SimG4CMS_TrackerG4SimHitNumberingScheme_H
3 
4 #include <vector>
5 #include <map>
6 #include <string>
7 
8 class G4VTouchable;
9 class G4VPhysicalVolume;
10 class GeometricDet;
11 
13 public:
14  // Nav_Story is G4
15  using Nav_Story = std::vector<std::pair<int, std::string> >;
16  using DirectMapType = std::map<Nav_Story, unsigned int>;
17 
19 
20  unsigned int g4ToNumberingScheme(const G4VTouchable*);
21 
22 private:
23  void touchToNavStory(const G4VTouchable*, Nav_Story&);
24  void dumpG4VPV(const G4VTouchable*);
25 
26  void buildAll();
27 
31 };
32 
33 #endif
TrackerG4SimHitNumberingScheme::buildAll
void buildAll()
Definition: TrackerG4SimHitNumberingScheme.cc:17
TrackerG4SimHitNumberingScheme::Nav_Story
std::vector< std::pair< int, std::string > > Nav_Story
Definition: TrackerG4SimHitNumberingScheme.h:15
TrackerG4SimHitNumberingScheme::directMap_
DirectMapType directMap_
Definition: TrackerG4SimHitNumberingScheme.h:28
TrackerG4SimHitNumberingScheme::alreadySet_
bool alreadySet_
Definition: TrackerG4SimHitNumberingScheme.h:29
TrackerG4SimHitNumberingScheme::TrackerG4SimHitNumberingScheme
TrackerG4SimHitNumberingScheme(const GeometricDet &)
Definition: TrackerG4SimHitNumberingScheme.cc:14
GeometricDet
Definition: GeometricDet.h:31
TrackerG4SimHitNumberingScheme::touchToNavStory
void touchToNavStory(const G4VTouchable *, Nav_Story &)
Definition: TrackerG4SimHitNumberingScheme.cc:56
TrackerG4SimHitNumberingScheme::DirectMapType
std::map< Nav_Story, unsigned int > DirectMapType
Definition: TrackerG4SimHitNumberingScheme.h:16
TrackerG4SimHitNumberingScheme
Definition: TrackerG4SimHitNumberingScheme.h:12
TrackerG4SimHitNumberingScheme::dumpG4VPV
void dumpG4VPV(const G4VTouchable *)
Definition: TrackerG4SimHitNumberingScheme.cc:96
TrackerG4SimHitNumberingScheme::geomDet_
const GeometricDet * geomDet_
Definition: TrackerG4SimHitNumberingScheme.h:30
TrackerG4SimHitNumberingScheme::g4ToNumberingScheme
unsigned int g4ToNumberingScheme(const G4VTouchable *)
Definition: TrackerG4SimHitNumberingScheme.cc:81