ATLAS Offline Software
MDTSensitiveDetectorCosmics.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
77 #ifndef MDTSensitiveDetectorCosmics_H
78 #define MDTSensitiveDetectorCosmics_H
79 
80 #include "G4VSensitiveDetector.hh"
81 #include "StoreGate/WriteHandle.h"
83 #include <gtest/gtest_prod.h>
84 
85 class G4TouchableHistory;
86 class MdtHitIdHelper;
87 class MDTSimHit;
88 
89 class MDTSensitiveDetectorCosmics : public G4VSensitiveDetector {
90 FRIEND_TEST( MDTSensitiveDetectorCosmicstest, Initialize );
91 FRIEND_TEST( MDTSensitiveDetectorCosmicstest, ProcessHits );
92 FRIEND_TEST( MDTSensitiveDetectorCosmicstest, GetIdentifier );
93 
94 public:
96  MDTSensitiveDetectorCosmics(const std::string& name, const std::string& hitCollectionName, const unsigned int nTubesMax);
98 
100  void Initialize(G4HCofThisEvent* HCE) override final;
101  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
102 
103 private:
104  int GetIdentifier(const G4TouchableHistory* touchHist);
106  double m_momMag;
110 
114 
116  double m_globalTime;
118 
121 
122 };
123 
124 #endif
MDTSensitiveDetectorCosmics::m_globH
Amg::Vector3D m_globH
Definition: MDTSensitiveDetectorCosmics.h:109
MDTSensitiveDetectorCosmics::m_muonHelper
const MdtHitIdHelper * m_muonHelper
Definition: MDTSensitiveDetectorCosmics.h:113
MDTSensitiveDetectorCosmics::m_momMag
double m_momMag
Definition: MDTSensitiveDetectorCosmics.h:106
MdtHitIdHelper
Definition: MdtHitIdHelper.h:13
MDTSimHit
Definition: MDTSimHit.h:21
MDTSensitiveDetectorCosmics::m_driftRadius
double m_driftRadius
Definition: MDTSensitiveDetectorCosmics.h:115
MDTSensitiveDetectorCosmics::Initialize
void Initialize(G4HCofThisEvent *HCE) override final
member functions
Definition: MDTSensitiveDetectorCosmics.cxx:38
MDTSensitiveDetectorCosmics::m_globalTime
double m_globalTime
Definition: MDTSensitiveDetectorCosmics.h:116
MDTSensitiveDetectorCosmics::FRIEND_TEST
FRIEND_TEST(MDTSensitiveDetectorCosmicstest, ProcessHits)
MDTSensitiveDetectorCosmics::m_DEFAULT_TUBE_RADIUS
double m_DEFAULT_TUBE_RADIUS
radius assigned to radius if radius is invalid
Definition: MDTSensitiveDetectorCosmics.h:120
MDTSensitiveDetectorCosmics::~MDTSensitiveDetectorCosmics
~MDTSensitiveDetectorCosmics()=default
WriteHandle.h
Handle class for recording to StoreGate.
MDTSensitiveDetectorCosmics::m_vertex
Amg::Vector3D m_vertex
Definition: MDTSensitiveDetectorCosmics.h:107
MDTSensitiveDetectorCosmics::FRIEND_TEST
FRIEND_TEST(MDTSensitiveDetectorCosmicstest, GetIdentifier)
MDTSensitiveDetectorCosmics::m_currVertex
Amg::Vector3D m_currVertex
Definition: MDTSensitiveDetectorCosmics.h:108
MDTSimHitCollection.h
MDTSensitiveDetectorCosmics::m_MDTHitColl
SG::WriteHandle< MDTSimHitCollection > m_MDTHitColl
member data
Definition: MDTSensitiveDetectorCosmics.h:112
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MDTSensitiveDetectorCosmics::MDTSensitiveDetectorCosmics
MDTSensitiveDetectorCosmics(const std::string &name, const std::string &hitCollectionName, const unsigned int nTubesMax)
construction/destruction
Definition: MDTSensitiveDetectorCosmics.cxx:26
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MDTSensitiveDetectorCosmics::m_mom
Amg::Vector3D m_mom
Definition: MDTSensitiveDetectorCosmics.h:105
MDTSensitiveDetectorCosmics::FRIEND_TEST
FRIEND_TEST(MDTSensitiveDetectorCosmicstest, Initialize)
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
MDTSensitiveDetectorCosmics::GetIdentifier
int GetIdentifier(const G4TouchableHistory *touchHist)
Definition: MDTSensitiveDetectorCosmics.cxx:176
MDTSensitiveDetectorCosmics
Definition: MDTSensitiveDetectorCosmics.h:89
MDTSensitiveDetectorCosmics::m_localPosition
Amg::Vector3D m_localPosition
Definition: MDTSensitiveDetectorCosmics.h:117
MDTSensitiveDetectorCosmics::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition: MDTSensitiveDetectorCosmics.cxx:48