ATLAS Offline Software
GenericMuonSensitiveDetector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GenericMuonSensitiveDetector_H
6 #define GenericMuonSensitiveDetector_H
7 
8 #include "G4VSensitiveDetector.hh"
11 #include <gtest/gtest_prod.h>
12 
13 class GenericMuonSensitiveDetector : public G4VSensitiveDetector {
14  FRIEND_TEST( GenericMuonSensitiveDetectortest, Initialize );
15  FRIEND_TEST( GenericMuonSensitiveDetectortest, ProcessHits );
16 public:
18  GenericMuonSensitiveDetector(const std::string& name, const std::string& hitCollectionName);
20 
22  void Initialize(G4HCofThisEvent* HCE) override final;
23  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
24 
25 private:
26 
28 
29 };
30 
31 #endif
GenericMuonSensitiveDetector
Definition: GenericMuonSensitiveDetector.h:13
GenericMuonSensitiveDetector::~GenericMuonSensitiveDetector
~GenericMuonSensitiveDetector()
Definition: GenericMuonSensitiveDetector.h:19
GenericMuonSimHitCollection.h
WriteHandle.h
Handle class for recording to StoreGate.
GenericMuonSensitiveDetector::GenericMuonSensitiveDetector
GenericMuonSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition: GenericMuonSensitiveDetector.cxx:15
GenericMuonSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition: GenericMuonSensitiveDetector.cxx:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
GenericMuonSensitiveDetector::m_GenericMuonHitCollection
SG::WriteHandle< GenericMuonSimHitCollection > m_GenericMuonHitCollection
Definition: GenericMuonSensitiveDetector.h:27
GenericMuonSensitiveDetector::FRIEND_TEST
FRIEND_TEST(GenericMuonSensitiveDetectortest, ProcessHits)
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
GenericMuonSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition: GenericMuonSensitiveDetector.cxx:28
GenericMuonSensitiveDetector::FRIEND_TEST
FRIEND_TEST(GenericMuonSensitiveDetectortest, Initialize)