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

None Re: local quadrupole field fills all the 

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

You're right... I put

G4FieldManager* fLocalFieldManager = new G4FieldManager();
QuadmagField = new G4QuadrupoleMagField(pGradient, G4ThreeVector(0.,0.,0.),
Rot);
logicQuad->SetFieldManager( fLocalFieldManager, allLocal ) ;
fLocalFieldManager->SetDetectorField(QuadmagField);
fLocalFieldManager->CreateChordFinder(QuadmagField);

and the magnetic field gets bounded into the quadrupole zone...
thank you!


2014-03-12 19:53 GMT+00:00 Gumplinger Peter <gum@triumf.ca>:

>
> *** Discussion title: Fields: Magnetic and Otherwise
>
> 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();
>   fLocalFieldManager->SetDetectorField(QuadmagField);
>   fLocalFieldManager->CreateChordFinder(QuadmagField);
>   logicQuad->SetFieldManager( fLocalFieldManager, true );
>
> Peter
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or
> unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/212/1.html
>

 [ MIME part of type text/html without a name stripped ]

 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 ]