ATLAS Offline Software
Loading...
Searching...
No Matches
sTGCSensitiveDetector.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef sTGCSensitiveDetector_H
6#define sTGCSensitiveDetector_H
7
8#include "G4VSensitiveDetector.hh"
12#include <string>
13#include <gtest/gtest_prod.h>
14
16class sTgcHitIdHelper;
17
18class sTGCSensitiveDetector : public G4VSensitiveDetector,
19 public AthMessaging {
20FRIEND_TEST( sTGCSensitiveDetectortest, Initialize );
21FRIEND_TEST( sTGCSensitiveDetectortest, ProcessHits );
22
23public:
25 sTGCSensitiveDetector(const std::string& name,
26 const std::string& hitCollectionName,
27 unsigned baseDepth);
28
30 void Initialize(G4HCofThisEvent* HCE) override final;
31 G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
32
33private:
34
41 unsigned m_baseDepth{0};
42
43};
44
45#endif
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
This class is attached to G4Event objects as UserInformation.
unsigned m_baseDepth
basic depth to travel along the G4 history.
FRIEND_TEST(sTGCSensitiveDetectortest, ProcessHits)
sTGCSimHitCollection * m_sTGCSimHitCollection
AtlasG4EventUserInfo * m_g4UserEventInfo
FRIEND_TEST(sTGCSensitiveDetectortest, Initialize)
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
sTGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName, unsigned baseDepth)
construction/destruction
const sTgcHitIdHelper * m_muonHelper
void Initialize(G4HCofThisEvent *HCE) override final
member functions
static const sTgcHitIdHelper * GetHelper()
AtlasHitsVector< sTGCSimHit > sTGCSimHitCollection