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
14
15// STL header
16#include <string>
17#include <map>
18#include <gtest/gtest_prod.h>
19
20// G4 needed classes
21class G4Step;
22class G4HCofThisEvent;
23
24class ZDC_FiberSD : public G4VSensitiveDetector
25{
26 FRIEND_TEST( ZDC_FiberSDtest, ProcessHits );
27 FRIEND_TEST( ZDC_FiberSDtest, Initialize );
28 FRIEND_TEST( ZDC_FiberSDtest, StartOfAthenaEvent );
29 FRIEND_TEST( ZDC_FiberSDtest, EndOfAthenaEvent );
30 public:
31
32 ZDC_FiberSD(const G4String& name, const G4String& hitCollectionName, const float &readoutPos);
34
35 // Initialize from G4
36 void Initialize(G4HCofThisEvent *) override final;
37 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
38 // Called from ZDC_FiberSDTool::Gather
39 void EndOfAthenaEvent();
40
41
42 private:
44 std::map< uint32_t, ZDC_SimFiberHit* > m_hitMap;
46};
47
48#endif //ZDC_SD_ZDC_FIBER_SD_H
Handle class for recording to StoreGate.
SG::WriteHandle< ZDC_SimFiberHit_Collection > m_HitColl
Definition ZDC_FiberSD.h:43
std::map< uint32_t, ZDC_SimFiberHit * > m_hitMap
Definition ZDC_FiberSD.h:44
void Initialize(G4HCofThisEvent *) override final
FRIEND_TEST(ZDC_FiberSDtest, EndOfAthenaEvent)
float m_readoutPos
Definition ZDC_FiberSD.h:45
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
FRIEND_TEST(ZDC_FiberSDtest, StartOfAthenaEvent)
FRIEND_TEST(ZDC_FiberSDtest, Initialize)
void EndOfAthenaEvent()
FRIEND_TEST(ZDC_FiberSDtest, ProcessHits)
ZDC_FiberSD(const G4String &name, const G4String &hitCollectionName, const float &readoutPos)