46 #include "G4HCofThisEvent.hh"
66 Run* run =
static_cast<Run*
>(
80 Run* run =
static_cast<Run*
>(
93 G4double r1 = std::sqrt(x1*x1 + y1*y1);
97 G4double r2 = std::sqrt(x2*x2 + y2*y2);
101 G4double r0 = std::sqrt(x0*x0 + y0*y0);
106 G4cout <<
"PhantomSD: energy = " << edep/
MeV
107 <<
" MeV is deposited at the step at r1,z1= " << r1 <<
" " << z1
108 <<
"; r2,z2= " << r2 <<
" " << z2 <<
G4endl;
static G4RunManager * GetRunManager()
static constexpr double MeV
Float_t y1[n_points_granero]
G4StepPoint * GetPreStepPoint() const
Float_t x1[n_points_granero]
Definition of the PhantomSD class.
Float_t y2[n_points_geant4]
void EndOfEvent(G4HCofThisEvent *)
const G4ThreeVector & GetPosition() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
void AddPhantomStep(G4double e, G4double r1, G4double z1, G4double r2, G4double z2, G4double r0, G4double z0)
G4Run * GetNonConstCurrentRun() const
PhantomSD(const G4String &)
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
G4GLOB_DLL std::ostream G4cout
Float_t x2[n_points_geant4]
void Initialize(G4HCofThisEvent *)