ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
sTGCSensitiveDetector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef sTGCSensitiveDetector_H
6
#define sTGCSensitiveDetector_H
7
8
#include "G4VSensitiveDetector.hh"
9
#include "
StoreGate/WriteHandle.h
"
10
#include "
MuonSimEvent/sTGCSimHitCollection.h
"
11
#include <gtest/gtest_prod.h>
12
13
class
sTgcHitIdHelper
;
14
15
class
sTGCSensitiveDetector
:
public
G4VSensitiveDetector {
16
FRIEND_TEST
( sTGCSensitiveDetectortest,
Initialize
);
17
FRIEND_TEST
( sTGCSensitiveDetectortest,
ProcessHits
);
18
19
public
:
21
sTGCSensitiveDetector
(
const
std::string&
name
,
const
std::string& hitCollectionName);
22
~sTGCSensitiveDetector
() {}
23
25
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
26
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
27
28
private
:
29
30
SG::WriteHandle<sTGCSimHitCollection>
m_sTGCSimHitCollection
;
31
const
sTgcHitIdHelper
*
m_muonHelper
;
32
33
};
34
35
#endif
sTGCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition:
sTGCSensitiveDetector.cxx:32
sTGCSimHitCollection.h
sTGCSensitiveDetector::m_muonHelper
const sTgcHitIdHelper * m_muonHelper
Definition:
sTGCSensitiveDetector.h:31
WriteHandle.h
Handle class for recording to StoreGate.
sTGCSensitiveDetector
Definition:
sTGCSensitiveDetector.h:15
sTGCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition:
sTGCSensitiveDetector.cxx:27
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
sTGCSensitiveDetector::m_sTGCSimHitCollection
SG::WriteHandle< sTGCSimHitCollection > m_sTGCSimHitCollection
Definition:
sTGCSensitiveDetector.h:30
sTgcHitIdHelper
Definition:
sTgcHitIdHelper.h:13
sTGCSensitiveDetector::sTGCSensitiveDetector
sTGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition:
sTGCSensitiveDetector.cxx:18
sTGCSensitiveDetector::~sTGCSensitiveDetector
~sTGCSensitiveDetector()
Definition:
sTGCSensitiveDetector.h:22
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, Initialize)
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, ProcessHits)
Generated on Fri Jan 10 2025 21:18:05 for ATLAS Offline Software by
1.8.18