00001 // $Id: GaussHitBase.h,v 1.3 2002/12/07 21:19:13 ibelyaev Exp $ 00002 #ifndef GAUSSTOOLS_GAUSSHITBASE_H 00003 #define GAUSSTOOLS_GAUSSHITBASE_H 1 00004 // GiGa 00005 #include "GiGa/GiGaUtil.h" 00006 // Include files 00007 #include "G4VHit.hh" 00008 00016 class GaussHitBase : public G4VHit 00017 { 00018 public: 00020 inline GaussHitBase( ); 00021 00022 virtual inline ~GaussHitBase( ); 00023 00024 inline void SetTrackID(G4int tid); 00025 inline G4int GetTrackID(); 00026 00028 inline G4int trackID () const { return m_trackID ; } 00030 inline void setTrackID ( const G4int id ) { m_trackID = id ; } 00031 00032 private: 00033 G4int m_trackID; 00034 }; 00035 00036 #include "GaussTools/GaussHitBase.icpp" 00037 00038 // ============================================================================ 00046 // ============================================================================ 00047 inline GaussHitBase* gaussHit( G4VHit* g4 ) 00048 { 00049 GiGaUtil::FastCast<G4VHit,GaussHitBase> cast ; 00050 return cast( g4 ); 00051 }; 00052 // ============================================================================ 00053 00054 00055 00056 #endif // GAUSSTOOLS_GAUSSHITBASE_H