Back to index

CMCDigiHit.C

 
//----------------------------------------------------------------------------- 
//  $Header: /tmp_mnt/asis/offline/ceres/cool/project/RCS/CMCDigiHit.C,v 2.1 1996/10/04 08:42:53 voigt Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//----------------------------------------------------------------------------- 
#include <iostream.h> 
#include "CMCDigiHit.h"  
#include "CMCGeantTrack.h"  
 
CMCDigiHit::CMCDigiHit()  
{ 
  index  = 0; 
  track  = 0; 
  type   = 0;          
	 
  theta  = 0; 
  phi    = 0; 
} 
 
void CMCDigiHit::print(ostream& os) const  
{ 
  os << "MCDigiHit " << index << " track " << track->getIndex() << " type " << type  
     << " GEANT hit:" << geantHit << " digi hit: "  << digiHit << endl; 
  if (theta !=0 && phi != 0) { 
    os << "\ttheta " << theta*1000. << " mrad  phi " << phi << " rad, eloss " << geantHit.getAmp() << endl;  
  } 
} 
 
CMCDigiHit::~CMCDigiHit()  
{ 
} 
 
 

Back to index