ATLAS Offline Software
Loading...
Searching...
No Matches
HGTDSensorSD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// HGTDSensorSD.h, (c) ATLAS Detector software
8
9#ifndef HGTD_G4_SD_HGTDSENSORSD_H
10#define HGTD_G4_SD_HGTDSENSORSD_H
11
12// Base class
13#include "G4VSensitiveDetector.hh"
14
15//new LAr stuff
18
19// Geant4 headers
20#include "G4ThreeVector.hh"
21
22#include <string>
23
24// G4 needed classes
25class G4Step;
26class G4HCofThisEvent;
27
28class HGTDSensorSD : public G4VSensitiveDetector
29{
30
31public:
32
33 // Constructor
34 HGTDSensorSD(const std::string& name, const std::string& hitCollectionName);
35
36 // Destructor
37 virtual ~HGTDSensorSD() {}
38
39 // Process the hits from G4
40 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
41
42 // Initialize from G4
43 void Initialize(G4HCofThisEvent *) override final;
44
45private:
46
48
50 // Non-owning cache set by Initialize; HitCollectionMap owns the collection.
52
53};
54
55#endif // HGTD_G4_SD_HGTDSENSORSD_H
AtlasHitsVector< SiHit > SiHitCollection
SiHitCollection * m_hitColl
SiHitCollection * getHitCollection() const
std::string m_hitCollectionName
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
virtual ~HGTDSensorSD()
HGTDSensorSD(const std::string &name, const std::string &hitCollectionName)
void Initialize(G4HCofThisEvent *) override final