k4SimGeant4
Loading...
Searching...
No Matches
GeoConstruction.h
Go to the documentation of this file.
1#ifndef DETDESSERVICES_GEOCONSTRUCTION_H
2#define DETDESSERVICES_GEOCONSTRUCTION_H
3
4// DD4hep
5#include "DDG4/Geant4GeometryInfo.h"
6
7// Geant4
8#include "G4VUserDetectorConstruction.hh"
9
10namespace dd4hep {
11class Detector;
12}
23namespace det {
24class GeoConstruction : public G4VUserDetectorConstruction {
25public:
27 GeoConstruction(dd4hep::Detector& detector, std::map<std::string, std::string> sensitive_types);
29 virtual ~GeoConstruction();
32 virtual G4VPhysicalVolume* Construct() final;
34 virtual void ConstructSDandField() final;
35
36private:
38 dd4hep::Detector& m_detector;
39 std::map<std::string, std::string> m_sensitive_types;
40};
41}
42#endif /* DETDESSERVICES_GEOCONSTRUCTION_H */
Definition GeoConstruction.h:24
virtual ~GeoConstruction()
Default destructor.
Definition GeoConstruction.cpp:20
virtual void ConstructSDandField() final
Construct SD.
Definition GeoConstruction.cpp:24
GeoConstruction(dd4hep::Detector &detector, std::map< std::string, std::string > sensitive_types)
Constructor.
Definition GeoConstruction.cpp:18
dd4hep::Detector & m_detector
Reference to geometry object.
Definition GeoConstruction.h:38
std::map< std::string, std::string > m_sensitive_types
Definition GeoConstruction.h:39
virtual G4VPhysicalVolume * Construct() final
Geometry construction callback: Invoke the conversion to Geant4 All volumes (including world) are del...
Definition GeoConstruction.cpp:71
Definition GeoConstruction.h:10
Definition GeoConstruction.cpp:16