Message: Re: stepMax in a specific volume or material Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: stepMax in a specific volume or material 

Forum: Event and Track Management
Re: Question stepMax in a specific volume or material (A. Hod)
Re: None Re: stepMax in a specific volume or material (michel maire)
Date: 18 Mar, 2014
From: A. Hod <A. Hod>

Hi Michel,

Thank you very much fort the hints. I followed TestEm5 and I introduced the necessary modifications

but it works only if StepMax::PostStepGetPhysicalInteractionLength() is defined as:

G4double  StepMax::PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
                                                  G4double,
                                                  G4ForceCondition* condition )
{
  // condition is set to "Not Forced"
  *condition = NotForced;
  ProposedStep = MaxChargedStep;

  return ProposedStep;

}

But in this case I cannot assign the step limitation to a volume of interest.

If the StepMax::PostStepGetPhysicalInteractionLength() is now defined as :

G4double StepMax::PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
                                                  G4double,
                                                  G4ForceCondition* condition )
{
  // condition is set to "Not Forced"
  *condition = NotForced;

  G4double ProposedStep = DBL_MAX;

  if((MaxChargedStep > 0.) &&
     (aTrack.GetVolume() != 0) &&
     (aTrack.GetVolume()->GetName() == "solidBox1"))
     ProposedStep = MaxChargedStep;

  return ProposedStep;
}

In this case I would like to assign the step limitation the solidBox1. It doesn’t work! I changed the value of the stepMax but there is no change in the steps! I kindly appreciate your help.

Best regards

A.H.

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

1 None: Re: stepMax in a specific volume or material   (michel maire - 18 Mar, 2014)
1 None: Re: stepMax in a specific volume or material   (Makoto Asai - 18 Mar, 2014)
2 Ok: Re: stepMax in a specific volume or material   (A. Hod - 18 Mar, 2014)
 Add Message Add Message
to: "Re: stepMax in a specific volume or material"

 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 ]