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
if( ((nameSD) && (namePreStepMat != namePostStepMat)) || (currentTrack->GetTrackStatus() == fStopAndKill)){
// get identifier
G4TouchableHistory* touchHist = (G4TouchableHistory*)aStep->GetPreStepPoint()->GetTouchable();
const G4TouchableHistory* touchHist = static_cast<const G4TouchableHistory*>(aStep->GetPreStepPoint()->GetTouchable());
int MDTid = GetIdentifier(touchHist);
TrackHelper trHelp(aStep->GetTrack());
......@@ -173,7 +173,7 @@ G4bool MDTSensitiveDetectorCosmics::ProcessHits(G4Step* aStep,G4TouchableHistory
return true;
}
int MDTSensitiveDetectorCosmics::GetIdentifier(G4TouchableHistory* touchHist)
int MDTSensitiveDetectorCosmics::GetIdentifier(const G4TouchableHistory* touchHist)
{
// attributes of the MDT identifier construction
std::string stationName;
......
......@@ -101,7 +101,7 @@ public:
G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override final;
private:
int GetIdentifier(G4TouchableHistory* touchHist);
int GetIdentifier(const G4TouchableHistory* touchHist);
Amg::Vector3D m_mom;
double m_momMag;
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