Skip to content
Snippets Groups Projects
DriftChamberSensitiveDetector.h 821 B
Newer Older
#ifndef DriftChamberSensitiveDetector_h
#define DriftChamberSensitiveDetector_h

/*
 * DriftChamberSensitiveDetector is used in Drift Chamber with dE/dx simulator.
 *
 * 19 Sept. 2020, Tao Lin <lintao@ihep.ac.cn>
 */

#include "DetSimSD/DDG4SensitiveDetector.h"

class DriftChamberSensitiveDetector: public DDG4SensitiveDetector {
public:
    typedef dd4hep::sim::Geant4TrackerHit TrackerHit;
    typedef G4THitsCollection<TrackerHit> TrackerHitCollection;

public:
    DriftChamberSensitiveDetector(const std::string& name, dd4hep::Detector& description);
    
public:
    // Geant4 interface

    virtual void Initialize(G4HCofThisEvent* HCE);
    virtual G4bool ProcessHits(G4Step* step,G4TouchableHistory* history);
    virtual void EndOfEvent(G4HCofThisEvent* HCE);

protected:

    HitCollection* m_hc;

};

#endif