|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
59 #include <TGeoManager.h>
61 #include <G4SDManager.hh>
62 #include <G4PVPlacement.hh>
63 #include <G4VSensitiveDetector.hh>
89 std::string nam = sd.
name();
90 auto iter = types.find(nam);
91 std::string typ = (iter != types.end()) ? (*iter).second : dflt;
93 for(
const TGeoVolume* vol : iv.second ) {
96 except(
"ConstructSDandField: Failed to access G4LogicalVolume for SD %s of type %s.",
97 nam.c_str(), typ.c_str());
Class to create Geant4 detector geometry from TGeo representation in memory.
std::map< SensitiveDetector, std::set< const TGeoVolume * > > sensitives
Handle class to hold the information of a sensitive detector.
Class, which allows all Geant4Action derivatives to access the DDG4 kernel structures.
static void increment(T *)
Increment count according to type information.
static Geant4Mapping & instance()
Possibility to define a singleton instance.
const char * name() const
Access the object name (or "" if not supported by the object)
#define DECLARE_GEANT4ACTION(name)
Plugin defintion to create Geant4Action objects.
void constructSensitives(Geant4DetectorConstructionContext *ctxt)
Sensitives construction callback. Called at "ConstructSDandField()".
void except(const char *fmt,...) const
Support of exceptions: Print fatal message and throw runtime_error.
Geant4 detector construction context definition.
const std::map< std::string, std::string > & sensitiveDetectorTypes() const
Property access: Names with specialized factories to create G4VSensitiveDetector instances.
Geant4GeometryInfo * ptr() const
Access to the data pointer.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
static void decrement(T *)
Decrement count according to type information.
const std::string defaultSensitiveDetectorType() const
Property access: Name of the default factory to create G4VSensitiveDetector instances.
virtual ~Geant4DetectorSensitivesConstruction()
Default destructor.
void print(const char *fmt,...) const
Support for messages with variable output level using output level.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Geant4Kernel & kernel() const
Access to the kernel object.
Concreate class holding the relation information between geant4 objects and dd4hep objects.
Geant4DetectorSensitivesConstruction(Geant4Context *ctxt, const std::string &nam)
Initializing constructor for DDG4.
void setSensitiveDetector(G4LogicalVolume *vol, G4VSensitiveDetector *sd)
Helper: Assign sensitive detector to logical volume.
Namespace for the AIDA detector description toolkit.
Basic implementation of the Geant4 detector construction action.
Generic context to extend user, run and event information.
Geant4Context * context() const
Access the context.
Geant4GeometryMaps::VolumeMap g4Volumes