ATLAS Offline Software
Loading...
Searching...
No Matches
CSCSensitiveDetectorCosmics.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
54
55
56#ifndef CSCSensitiveDetectorCosmics_H
57#define CSCSensitiveDetectorCosmics_H
58
59#include "G4VSensitiveDetector.hh"
60
63#include <string>
64#include <gtest/gtest_prod.h>
65
67
68class CSCSensitiveDetectorCosmics : public G4VSensitiveDetector {
69 FRIEND_TEST( CSCSensitiveDetectorCosmicstest, Initialize );
70 FRIEND_TEST( CSCSensitiveDetectorCosmicstest, ProcessHits );
71public:
73 CSCSensitiveDetectorCosmics(const std::string& name, const std::string& hitCollectionName);
74
76 void Initialize(G4HCofThisEvent* HCE) override final;
77 G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
78
79private:
81 double m_momMag;
86
92};
93
94#endif
AtlasHitsVector< CSCSimHit > CSCSimHitCollection
This class is attached to G4Event objects as UserInformation.
FRIEND_TEST(CSCSensitiveDetectorCosmicstest, ProcessHits)
CSCSensitiveDetectorCosmics(const std::string &name, const std::string &hitCollectionName)
construction/destruction
void Initialize(G4HCofThisEvent *HCE) override final
member functions
FRIEND_TEST(CSCSensitiveDetectorCosmicstest, Initialize)
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Eigen::Matrix< double, 3, 1 > Vector3D