#include "IReconHit.hxx" ClassImp(COMET::IReconHit); ClassImp(COMET::IWritableReconHit); COMET::IReconHit::IReconHit() : COMET::IHit(){} COMET::IReconHit::IReconHit(const COMET::IWritableReconHit& h) : COMET::IHit(h){ } COMET::IReconHit::~IReconHit() { } // IWritableReconHits. COMET::IWritableReconHit::IWritableReconHit(const COMET::IWritableReconHit& h) : COMET::IReconHit(h) {} COMET::IWritableReconHit::IWritableReconHit(COMET::IHandle hit) { fGeomID=hit->GetGeomID(); } COMET::IWritableReconHit::IWritableReconHit(COMET::IHandle hit1, COMET::IHandle hit2) { // Check that the hits are on the same bar if (hit1->GetGeomID() != hit2->GetGeomID()){ COMETError("TReconHits can only be created from hits" " with the same geometrical ID"); throw EReconHitIllegal(); } fGeomID=hit1->GetGeomID(); } COMET::IWritableReconHit::~IWritableReconHit() {} ////////////////////////////////////////////////// // Setter methods for COMET::IWritableReconHit ////////////////////////////////////////////////// void COMET::IWritableReconHit::SetGeomID(COMET::IGeometryId id) { fGeomID = id; }