Skip to content
Snippets Groups Projects
CherProtoHit.hh 575 B
Newer Older
  • Learn to ignore specific revisions
  • Chao Peng's avatar
    Chao Peng committed
    #ifndef CHERPROTO_HIT_H
    #define CHERPROTO_HIT_H
    
    #include "G4VHit.hh"
    #include "G4Allocator.hh"
    #include "G4THitsCollection.hh"
    #include "G4UnitsTable.hh"
    #include <iomanip>
    
    class CherProtoHit: public G4VHit
    {
    public:
        CherProtoHit();
        ~CherProtoHit();
    
    
    Chao Peng's avatar
    Chao Peng committed
        virtual void Print() { G4cout << "Number of Optical Photons: " << npe << G4endl; }
        void Reset() { npe = 0; }
        void AddOnePhoton() { npe++; }
        G4int GetNPE() const { return npe; }
    
    Chao Peng's avatar
    Chao Peng committed
    
    private:
    
    Chao Peng's avatar
    Chao Peng committed
        G4int npe;
    
    Chao Peng's avatar
    Chao Peng committed
    };
    
    typedef G4THitsCollection<CherProtoHit> CherProtoHitCollection;
    
    #endif  // CHERPROTO_HIT_H