Message: Re: UserSteppingAction histogram method Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: UserSteppingAction histogram method 

Forum: Event and Track Management
Re: None UserSteppingAction histogram method (Dan Fry)
Date: 26 Apr, 2006
From: michel maire <michel maire>

 
 Try to distribute uniformly edep along step before to record it :

  G4double edep = aStep->GetTotalEnergyDeposit();
  //	
  G4ThreeVector prePoint  = aStep->GetPreStepPoint() ->GetPosition();
  G4ThreeVector postPoint = aStep->GetPostStepPoint()->GetPosition();
  G4ThreeVector point = prePoint + G4UniformRand()*(postPoint - prePoint);

           Michel

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: UserSteppingAction histogram method"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]