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