ATLAS Offline Software
Loading...
Searching...
No Matches
ZDC_FiberSD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ZDC_SD_ZDC_FIBER_SD_H
6#define ZDC_SD_ZDC_FIBER_SD_H
7
8// Base class
9#include "G4VSensitiveDetector.hh"
10
11// use of the hits
13
14// STL header
15#include <string>
16#include <gtest/gtest_prod.h>
17
18// G4 needed classes
19class G4Step;
20class G4HCofThisEvent;
21
22class ZDC_FiberSD : public G4VSensitiveDetector
23{
24 FRIEND_TEST( ZDC_FiberSDtest, ProcessHits );
25 public:
26
27 ZDC_FiberSD(const G4String& name, const G4String& hitCollectionName, const float &readoutPos);
28
29 // Initialize from G4
30 void Initialize(G4HCofThisEvent *) override final;
31 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
32
33
34 private:
36
38 // Non-owning cache set by Initialize; HitCollectionMap owns the collection.
41};
42
43#endif //ZDC_SD_ZDC_FIBER_SD_H
void Initialize(G4HCofThisEvent *) override final
float m_readoutPos
Definition ZDC_FiberSD.h:40
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
FRIEND_TEST(ZDC_FiberSDtest, ProcessHits)
ZDC_FiberSD(const G4String &name, const G4String &hitCollectionName, const float &readoutPos)
std::string m_hitCollectionName
Definition ZDC_FiberSD.h:37
ZDC_SimFiberHitCollectionBuilder * m_HitColl
Definition ZDC_FiberSD.h:39
ZDC_SimFiberHitCollectionBuilder * getHitCollection() const