@@ -49,6 +49,8 @@ using TrackSim = aod::McParticles::iterator;
4949
5050#include < cstring>
5151#include < iostream>
52+ #include < string>
53+ #include < vector>
5254// ...
5355
5456using namespace std ;
@@ -277,7 +279,7 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
277279 // Here comes the common code for all three cases, where from "listWithRuns" you fetch the desired histogram with efficiency corrections:
278280 listWithRuns->ls ();
279281
280- hist = ( TH1F*) listWithRuns->FindObject (" histWithEfficiencyCorrections" );
282+ hist = reinterpret_cast < TH1F*>( listWithRuns->FindObject (" histWithEfficiencyCorrections" ) );
281283 if (!hist) {
282284 LOGF (fatal, " no histweight" );
283285 }
@@ -298,8 +300,8 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
298300 bool EventCuts (T1 const & collision)
299301 {
300302 vector<float > vertexZ = cfVertexZ.value ;
301- float vertexZmin = ( float ) vertexZ[0 ];
302- float vertexZmax = ( float ) vertexZ[1 ];
303+ float vertexZmin = static_cast < float >( vertexZ[0 ]) ;
304+ float vertexZmax = static_cast < float >( vertexZ[1 ]) ;
303305 float posZ = collision.posZ ();
304306 if (posZ < vertexZmin || posZ > vertexZmax)
305307 return false ;
@@ -310,8 +312,8 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
310312 bool ParticleCuts (T const & track)
311313 {
312314 vector<float > Pt = cfPt.value ;
313- float ptcutmin = ( float ) Pt[0 ];
314- float ptcutmax = ( float ) Pt[1 ];
315+ float ptcutmin = static_cast < float >( Pt[0 ]) ;
316+ float ptcutmax = static_cast < float >( Pt[1 ]) ;
315317 float pt = track.pt ();
316318 if (pt < ptcutmin || pt > ptcutmax)
317319 return false ;
0 commit comments