Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ATLAS-EGamma
athena
Commits
dc83ae11
Commit
dc83ae11
authored
Jun 30, 2022
by
Frank Winklmeier
Browse files
MuonG4SD: fix thread-checker warning
parent
eedc149f
Changes
2
Hide whitespace changes
Inline
Side-by-side
MuonSpectrometer/MuonG4/MuonG4SD/src/MDTSensitiveDetectorCosmics.cxx
View file @
dc83ae11
...
...
@@ -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
;
...
...
MuonSpectrometer/MuonG4/MuonG4SD/src/MDTSensitiveDetectorCosmics.h
View file @
dc83ae11
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment