#ifndef myHit_hh #define myHit_hh #include "G4VHit.hh" #include "G4THitsCollection.hh" #include "G4ThreeVector.hh" class myHit : public G4VHit { public : myHit(); ~myHit(); void Draw(); void Print(); G4double edep=0; G4ThreeVector pos; void SetEdep (G4double de) { edep = de; }; void SetPos (G4ThreeVector xyz){ pos = xyz; }; G4double GetEdep() const { return edep; }; G4ThreeVector GetPos() const { return pos; }; }; using myHitCollection = G4THitsCollection; #endif