ATLAS Offline Software
Loading...
Searching...
No Matches
TGCSensitiveDetector.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
61#ifndef TGCSENSITIVEDETECTOR_H
62#define TGCSENSITIVEDETECTOR_H
63
64#include "G4VSensitiveDetector.hh"
65
68#include <string>
69#include <gtest/gtest_prod.h>
70
72
73class TGCSensitiveDetector : public G4VSensitiveDetector {
74FRIEND_TEST( TGCSensitiveDetectortest, Initialize );
75FRIEND_TEST( TGCSensitiveDetectortest, ProcessHits );
76
77 public:
79 TGCSensitiveDetector(const std::string& name, const std::string& hitCollectionName);
80
82 void Initialize(G4HCofThisEvent* HCE) override final;
83 G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROHist) override final;
84
85 private:
91};
92
93#endif
AtlasHitsVector< TGCSimHit > TGCSimHitCollection
This class is attached to G4Event objects as UserInformation.
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROHist) override final
TGCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
std::string m_hitCollectionName
member data
const TgcHitIdHelper * m_muonHelper
FRIEND_TEST(TGCSensitiveDetectortest, Initialize)
TGCSimHitCollection * m_myTGCHitColl
FRIEND_TEST(TGCSensitiveDetectortest, ProcessHits)
AtlasG4EventUserInfo * m_g4UserEventInfo
void Initialize(G4HCofThisEvent *HCE) override final
member functions