2424#include " Framework/RunningWorkflowInfo.h"
2525#include " Framework/StepTHn.h"
2626#include " Framework/O2DatabasePDGPlugin.h"
27- #include " TDatabasePDG.h"
2827#include " ReconstructionDataFormats/PID.h"
2928#include " Common/DataModel/PIDResponse.h"
3029
@@ -239,13 +238,13 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
239238 // ConfNsigmaCombined -> TPC and TOF Sigma (combined) for momentum > 0.5
240239
241240 if (mom < twotracksconfigs.ConfTOFPtMin ) {
242- if (TMath::Abs (nsigmaTPCPr) < twotracksconfigs.ConfNsigmaTPC ) {
241+ if (std::abs (nsigmaTPCPr) < twotracksconfigs.ConfNsigmaTPC ) {
243242 return true ;
244243 } else {
245244 return false ;
246245 }
247246 } else {
248- if (TMath::Hypot (nsigmaTOFPr, nsigmaTPCPr) < twotracksconfigs.ConfNsigmaCombined ) {
247+ if (std::hypot (nsigmaTOFPr, nsigmaTPCPr) < twotracksconfigs.ConfNsigmaCombined ) {
249248 return true ;
250249 } else {
251250 return false ;
@@ -257,33 +256,33 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
257256 bool IsKaonNSigma (float mom, float nsigmaTPCK, float nsigmaTOFK)
258257 {
259258 if (mom < 0.3 ) { // 0.0-0.3
260- if (TMath::Abs (nsigmaTPCK) < 3.0 ) {
259+ if (std::abs (nsigmaTPCK) < 3.0 ) {
261260 return true ;
262261 } else {
263262 return false ;
264263 }
265264 } else if (mom < 0.45 ) { // 0.30 - 0.45
266- if (TMath::Abs (nsigmaTPCK) < 2.0 ) {
265+ if (std::abs (nsigmaTPCK) < 2.0 ) {
267266 return true ;
268267 } else {
269268 return false ;
270269 }
271270 } else if (mom < 0.55 ) { // 0.45-0.55
272- if (TMath::Abs (nsigmaTPCK) < 1.0 ) {
271+ if (std::abs (nsigmaTPCK) < 1.0 ) {
273272 return true ;
274273 } else {
275274 return false ;
276275 }
277276 } else if (mom < 1.5 ) { // 0.55-1.5 (now we use TPC and TOF)
278- if ((TMath::Abs (nsigmaTOFK) < 3.0 ) && (TMath::Abs (nsigmaTPCK) < 3.0 )) {
277+ if ((std::abs (nsigmaTOFK) < 3.0 ) && (std::abs (nsigmaTPCK) < 3.0 )) {
279278 {
280279 return true ;
281280 }
282281 } else {
283282 return false ;
284283 }
285284 } else if (mom > 1.5 ) { // 1.5 -
286- if ((TMath::Abs (nsigmaTOFK) < 2.0 ) && (TMath::Abs (nsigmaTPCK) < 3.0 )) {
285+ if ((std::abs (nsigmaTOFK) < 2.0 ) && (std::abs (nsigmaTPCK) < 3.0 )) {
287286 return true ;
288287 } else {
289288 return false ;
@@ -304,13 +303,13 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
304303 // ConfNsigmaCombined -> TPC and TOF Pion Sigma (combined) for momentum > 0.5
305304 if (true ) {
306305 if (mom < twotracksconfigs.ConfTOFPtMin ) {
307- if (TMath::Abs (nsigmaTPCPi) < twotracksconfigs.ConfNsigmaTPC ) {
306+ if (std::abs (nsigmaTPCPi) < twotracksconfigs.ConfNsigmaTPC ) {
308307 return true ;
309308 } else {
310309 return false ;
311310 }
312311 } else {
313- if (TMath::Hypot (nsigmaTOFPi, nsigmaTPCPi) < twotracksconfigs.ConfNsigmaCombined ) {
312+ if (std::hypot (nsigmaTOFPi, nsigmaTPCPi) < twotracksconfigs.ConfNsigmaCombined ) {
314313 return true ;
315314 } else {
316315 return false ;
@@ -547,8 +546,8 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
547546 // / process function for to call doSameEvent with Data
548547 // / \param col subscribe to the collision table (Data)
549548 // / \param parts subscribe to the femtoUniverseParticleTable
550- void processSameEvent (FilteredFDCollision& col,
551- FilteredFemtoFullParticles& parts)
549+ void processSameEvent (FilteredFDCollision const & col,
550+ FilteredFemtoFullParticles const & parts)
552551 {
553552 fillCollision (col, ConfIsCent);
554553
@@ -587,9 +586,9 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
587586 // / \param col subscribe to the collision table (Monte Carlo Reconstructed reconstructed)
588587 // / \param parts subscribe to joined table FemtoUniverseParticles and FemtoUniverseMCLables to access Monte Carlo truth
589588 // / \param FemtoUniverseMCParticles subscribe to the Monte Carlo truth table
590- void processSameEventMC (o2::aod::FdCollision& col,
591- soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>& parts,
592- o2::aod::FdMCParticles&)
589+ void processSameEventMC (o2::aod::FdCollision const & col,
590+ soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels> const & parts,
591+ o2::aod::FdMCParticles const &)
593592 {
594593 fillCollision (col, ConfIsCent);
595594
@@ -694,8 +693,8 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
694693 // / process function for to call doMixedEvent with Data
695694 // / @param cols subscribe to the collisions table (Data)
696695 // / @param parts subscribe to the femtoUniverseParticleTable
697- void processMixedEventCent (FilteredFDCollisions& cols,
698- FilteredFemtoFullParticles& parts)
696+ void processMixedEventCent (FilteredFDCollisions const & cols,
697+ FilteredFemtoFullParticles const & parts)
699698 {
700699 randgen = new TRandom2 (0 );
701700
@@ -734,8 +733,8 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
734733 // / process function for to call doMixedEvent with Data
735734 // / @param cols subscribe to the collisions table (Data)
736735 // / @param parts subscribe to the femtoUniverseParticleTable
737- void processMixedEventNtr (FilteredFDCollisions& cols,
738- FilteredFemtoFullParticles& parts)
736+ void processMixedEventNtr (FilteredFDCollisions const & cols,
737+ FilteredFemtoFullParticles const & parts)
739738 {
740739 randgen = new TRandom2 (0 );
741740
@@ -769,13 +768,13 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
769768 }
770769 delete randgen;
771770 }
772- PROCESS_SWITCH (femtoUniversePairTaskTrackTrackSpherHarMultKtExtended, processMixedEventNtr, " Enable processing mixed events for centrality" , true );
771+ PROCESS_SWITCH (femtoUniversePairTaskTrackTrackSpherHarMultKtExtended, processMixedEventNtr, " Enable processing mixed events for centrality" , false );
773772
774773 // / process function for to fill covariance histograms
775774 // / \param col subscribe to the collision table (Data)
776775 // / \param parts subscribe to the femtoUniverseParticleTable
777- void processCov (soa::Filtered<o2::aod::FdCollisions>::iterator& /* col*/ ,
778- FilteredFemtoFullParticles& /* parts*/ )
776+ void processCov (soa::Filtered<o2::aod::FdCollisions>::iterator const & /* col*/ ,
777+ FilteredFemtoFullParticles const & /* parts*/ )
779778 {
780779 int JMax = (ConfLMax + 1 ) * (ConfLMax + 1 );
781780 if (cfgProcessMM) {
@@ -789,15 +788,15 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
789788 mixedEventMultCont.fillMultkTCov (femto_universe_sh_container::EventType::mixed, JMax);
790789 }
791790 }
792- PROCESS_SWITCH (femtoUniversePairTaskTrackTrackSpherHarMultKtExtended, processCov, " Enable processing same event covariance" , true );
791+ PROCESS_SWITCH (femtoUniversePairTaskTrackTrackSpherHarMultKtExtended, processCov, " Enable processing same event covariance" , false );
793792
794793 // / brief process function for to call doMixedEvent with Monte Carlo
795794 // / @param cols subscribe to the collisions table (Monte Carlo Reconstructed reconstructed)
796795 // / @param parts subscribe to joined table FemtoUniverseParticles and FemtoUniverseMCLables to access Monte Carlo truth
797796 // / @param FemtoUniverseMCParticles subscribe to the Monte Carlo truth table
798- void processMixedEventMCCent (o2::aod::FdCollisions& cols,
799- soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>& parts,
800- o2::aod::FdMCParticles&)
797+ void processMixedEventMCCent (o2::aod::FdCollisions const & cols,
798+ soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels> const & parts,
799+ o2::aod::FdMCParticles const &)
801800 {
802801 randgen = new TRandom2 (0 );
803802
@@ -839,9 +838,9 @@ struct femtoUniversePairTaskTrackTrackSpherHarMultKtExtended {
839838 // / @param cols subscribe to the collisions table (Monte Carlo Reconstructed reconstructed)
840839 // / @param parts subscribe to joined table FemtoUniverseParticles and FemtoUniverseMCLables to access Monte Carlo truth
841840 // / @param FemtoUniverseMCParticles subscribe to the Monte Carlo truth table
842- void processMixedEventMCNtr (o2::aod::FdCollisions& cols,
843- soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels>& parts,
844- o2::aod::FdMCParticles&)
841+ void processMixedEventMCNtr (o2::aod::FdCollisions const & cols,
842+ soa::Join<FilteredFemtoFullParticles, aod::FDMCLabels> const & parts,
843+ o2::aod::FdMCParticles const &)
845844 {
846845 randgen = new TRandom2 (0 );
847846
0 commit comments