// $Id$ // // File: DMagneticFieldMapConst.cc // Created: Fri Nov 7 04:01:28 EST 2008 // Creator: davidl (on Darwin Amelia.local 8.11.1 i386) // #include using namespace std; #include "DMagneticFieldMapConst.h" //--------------------------------- // DMagneticFieldMapConst (Constructor) //--------------------------------- DMagneticFieldMapConst::DMagneticFieldMapConst(JApplication *japp, string namepath) { int runnumber = 1; jcalib = japp->GetJCalibration(runnumber); if(GetValues(namepath, runnumber)==0){ _DBG_<<"Error getting JCalibration object for magnetic field!"<Quit(); } } //--------------------------------- // DMagneticFieldMapConst (Constructor) //--------------------------------- DMagneticFieldMapConst::DMagneticFieldMapConst(JCalibration *jcalib, string namepath) { this->jcalib = jcalib; if(GetValues(namepath)==0){ _DBG_<<"Error getting JCalibration object for magnetic field!"< vals; jcalib->Get(namepath, vals); if(vals.size()==0)return 0; Br = vals["Br"]; Bphi = vals["Bphi"]; Bz = vals["Bz"]; cout<<" Br="<