Message: Re: cold neutron spin tracking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: cold neutron spin tracking 

Forum: Fields: Magnetic and Otherwise
Re: Question cold neutron spin tracking (Emil Frlez)
Re: Question Re: cold neutron spin tracking (Emil Frlez)
Re: None Re: cold neutron spin tracking (Kosta Kliakhandler)
Re: None Re: cold neutron spin tracking (John Apostolakis)
Re: None Re: cold neutron spin tracking (Kosta Kliakhandler)
Date: 25 Jun, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi,

> G4Mag_EqRhs* fEq = new G4Mag_SpinEqRhs(field);

Why don't you use the derived glass pointer:

      G4Mag_SpinEqRhs* fEq = new G4Mag_SpinEqRhs(field);

> G4MagIntegratorStepper* stepper = new G4ClassicalRK4(fEq, 12);

yes, you need the 12

> 
>     min = 1.0e-10 * m;
> 
>     fieldmgr = new G4FieldManager(field);
>     fieldmgr->SetDeltaOneStep( min );

Don't know what difference it makes but I have code that uses:

      fieldmgr->SetAccuraciesWithDeltaOneStep(deltaOneStep);

>     fieldmgr->SetMaximumEpsilonStep( 10e-10 );
> 
>     G4ChordFinder* chordFinder = new G4ChordFinder(field, min, stepper);
> 
>     charybdisFMgr->SetChordFinder(chordFinder);

You mean:

      fieldmgr->SetChordFinder(chordFinder);

Should you be able to work with one global field this is a good (but complicated) example:

http://www-geant4.kek.jp/lxr/source/examples/extended/field/field04/src/F04GlobalField.cc

Even if you can't and you have to associate a fieldmgr to a logical volume, this and the simpler field05 example contain code fragments useful for setting up spin tracking.

Peter

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

1 None: Re: cold neutron spin tracking   (Kosta Kliakhandler - 13 Jul, 2010)
 Add Message Add Message
to: "Re: cold neutron spin tracking"

 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 ]