ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
TGCSensitiveDetector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
61
#ifndef TGCSENSITIVEDETECTOR_H
62
#define TGCSENSITIVEDETECTOR_H
63
64
#include "G4VSensitiveDetector.hh"
65
#include "
StoreGate/WriteHandle.h
"
66
67
#include "
MuonSimEvent/TGCSimHitCollection.h
"
68
#include "
MuonSimEvent/TgcHitIdHelper.h
"
69
#include <gtest/gtest_prod.h>
70
71
class
TGCSensitiveDetector
:
public
G4VSensitiveDetector {
72
FRIEND_TEST
( TGCSensitiveDetectortest,
Initialize
);
73
FRIEND_TEST
( TGCSensitiveDetectortest,
ProcessHits
);
74
75
public
:
77
TGCSensitiveDetector
(
const
std::string&
name
,
const
std::string& hitCollectionName);
78
~TGCSensitiveDetector
() {}
79
81
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
82
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROHist)
override
final
;
83
84
private
:
86
SG::WriteHandle<TGCSimHitCollection>
m_myTGCHitColl
;
87
const
TgcHitIdHelper
*
m_muonHelper
;
88
};
89
90
#endif
TGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(TGCSensitiveDetectortest, ProcessHits)
TGCSensitiveDetector::m_muonHelper
const TgcHitIdHelper * m_muonHelper
Definition:
TGCSensitiveDetector.h:87
TGCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROHist) override final
Definition:
TGCSensitiveDetector.cxx:29
TGCSensitiveDetector::TGCSensitiveDetector
TGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition:
TGCSensitiveDetector.cxx:16
TgcHitIdHelper
Definition:
TgcHitIdHelper.h:13
WriteHandle.h
Handle class for recording to StoreGate.
TGCSensitiveDetector::~TGCSensitiveDetector
~TGCSensitiveDetector()
Definition:
TGCSensitiveDetector.h:78
TGCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition:
TGCSensitiveDetector.cxx:24
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(TGCSensitiveDetectortest, Initialize)
TGCSimHitCollection.h
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
TGCSensitiveDetector
Definition:
TGCSensitiveDetector.h:71
TgcHitIdHelper.h
TGCSensitiveDetector::m_myTGCHitColl
SG::WriteHandle< TGCSimHitCollection > m_myTGCHitColl
member data
Definition:
TGCSensitiveDetector.h:86
Generated on Thu Nov 7 2024 21:27:48 for ATLAS Offline Software by
1.8.18