Message: G4UserLimits dosnt work!! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4UserLimits dosnt work!! 

Forum: Fields: Magnetic and Otherwise
Date: 14 Oct, 2018
From: Ali <Ali>

Hello, I have a Solenoid magnetic field in a Tube of vacuum (or air) which is

located in the world volume with air or vacuum. the proton beam with initial 5

degree divergence angle travels the tube (energy =200 MeV). The field properly

bends the beam but sharply not like a smooth curve. and as you can in the

attachment the focal length of solenoid is not correct.

I used G4UserLimits in my "DetectorConstruction.cc" something like... for

both world and Tube volumes.

G4UserLimits* BoxUserLimits = new G4UserLimits();

BoxUserLimits->SetMaxAllowedStep(0.01*mm);

fpWorldLogical->SetUserLimits(BoxUserLimits);

G4UserLimits* BoxUserLimits1 = new G4UserLimits();

BoxUserLimits1->SetMaxAllowedStep(0.01*mm);

tubeLogical1->SetUserLimits(BoxUserLimits);

However, there is no effect on the output!

Could anyone help me??

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/10/14/15.30-56290-Screenshot-2.png

 Add Message Add Message
to: "G4UserLimits dosnt work!!"

 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 ]