ATLAS Offline Software
RPCSensitiveDetector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
86 #ifndef RPCSensitiveDetector_H
87 #define RPCSensitiveDetector_H
88 
89 #include "G4VSensitiveDetector.hh"
90 #include "StoreGate/WriteHandle.h"
91 
94 #include <gtest/gtest_prod.h>
95 
96 class RPCSensitiveDetector : public G4VSensitiveDetector {
97 FRIEND_TEST( RPCSensitiveDetectortest, Initialize );
98 FRIEND_TEST( RPCSensitiveDetectortest, ProcessHits );
99 
100 public:
102  RPCSensitiveDetector(const std::string& name, const std::string& hitCollectionName, unsigned int nGasGaps);
104 
106  void Initialize(G4HCofThisEvent*) override final;
107  G4bool ProcessHits(G4Step*,G4TouchableHistory*) override final;
108 
109 private:
112  const RpcHitIdHelper* m_muonHelper{nullptr};
113 };
114 
115 #endif
RPCSensitiveDetector::m_muonHelper
const RpcHitIdHelper * m_muonHelper
Definition: RPCSensitiveDetector.h:112
RPCSensitiveDetector
Definition: RPCSensitiveDetector.h:96
RPCSensitiveDetector::m_myRPCHitColl
SG::WriteHandle< RPCSimHitCollection > m_myRPCHitColl
member data
Definition: RPCSensitiveDetector.h:111
RPCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
Definition: RPCSensitiveDetector.cxx:36
RpcHitIdHelper.h
WriteHandle.h
Handle class for recording to StoreGate.
RPCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(RPCSensitiveDetectortest, ProcessHits)
RPCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(RPCSensitiveDetectortest, Initialize)
RPCSensitiveDetector::RPCSensitiveDetector
RPCSensitiveDetector(const std::string &name, const std::string &hitCollectionName, unsigned int nGasGaps)
construction/destruction
Definition: RPCSensitiveDetector.cxx:20
RPCSimHitCollection.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
RPCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *) override final
member functions
Definition: RPCSensitiveDetector.cxx:27
RPCSensitiveDetector::~RPCSensitiveDetector
~RPCSensitiveDetector()=default
RpcHitIdHelper
Definition: RpcHitIdHelper.h:13