Commit dc83ae11 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

MuonG4SD: fix thread-checker warning

parent eedc149f
...@@ -156,7 +156,7 @@ G4bool MDTSensitiveDetectorCosmics::ProcessHits(G4Step* aStep,G4TouchableHistory ...@@ -156,7 +156,7 @@ G4bool MDTSensitiveDetectorCosmics::ProcessHits(G4Step* aStep,G4TouchableHistory
if( ((nameSD) && (namePreStepMat != namePostStepMat)) || (currentTrack->GetTrackStatus() == fStopAndKill)){ if( ((nameSD) && (namePreStepMat != namePostStepMat)) || (currentTrack->GetTrackStatus() == fStopAndKill)){
// get identifier // get identifier
G4TouchableHistory* touchHist = (G4TouchableHistory*)aStep->GetPreStepPoint()->GetTouchable(); const G4TouchableHistory* touchHist = static_cast<const G4TouchableHistory*>(aStep->GetPreStepPoint()->GetTouchable());
int MDTid = GetIdentifier(touchHist); int MDTid = GetIdentifier(touchHist);
TrackHelper trHelp(aStep->GetTrack()); TrackHelper trHelp(aStep->GetTrack());
...@@ -173,7 +173,7 @@ G4bool MDTSensitiveDetectorCosmics::ProcessHits(G4Step* aStep,G4TouchableHistory ...@@ -173,7 +173,7 @@ G4bool MDTSensitiveDetectorCosmics::ProcessHits(G4Step* aStep,G4TouchableHistory
return true; return true;
} }
int MDTSensitiveDetectorCosmics::GetIdentifier(G4TouchableHistory* touchHist) int MDTSensitiveDetectorCosmics::GetIdentifier(const G4TouchableHistory* touchHist)
{ {
// attributes of the MDT identifier construction // attributes of the MDT identifier construction
std::string stationName; std::string stationName;
......
...@@ -101,7 +101,7 @@ public: ...@@ -101,7 +101,7 @@ public:
G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final; G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
private: private:
int GetIdentifier(G4TouchableHistory* touchHist); int GetIdentifier(const G4TouchableHistory* touchHist);
Amg::Vector3D m_mom; Amg::Vector3D m_mom;
double m_momMag; double m_momMag;
Amg::Vector3D m_vertex; Amg::Vector3D m_vertex;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment