00001 #ifndef G4DHHIT_H 00002 #define G4DHHIT_H 00003 00004 #include "G4VHit.hh" 00005 #include "G4THitsCollection.hh" 00006 00007 namespace DayaBay { 00008 class SimHit; 00009 } 00010 00011 class G4Step; 00012 00013 00014 class G4DhHit : public G4VHit 00015 { 00016 public: 00017 G4DhHit(); 00018 G4DhHit(DayaBay::SimHit* hit, int trackid=0); 00019 00020 virtual ~G4DhHit(); 00021 00022 void set(DayaBay::SimHit* hit); 00023 DayaBay::SimHit* get(); 00024 00025 void setTrackId(int); 00026 int trackId() const; 00027 00028 private: 00029 DayaBay::SimHit* m_hit; 00030 int m_g4trackid; // for use with ParticleHistory. 00031 }; 00032 00033 typedef G4THitsCollection<G4DhHit> G4DhHitCollection; 00034 00035 #endif // G4DHHIT_H