//////////////////////////////////////////////////////////////////////////////// // Description: // This is a primitive scorer class for scoring time deposit. // // Created: 2014-10-09 Sakari Ihantol // /////////////////////////////////////////////////////////////////////////////// /** * @file SolidPSTimeEnd.hh * @author: (modified by) Ibrahin Pinera * @date 2016 SoLid - University of Antwerp */ #ifndef SolidPSTimeEnd_h #define SolidPSTimeEnd_h 1 #include "G4VPrimitiveScorer.hh" #include "G4THitsMap.hh" class SolidPSTimeEnd : public G4VPrimitiveScorer { public: // with description SolidPSTimeEnd(G4String name, G4int depth=0); // default unit SolidPSTimeEnd(G4String name, const G4String& unit, G4int depth=0); virtual ~SolidPSTimeEnd(); protected: // with description virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*); virtual G4int GetIndex(G4Step*); public: virtual void Initialize(G4HCofThisEvent*); virtual void EndOfEvent(G4HCofThisEvent*); virtual void clear(); virtual void DrawAll(); virtual void PrintAll(); virtual void SetUnit(const G4String& unit); private: G4int HCID; G4THitsMap* EvtMap; std::map m_counter; }; #endif