34#include "G4LogicalVolume.hh"
35#include "G4SDManager.hh"
37#include "G4tgbVolumeMgr.hh"
38#include "G4tgrMessenger.hh"
60 volmgr->AddTextFile(filename);
76 G4String trackerChamberSDname =
"ExTextGeom/TrackerChamberSD";
78 G4SDManager::GetSDMpointer()->AddNewDetector(aTrackerSD);
80 G4tgbVolumeMgr::GetInstance()->FindG4LogVol(
"Chamber",0);
83 SetSensitiveDetector(
"Chamber", aTrackerSD );
87 G4Exception(
"ExTGDetectorConstructionWithSD::Construct()",
88 "InvalidGeometry", JustWarning,
89 "Volume does not exists in geometry: Chamber");
Definition of the ExTGDetectorConstructionWithSD class.
Definition of the ExTGTrackerSD class.
G4tgrMessenger * fMessenger
G4VPhysicalVolume * Construct()
void ConstructSDandField()
ExTGDetectorConstructionWithSD()
~ExTGDetectorConstructionWithSD()
Example of Sensitive detector.