ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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 "
MuonSimEvent/sTGCSimHitCollection.h
"
10
#include "
MuonSimEvent/sTgcHitIdHelper.h
"
11
#include "
AthenaBaseComps/AthMessaging.h
"
12
#include <string>
13
#include <gtest/gtest_prod.h>
14
15
class
AtlasG4EventUserInfo
;
16
class
sTgcHitIdHelper
;
17
18
class
sTGCSensitiveDetector
:
public
G4VSensitiveDetector,
19
public
AthMessaging
{
20
FRIEND_TEST
( sTGCSensitiveDetectortest,
Initialize
);
21
FRIEND_TEST
( sTGCSensitiveDetectortest,
ProcessHits
);
22
23
public
:
25
sTGCSensitiveDetector
(
const
std::string& name,
26
const
std::string& hitCollectionName,
27
unsigned
baseDepth);
28
30
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
31
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
32
33
private
:
34
35
std::string
m_hitCollectionName
;
36
sTGCSimHitCollection
*
m_sTGCSimHitCollection
{
nullptr
};
37
AtlasG4EventUserInfo
*
m_g4UserEventInfo
{
nullptr
};
38
const
sTgcHitIdHelper
*
m_muonHelper
{
sTgcHitIdHelper::GetHelper
()};
41
unsigned
m_baseDepth
{0};
42
43
};
44
45
#endif
AthMessaging.h
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
AtlasG4EventUserInfo
This class is attached to G4Event objects as UserInformation.
Definition
AtlasG4EventUserInfo.h:26
sTGCSensitiveDetector::m_baseDepth
unsigned m_baseDepth
basic depth to travel along the G4 history.
Definition
sTGCSensitiveDetector.h:41
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, ProcessHits)
sTGCSensitiveDetector::m_sTGCSimHitCollection
sTGCSimHitCollection * m_sTGCSimHitCollection
Definition
sTGCSensitiveDetector.h:36
sTGCSensitiveDetector::m_hitCollectionName
std::string m_hitCollectionName
Definition
sTGCSensitiveDetector.h:35
sTGCSensitiveDetector::m_g4UserEventInfo
AtlasG4EventUserInfo * m_g4UserEventInfo
Definition
sTGCSensitiveDetector.h:37
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, Initialize)
sTGCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition
sTGCSensitiveDetector.cxx:39
sTGCSensitiveDetector::sTGCSensitiveDetector
sTGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName, unsigned baseDepth)
construction/destruction
Definition
sTGCSensitiveDetector.cxx:21
sTGCSensitiveDetector::m_muonHelper
const sTgcHitIdHelper * m_muonHelper
Definition
sTGCSensitiveDetector.h:38
sTGCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition
sTGCSensitiveDetector.cxx:30
sTgcHitIdHelper
Definition
sTgcHitIdHelper.h:13
sTgcHitIdHelper::GetHelper
static const sTgcHitIdHelper * GetHelper()
Definition
sTgcHitIdHelper.cxx:24
sTGCSimHitCollection.h
sTGCSimHitCollection
AtlasHitsVector< sTGCSimHit > sTGCSimHitCollection
Definition
sTGCSimHitCollection.h:15
sTgcHitIdHelper.h
Generated on
for ATLAS Offline Software by
1.17.0