ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
49
50
51
#ifndef CSCSENSITIVEDETECTOR_H
52
#define CSCSENSITIVEDETECTOR_H
53
54
#include "G4VSensitiveDetector.hh"
55
56
#include "
MuonSimEvent/CSCSimHitCollection.h
"
57
#include "
MuonSimEvent/CscHitIdHelper.h
"
58
#include <string>
59
#include <gtest/gtest_prod.h>
60
61
class
AtlasG4EventUserInfo
;
62
63
class
CSCSensitiveDetector
:
public
G4VSensitiveDetector {
64
65
FRIEND_TEST
( CSCSensitiveDetectortest,
Initialize
);
66
FRIEND_TEST
( CSCSensitiveDetectortest,
ProcessHits
);
67
public
:
69
CSCSensitiveDetector
(
const
std::string& name,
const
std::string& hitCollectionName);
70
72
void
Initialize
(G4HCofThisEvent* HCE)
override
final
;
73
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
74
75
private
:
77
std::string
m_hitCollectionName
;
78
CSCSimHitCollection
*
m_myCSCHitColl
{
nullptr
};
79
AtlasG4EventUserInfo
*
m_g4UserEventInfo
{
nullptr
};
80
const
CscHitIdHelper
*
m_muonHelper
;
81
};
82
83
#endif
CSCSimHitCollection.h
CSCSimHitCollection
AtlasHitsVector< CSCSimHit > CSCSimHitCollection
Definition
CSCSimHitCollection.h:14
CscHitIdHelper.h
AtlasG4EventUserInfo
This class is attached to G4Event objects as UserInformation.
Definition
AtlasG4EventUserInfo.h:26
CSCSensitiveDetector::m_hitCollectionName
std::string m_hitCollectionName
member data
Definition
CSCSensitiveDetector.h:77
CSCSensitiveDetector::CSCSensitiveDetector
CSCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition
CSCSensitiveDetector.cxx:20
CSCSensitiveDetector::m_muonHelper
const CscHitIdHelper * m_muonHelper
Definition
CSCSensitiveDetector.h:80
CSCSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition
CSCSensitiveDetector.cxx:38
CSCSensitiveDetector::m_g4UserEventInfo
AtlasG4EventUserInfo * m_g4UserEventInfo
Definition
CSCSensitiveDetector.h:79
CSCSensitiveDetector::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition
CSCSensitiveDetector.cxx:29
CSCSensitiveDetector::m_myCSCHitColl
CSCSimHitCollection * m_myCSCHitColl
Definition
CSCSensitiveDetector.h:78
CSCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectortest, ProcessHits)
CSCSensitiveDetector::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectortest, Initialize)
CscHitIdHelper
Definition
CscHitIdHelper.h:13
Generated on
for ATLAS Offline Software by
1.17.0