ATLAS Offline Software
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"
13 #include <gtest/gtest_prod.h>
14 
15 class sTgcHitIdHelper;
16 
17 class sTGCSensitiveDetector : public G4VSensitiveDetector,
18  public AthMessaging {
19 FRIEND_TEST( sTGCSensitiveDetectortest, Initialize );
20 FRIEND_TEST( sTGCSensitiveDetectortest, ProcessHits );
21 
22 public:
24  sTGCSensitiveDetector(const std::string& name,
25  const std::string& hitCollectionName,
26  unsigned baseDepth);
28 
30  void Initialize(G4HCofThisEvent* HCE) override final;
31  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
32 
33 private:
34 
39  unsigned m_baseDepth{0};
40 
41 };
42 
43 #endif
sTGCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition: sTGCSensitiveDetector.cxx:32
sTGCSensitiveDetector::~sTGCSensitiveDetector
~sTGCSensitiveDetector()=default
sTgcHitIdHelper::GetHelper
static const sTgcHitIdHelper * GetHelper()
Definition: sTgcHitIdHelper.cxx:24
sTGCSimHitCollection.h
sTGCSensitiveDetector::m_muonHelper
const sTgcHitIdHelper * m_muonHelper
Definition: sTGCSensitiveDetector.h:36
WriteHandle.h
Handle class for recording to StoreGate.
sTGCSensitiveDetector::sTGCSensitiveDetector
sTGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName, unsigned baseDepth)
construction/destruction
Definition: sTGCSensitiveDetector.cxx:18
sTGCSensitiveDetector::m_baseDepth
unsigned m_baseDepth
basic depth to travel along the G4 history.
Definition: sTGCSensitiveDetector.h:39
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
sTGCSensitiveDetector
Definition: sTGCSensitiveDetector.h:18
sTGCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition: sTGCSensitiveDetector.cxx:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:73
sTGCSensitiveDetector::m_sTGCSimHitCollection
SG::WriteHandle< sTGCSimHitCollection > m_sTGCSimHitCollection
Definition: sTGCSensitiveDetector.h:35
sTgcHitIdHelper
Definition: sTgcHitIdHelper.h:13
AthMessaging.h
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, Initialize)
sTGCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(sTGCSensitiveDetectortest, ProcessHits)
sTgcHitIdHelper.h