diff --git a/LArCalorimeter/LArG4/LArG4FCAL/ATLAS_CHECK_THREAD_SAFETY b/LArCalorimeter/LArG4/LArG4FCAL/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..a12b3f4ada35df049db27a44f000b66583d545a6 --- /dev/null +++ b/LArCalorimeter/LArG4/LArG4FCAL/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +LArCalorimeter/LArG4/LArG4FCAL diff --git a/LArCalorimeter/LArG4/LArG4HEC/ATLAS_CHECK_THREAD_SAFETY b/LArCalorimeter/LArG4/LArG4HEC/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..0be6fbada7b1842b477a91b5715ea403130455ab --- /dev/null +++ b/LArCalorimeter/LArG4/LArG4HEC/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +LArCalorimeter/LArG4/LArG4HEC diff --git a/LArCalorimeter/LArG4/LArG4HEC/src/HECGeometry.cc b/LArCalorimeter/LArG4/LArG4HEC/src/HECGeometry.cc index 8c05dccac2bebac10397cfb335a2002e727b3ad6..e0e38363bb59543287f943a8230a64c2bfe5baad 100644 --- a/LArCalorimeter/LArG4/LArG4HEC/src/HECGeometry.cc +++ b/LArCalorimeter/LArG4/LArG4HEC/src/HECGeometry.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // LArG4::HEC::HECGeometry @@ -215,7 +215,7 @@ namespace LArG4 { G4StepPoint* pre_step_point = a_step->GetPreStepPoint(); Point3D<double> globalPosition = pre_step_point->GetPosition(); - G4TouchableHistory* theTouchable = (G4TouchableHistory*) (pre_step_point->GetTouchable()); + const G4TouchableHistory* theTouchable = static_cast<const G4TouchableHistory*>(pre_step_point->GetTouchable()); G4String volumeName = theTouchable->GetVolume()->GetName() ; // Do the following only once - to determine the G4 history-depth of the wheel coordinates diff --git a/LArCalorimeter/LArG4/LArG4HEC/src/LocalCalibrationCalculator.cc b/LArCalorimeter/LArG4/LArG4HEC/src/LocalCalibrationCalculator.cc index 960b2dddb6fe62d8d1bdd8ce6fd22ee07efe52e6..914abae827232da886f6eda77d6c4206fdb6e1c2 100644 --- a/LArCalorimeter/LArG4/LArG4HEC/src/LocalCalibrationCalculator.cc +++ b/LArCalorimeter/LArG4/LArG4HEC/src/LocalCalibrationCalculator.cc @@ -92,7 +92,7 @@ namespace LArG4 { { // Calculate the identifier. G4StepPoint* pre_step_point = step->GetPreStepPoint(); - G4TouchableHistory* theTouchable = (G4TouchableHistory*) (pre_step_point->GetTouchable()); + const G4TouchableHistory* theTouchable = static_cast<const G4TouchableHistory*>(pre_step_point->GetTouchable()); // Volume name G4String hitVolume = theTouchable->GetVolume(0)->GetName(); #ifdef DEBUG_HITS diff --git a/LArCalorimeter/LArG4/LArG4HEC/src/LocalGeometry.cc b/LArCalorimeter/LArG4/LArG4HEC/src/LocalGeometry.cc index 2d00aa44423e5421f0005c57277a0dd3a3700a50..69c7d732701044ab49a970fac91dd3a6941878f2 100644 --- a/LArCalorimeter/LArG4/LArG4HEC/src/LocalGeometry.cc +++ b/LArCalorimeter/LArG4/LArG4HEC/src/LocalGeometry.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // LArG4::HEC::LocalGeometry @@ -192,7 +192,7 @@ namespace LArG4 { // We can extract our position from the copy number of depth and module - G4TouchableHistory* theTouchable = (G4TouchableHistory*) (pre_step_point->GetTouchable()); + const G4TouchableHistory* theTouchable = static_cast<const G4TouchableHistory*>(pre_step_point->GetTouchable()); // Get local coordinates of the step, independently of how it was positioned in World G4AffineTransform transformation;