34 #include "SteppingAction.hh" 35 #include "DetectorConstruction.hh" 36 #include "PrimaryGeneratorAction.hh" 37 #include "RunAction.hh" 46 : detector(det), primary(prim), runAction(RuAct)
58 G4StepPoint* prePoint = aStep->GetPreStepPoint();
59 G4StepPoint* endPoint = aStep->GetPostStepPoint();
61 G4String procName = endPoint->GetProcessDefinedStep()->GetProcessName();
64 if (prePoint->GetTouchableHandle()->GetVolume()==
detector->
GetBox() &&
66 G4Track* aTrack = aStep->GetTrack();
68 aTrack->GetDynamicParticle()->GetDefinition();
72 G4double kinEnergy = endPoint->GetKineticEnergy();
76 G4double polZ = endPoint->GetPolarization().
z();
78 G4double costheta = direction*beamDirection;
PrimaryGeneratorAction class.
const G4VPhysicalVolume * GetWorld()
PrimaryGeneratorAction * primary
void UserSteppingAction(const G4Step *)
G4ParticleMomentum GetParticleMomentumDirection() const
const G4VPhysicalVolume * GetBox()
void CountProcesses(G4String)
G4ParticleGun * GetParticleGun()
static G4ThreeVector GetParticleFrameY(const G4ThreeVector &)
Detector construction class to define materials and geometry.
void FillData(const G4ParticleDefinition *particle, G4double kinEnergy, G4double costheta, G4double phi, G4double longitudinalPolarization)
DetectorConstruction * detector
static G4ThreeVector GetParticleFrameX(const G4ThreeVector &)