ATLAS Offline Software
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 
56 #ifndef CSCSensitiveDetectorCosmics_H
57 #define CSCSensitiveDetectorCosmics_H
58 
59 #include "G4VSensitiveDetector.hh"
60 #include "StoreGate/WriteHandle.h"
61 
64 #include <gtest/gtest_prod.h>
65 
66 class CSCSensitiveDetectorCosmics : public G4VSensitiveDetector {
67  FRIEND_TEST( CSCSensitiveDetectorCosmicstest, Initialize );
68  FRIEND_TEST( CSCSensitiveDetectorCosmicstest, ProcessHits );
69 public:
71  CSCSensitiveDetectorCosmics(const std::string& name, const std::string& hitCollectionName);
73 
75  void Initialize(G4HCofThisEvent* HCE) override final;
76  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
77 
78 private:
80  double m_momMag;
84  double m_globalTime;
85 
89 };
90 
91 #endif
CSCSensitiveDetectorCosmics::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition: CSCSensitiveDetectorCosmics.cxx:41
CSCSimHitCollection.h
CSCSensitiveDetectorCosmics::m_mom
Amg::Vector3D m_mom
Definition: CSCSensitiveDetectorCosmics.h:79
CSCSensitiveDetectorCosmics::m_myCSCHitColl
SG::WriteHandle< CSCSimHitCollection > m_myCSCHitColl
member data
Definition: CSCSensitiveDetectorCosmics.h:87
CSCSensitiveDetectorCosmics::m_currVertex
Amg::Vector3D m_currVertex
Definition: CSCSensitiveDetectorCosmics.h:82
WriteHandle.h
Handle class for recording to StoreGate.
CscHitIdHelper
Definition: CscHitIdHelper.h:13
CSCSensitiveDetectorCosmics::CSCSensitiveDetectorCosmics
CSCSensitiveDetectorCosmics(const std::string &name, const std::string &hitCollectionName)
construction/destruction
Definition: CSCSensitiveDetectorCosmics.cxx:20
CSCSensitiveDetectorCosmics::m_globalTime
double m_globalTime
Definition: CSCSensitiveDetectorCosmics.h:84
CSCSensitiveDetectorCosmics::m_muonHelper
const CscHitIdHelper * m_muonHelper
Definition: CSCSensitiveDetectorCosmics.h:88
CSCSensitiveDetectorCosmics::m_momMag
double m_momMag
Definition: CSCSensitiveDetectorCosmics.h:80
CscHitIdHelper.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
CSCSensitiveDetectorCosmics::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectorCosmicstest, ProcessHits)
CSCSensitiveDetectorCosmics::FRIEND_TEST
FRIEND_TEST(CSCSensitiveDetectorCosmicstest, Initialize)
CSCSensitiveDetectorCosmics::~CSCSensitiveDetectorCosmics
~CSCSensitiveDetectorCosmics()
Definition: CSCSensitiveDetectorCosmics.h:72
CSCSensitiveDetectorCosmics::m_globH
Amg::Vector3D m_globH
Definition: CSCSensitiveDetectorCosmics.h:83
CSCSensitiveDetectorCosmics
Definition: CSCSensitiveDetectorCosmics.h:66
CSCSensitiveDetectorCosmics::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition: CSCSensitiveDetectorCosmics.cxx:32
CSCSensitiveDetectorCosmics::m_vertex
Amg::Vector3D m_vertex
Definition: CSCSensitiveDetectorCosmics.h:81