ATLAS Offline Software
MuonSpectrometer
MuonG4
MuonG4SD
src
CSCSensitiveDetector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
51
#ifndef CSCSENSITIVEDETECTOR_H
52
#define CSCSENSITIVEDETECTOR_H
53
54
#include "G4VSensitiveDetector.hh"
55
#include "
StoreGate/WriteHandle.h
"
56
57
#include "
MuonSimEvent/CSCSimHitCollection.h
"
58
#include "
MuonSimEvent/CscHitIdHelper.h
"
59
#include <gtest/gtest_prod.h>
60
61
class
CSCSensitiveDetector
:
public
G4VSensitiveDetector {
62
63
FRIEND_TEST
( CSCSensitiveDetectortest,
Initialize
);
64
FRIEND_TEST
( CSCSensitiveDetectortest,
ProcessHits
);
65
public
:
67
CSCSensitiveDetector
(
const
std::string&
name
,
const
std::string& hitCollectionName);
68
~CSCSensitiveDetector
() {}
69
71
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
72
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
73
74
private
:
76
SG::WriteHandle<CSCSimHitCollection>
m_myCSCHitColl
;
77
const
CscHitIdHelper
*
m_muonHelper
;
78
};
79
80
#endif
CSCSimHitCollection.h
CSCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition:
CSCSensitiveDetector.cxx:26
WriteHandle.h
Handle class for recording to StoreGate.
CSCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectortest, Initialize)
CscHitIdHelper
Definition:
CscHitIdHelper.h:13
CscHitIdHelper.h
CSCSensitiveDetector
Definition:
CSCSensitiveDetector.h:61
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
CSCSensitiveDetector::m_muonHelper
const CscHitIdHelper * m_muonHelper
Definition:
CSCSensitiveDetector.h:77
CSCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectortest, ProcessHits)
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
CSCSensitiveDetector::~CSCSensitiveDetector
~CSCSensitiveDetector()
Definition:
CSCSensitiveDetector.h:68
CSCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition:
CSCSensitiveDetector.cxx:31
CSCSensitiveDetector::m_myCSCHitColl
SG::WriteHandle< CSCSimHitCollection > m_myCSCHitColl
member data
Definition:
CSCSensitiveDetector.h:76
CSCSensitiveDetector::CSCSensitiveDetector
CSCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition:
CSCSensitiveDetector.cxx:17
Generated on Sun Dec 22 2024 21:08:55 for ATLAS Offline Software by
1.8.18