//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of class TBStripHit // see TBStripHit.h for details // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Maxence Vandenbroucke TUM (original author) // // //----------------------------------------------------------- // Panda Headers ---------------------- // This Class' Header ------------------ #include "TBStripHit.h" // C/C++ Headers ---------------------- #include #include using namespace std; // Collaborating Class Headers -------- #include "TVectorD.h" TBStripHit::TBStripHit() : FairHit(), fstrip(0), famp(0), fsize(0), fstriperr(0), fdetid(-1), fdetName("") {;} TBStripHit::TBStripHit(const TBStripHit& clust) : FairHit(),//2, const_cast(clust.fpos), const_cast(clust.fsig), 0), fstrip(clust.fstrip), famp(clust.famp), fsize(clust.fsize), fstriperr(clust.fstriperr), fdetid(clust.fdetid), fdetName(clust.fdetName) {; // if(!fdetid) { std::cerr << "TBStripHit::TBStripHit: detid " << fdetid << std::endl; throw; } } TBStripHit::TBStripHit(double Strip, double Amp, int Det, unsigned int Size, double StripErr, TString Detname) : FairHit(), fstrip(Strip), famp(Amp), fsize(Size), fstriperr(StripErr), fdetid(Det), fdetName(Detname) { ; // if(!fdetid) { std::cerr << "TBStripHit::TBStripHit: detid " << fdetid << std::endl; throw; } } TBStripHit::~TBStripHit(){} std::ostream& operator<< (std::ostream& s, const TBStripHit& me){ s << "TBStripHit\n" << me.fdetName << ")\n" << " (detid "<