ATLAS Offline Software
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 
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);
79 
81  void Initialize(G4HCofThisEvent* HCE) override final;
82  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROHist) override final;
83 
84  private:
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:195
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