//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class PndFieldAdaptor // see PndFieldAdaptor.hh for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- // Panda Headers ---------------------- // This Class' Header ------------------ #include "PndFieldAdaptor.h" // C/C++ Headers ---------------------- #include "assert.h" #include // Collaborating Class Headers -------- #include "FairField.h" // Class Member definitions ----------- PndFieldAdaptor::PndFieldAdaptor(FairField* field) : _field(field) {} TVector3 PndFieldAdaptor::get(const TVector3& pos) const { assert(_field!=NULL); Double_t x[3]; x[0] = pos.X(); x[1] = pos.Y(); x[2] = pos.Z(); Double_t f[3]; _field->GetFieldValue(x,f); //std::cout << "PndFieldAdapter::get() field at " // <