Back to index

CCell.C

 
//----------------------------------------------------------------------------- 
//  $Header: /tmp_mnt/nfs/ceres1/asis/offline/ceres/cool/project/RCS/CCell.C,v 2.3 1996/10/24 16:39:38 voigt Exp $ 
// 
//  COOL Program Library   
//  Copyright (C) CERES collaboration, 1996 
// 
//  Implementation for CCell class. 
// 
//----------------------------------------------------------------------------- 
#include "CCell.h" 
#include "CMemoryPool.h" 
#include "CMCDigiHit.h" 
 
 
CMemoryPool CCell::mempool(sizeof(CCell)); 
 
CBoolean CCell::operator== (const CCell& cell) const  
{ 
   return (anode == cell.anode && timeBin == cell.timeBin); 
} 
 
void CCell::addMCDigiHit(CMCDigiHit* newHit) 
{ 
   if (mcHits == 0) {     // create new list if none exists yet 
      mcHits = new RWTPtrOrderedVector<CMCDigiHit>; 
   } 
    
   mcHits->insert(newHit); 
    
} 

Back to index