Message: Re: Time Limiting opticalPhotons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Time Limiting opticalPhotons 

Forum: Processes Involving Optical Photons
Re: Question Time Limiting opticalPhotons (Zach Miller)
Re: Warning Re: Time Limiting opticalPhotons (Gumplinger Peter)
Re: None Re: Time Limiting opticalPhotons (Zach Miller)
Date: 13 Jan, 2015
From: Gumplinger Peter <Gumplinger Peter>

Hi Zach,

> Is there a quick way to add a Step Limit, not such as max step size, but
> perhaps... "if this opticalphoton has taken more than 500,000 steps,
> then fStopAndKill the track?" It would be an artificial "timing
> mechanism."

You can use (in SteppingAction):

  G4int StepNo = aStep->GetTrack()->GetCurrentStepNumber();

and then:

  if(StepNo > 500000)aStep->GetTrack()->SetTrackStatus(fStopAndKill);


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

1 None: Re: Time Limiting opticalPhotons   (Zach Miller - 14 Jan, 2015)
 Add Message Add Message
to: "Re: Time Limiting opticalPhotons"

 Subscribe Subscribe

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