// $Id$ // // File: DMaterial.cc // Created: Fri Apr 25 15:44:12 EDT 2008 // Creator: davidl (on Darwin swire-d95.jlab.org 8.11.1 i386) // #include using namespace std; #include "DMaterial.h" //--------------------------------- // DMaterial (Constructor) //--------------------------------- DMaterial::DMaterial(string &name, double A, double Z, double density, double radlen) { this->kname = name; this->kA = A; this->kZ = Z; this->kdensity = density; this->kXo = radlen; last_ptype = Unknown; last_p = -1.0; last_dEdx = -1.0; } //--------------------------------- // toString //--------------------------------- string DMaterial::toString(void) { stringstream ss; ss<<"DMaterial: "<