GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Constant magnetic field instead Solenoid Field maps
Re: Constant magnetic field instead Solenoid Field maps [message #14906 is a reply to message #14905] Tue, 02 July 2013 07:53 Go to previous messageGo to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *gsi.de
Hello Anastasia,

The GetBz() function in FairField is not implemented. Please get your B Field like that (important are the double arrays):

  double pnt[3]={0.,0.,0.}; //Position where to get field strength
  double Bf[3]; //result goes here
  // retrieve the field from the framework
  FairRunAna::Instance()->GetField()->GetFieldValue ( pnt, Bf );  //[kGs]
  return Bf[2]; //OK, Bf[2] is your Bz


Please mind the units.

In Analysis macros you can use RhoCalculationTools::GetBz(TVector3 pos).

Cheers.
Ralf

[Updated on: Tue, 02 July 2013 08:22]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Errors in SttHi
Next Topic: Problem in creating geometry from root file
Goto Forum:
  


Current Time: Sun Apr 28 22:41:16 CEST 2024

Total time taken to generate the page: 0.00963 seconds