//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class TpcGem // see TpcGem.h for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Sebastian Neubert TUM (original author) // // //----------------------------------------------------------- // This Class' Header ------------------ #include "TpcGem.h" // C/C++ Headers ---------------------- #include // Collaborating Class Headers -------- // Class Member definitions ----------- TpcGem::TpcGem() : _gain(0),_spread(0),_cloudShape("CloudShape","gaus(0)",-99,99) {;} TpcGem::TpcGem(const double Gain, const double Spread) : _gain(Gain),_spread(Spread),_cloudShape("CloudShape","gausn(0)",-99,99) { _cloudShape.SetParameter(0,1); // normalized gauss _cloudShape.SetParameter(1,0); _cloudShape.SetParameter(2,Spread); } TpcGem::~TpcGem(){} bool operator== (const TpcGem& lhs, const TpcGem& rhs) { bool bG=fabs(lhs._gain-rhs._gain)<1E-3; bool bS=fabs(lhs._spread-rhs._spread)<1E-8; return bG && bS; } std::ostream& operator<< (std::ostream& s, const TpcGem& r){ return s << "\n---------------------------------------- \n " << "TpcGem:\n" << " Gain = "<