Back to index

CMCHit.C

 
//----------------------------------------------------------------------------- 
//  $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CMCHit.C,v 2.1 1996/10/04 09:01:25 voigt Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//  Implementation of class CMCHit 
// 
//----------------------------------------------------------------------------- 
#include "CMCHit.h"  
 
CMCHit::CMCHit()  
{ 
  x = 0; 
  y = 0; 
  z = 0; 
  amp = 0; 
} 
 
CMCHit::CMCHit(double x0, double y0, double z0, double amp0)  
{ 
  x   = x0; 
  y   = y0; 
  z   = z0; 
  amp = amp0; 
} 
 
CMCHit::~CMCHit()  
{ 
} 
 
CMCHit::CMCHit(const CMCHit &other)  
{ 
  x   = other.x; 
  y   = other.y; 
  z   = other.z; 
  amp = other.amp; 
} 
 
CMCHit & CMCHit::operator = (const CMCHit &other)  
{ 
  if (this == &other) return *this; 
 
  x   = other.x; 
  y   = other.y; 
  z   = other.z; 
  amp = other.amp; 
 
  return *this; 
} 
 
ostream & operator << (ostream & s, const CMCHit& hit) 
{ 
  return s << "x=" << hit.getX() << ", y=" << hit.getY() << ", z=" << hit.getZ() << ", amp=" << hit.getAmp(); 
} 
 

Back to index