diff --git a/Generators/FlowAfterburner/src/AddFlowByShifting.cxx b/Generators/FlowAfterburner/src/AddFlowByShifting.cxx index 2cad2e9bd5ae43c5b40c15039e6226c08c2ee754..c24e4906c46f1f791ce26ef74d55f71c4543b1c8 100644 --- a/Generators/FlowAfterburner/src/AddFlowByShifting.cxx +++ b/Generators/FlowAfterburner/src/AddFlowByShifting.cxx @@ -234,7 +234,6 @@ StatusCode AddFlowByShifting::execute() { m_psi_n[1]=hijing_pars->get_bphi() ;//the psi2 plane is aligned with the impact parameter m_psi_n[1]=std::atan2(std::sin(2*m_psi_n[1]),std::cos(2*m_psi_n[1]))/2.0;//ensure that Psi2 is within [-PI/2,PI/2] hijing_pars_nc->set_psi(2,m_psi_n[1]); - (*hijing_pars).set_psi(2,m_psi_n[1]); ATH_MSG_DEBUG(" Psi2 for event : "<<(*hijing_pars).get_psi(2)); diff --git a/Generators/GeneratorObjects/GeneratorObjects/ATLAS_CHECK_THREAD_SAFETY b/Generators/GeneratorObjects/GeneratorObjects/ATLAS_CHECK_THREAD_SAFETY new file mode 100644 index 0000000000000000000000000000000000000000..21a0af443023c12a55108d7da363d6375395c4a3 --- /dev/null +++ b/Generators/GeneratorObjects/GeneratorObjects/ATLAS_CHECK_THREAD_SAFETY @@ -0,0 +1 @@ +Generators/GeneratorObjects diff --git a/Generators/GeneratorObjects/GeneratorObjects/HijingEventParams.h b/Generators/GeneratorObjects/GeneratorObjects/HijingEventParams.h index d9ee6248ba97ed646cd07dcec2167aa58f1263ac..445fc5f8cf8dc60ac08134b6056929a84839385c 100644 --- a/Generators/GeneratorObjects/GeneratorObjects/HijingEventParams.h +++ b/Generators/GeneratorObjects/GeneratorObjects/HijingEventParams.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #ifndef GENERATOROBJECTSHIJINGEVENTPARAMS_H @@ -40,7 +40,7 @@ class HijingEventParams float get_psi(int n) const; - void set_psi(int ihar,float psi) const; + void set_psi(int ihar,float psi); private: @@ -55,7 +55,7 @@ private: float m_b = 0; float m_bphi = 0; - mutable float m_psi_1 = 0,m_psi_2 = 0,m_psi_3 = 0,m_psi_4 = 0,m_psi_5 = 0,m_psi_6 = 0; + float m_psi_1 = 0,m_psi_2 = 0,m_psi_3 = 0,m_psi_4 = 0,m_psi_5 = 0,m_psi_6 = 0; }; inline @@ -104,7 +104,7 @@ inline float HijingEventParams::get_psi(int ihar) const return 0; } -inline void HijingEventParams::set_psi(int ihar, float psi) const +inline void HijingEventParams::set_psi(int ihar, float psi) { if(ihar==1) m_psi_1=psi; if(ihar==2) m_psi_2=psi; diff --git a/Generators/GeneratorObjects/test/HepMcParticleLink_test.cxx b/Generators/GeneratorObjects/test/HepMcParticleLink_test.cxx index 3937568c8eb601766bab942e234f0a5ae2ecd443..65d4d97ca3814afc68c50550a8c963f6439b40e8 100644 --- a/Generators/GeneratorObjects/test/HepMcParticleLink_test.cxx +++ b/Generators/GeneratorObjects/test/HepMcParticleLink_test.cxx @@ -9,6 +9,9 @@ #undef NDEBUG +#include "CxxUtils/checker_macros.h" +ATLAS_NO_CHECK_FILE_THREAD_SAFETY; + #include <iostream> #include <limits> #include <list>