ATLAS Offline Software
Loading...
Searching...
No Matches
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
58#include <string>
59#include <gtest/gtest_prod.h>
60
62
63class CSCSensitiveDetector : public G4VSensitiveDetector {
64
65FRIEND_TEST( CSCSensitiveDetectortest, Initialize );
66FRIEND_TEST( CSCSensitiveDetectortest, ProcessHits );
67public:
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
75private:
81};
82
83#endif
AtlasHitsVector< CSCSimHit > CSCSimHitCollection
This class is attached to G4Event objects as UserInformation.
std::string m_hitCollectionName
member data
CSCSensitiveDetector(const std::string &name, const std::string &hitCollectionName)
construction/destruction
const CscHitIdHelper * m_muonHelper
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
AtlasG4EventUserInfo * m_g4UserEventInfo
void Initialize(G4HCofThisEvent *HCE) override final
member functions
CSCSimHitCollection * m_myCSCHitColl
FRIEND_TEST(CSCSensitiveDetectortest, ProcessHits)
FRIEND_TEST(CSCSensitiveDetectortest, Initialize)