ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
MicromegasSensitiveDetector.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 MicromegasSensitiveDetector_H
6
#define MicromegasSensitiveDetector_H
7
8
#include "G4VSensitiveDetector.hh"
9
#include "
StoreGate/WriteHandle.h
"
10
#include "
MuonSimEvent/MMSimHitCollection.h
"
11
#include <gtest/gtest_prod.h>
12
13
class
MicromegasHitIdHelper
;
14
15
class
MicromegasSensitiveDetector
:
public
G4VSensitiveDetector {
16
FRIEND_TEST
( MicromegasSensitiveDetectortest,
Initialize
);
17
FRIEND_TEST
( MicromegasSensitiveDetectortest,
ProcessHits
);
18
19
public
:
21
MicromegasSensitiveDetector
(
const
std::string&
name
,
const
std::string& hitCollectionName);
22
~MicromegasSensitiveDetector
() {}
23
25
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
26
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
27
28
private
:
29
30
SG::WriteHandle<MMSimHitCollection>
m_MMSimHitCollection
;
31
const
MicromegasHitIdHelper
*
m_muonHelper
;
32
33
};
34
35
#endif
MicromegasSensitiveDetector::~MicromegasSensitiveDetector
~MicromegasSensitiveDetector()
Definition:
MicromegasSensitiveDetector.h:22
MicromegasSensitiveDetector::MicromegasSensitiveDetector
MicromegasSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition:
MicromegasSensitiveDetector.cxx:18
MicromegasSensitiveDetector::FRIEND_TEST
FRIEND_TEST(MicromegasSensitiveDetectortest, ProcessHits)
MicromegasSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition:
MicromegasSensitiveDetector.cxx:32
MicromegasSensitiveDetector::m_muonHelper
const MicromegasHitIdHelper * m_muonHelper
Definition:
MicromegasSensitiveDetector.h:31
MicromegasSensitiveDetector
Definition:
MicromegasSensitiveDetector.h:15
WriteHandle.h
Handle class for recording to StoreGate.
MicromegasSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition:
MicromegasSensitiveDetector.cxx:27
MicromegasHitIdHelper
Definition:
MicromegasHitIdHelper.h:13
MicromegasSensitiveDetector::FRIEND_TEST
FRIEND_TEST(MicromegasSensitiveDetectortest, Initialize)
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
MMSimHitCollection.h
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
MicromegasSensitiveDetector::m_MMSimHitCollection
SG::WriteHandle< MMSimHitCollection > m_MMSimHitCollection
Definition:
MicromegasSensitiveDetector.h:30
Generated on Fri Jan 10 2025 21:14:12 for ATLAS Offline Software by
1.8.18