Message: Re: local quadrupole field fills all the Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Disagree Re: local quadrupole field fills all the  

Forum: Fields: Magnetic and Otherwise
Re: None local quadrupole field fills all the "World space" (Jorge Gallardo)
Date: 12 Mar, 2014
From: Gumplinger Peter <Gumplinger Peter>

Hello Jorge,

> //apply a quadrupole field
> G4FieldManager* fieldMgr =
> G4TransportationManager::GetTransportationManager()->GetFieldManager();
> QuadmagField = new G4QuadrupoleMagField(pGradient, G4ThreeVector(0.,0.,0.),
> Rot);
>      // Set field as local just for "logicQuad"
> logicQuad->SetFieldManager( fieldMgr, allLocal ) ;
> fieldMgr->SetDetectorField(QuadmagField);
> fieldMgr->CreateChordFinder(QuadmagField);

Please, follow the /examples/extended/field/field03 (or /examples/basic/B5) carefully. You want a field that is associated only to one logical-volume. However, you assign to that logical volume the program's GLOBAL field manager!

What you got to do is:

  fLocalFieldManager = new G4FieldManager();
  logicQuad->SetFieldManager( fLocalFieldManager, true );


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

1 None: Re: local quadrupole field fills all the   (jorge gallardo - 13 Mar, 2014)
 Add Message Add Message
to: "Re: local quadrupole field fills all the "

 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 ]