@@ -2232,6 +2232,7 @@ struct LFNucleiBATask {
22322232
22332233 tracks.copyIndexBindings (tracksWithITS);
22342234
2235+ // NOLINTNEXTLINE(performance-unnecessary-copy-initialization)
22352236 for (auto & track : tracksWithITS) {
22362237 if constexpr (!IsFilteredData) {
22372238 if (!track.isGlobalTrackWoDCA () && filterOptions.enableIsGlobalTrack ) {
@@ -2278,23 +2279,23 @@ struct LFNucleiBATask {
22782279
22792280 if (enablePtShiftHe && !fShiftPtHe ) {
22802281 // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
2281- fShiftPtHe = new TF1 (" fShiftPtHe" , " [0] * TMath::Exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2282+ fShiftPtHe = new TF1 (" fShiftPtHe" , " [0] * exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
22822283 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
22832284 auto parHe = (std::vector<float >)parShiftPtHe;
22842285 fShiftPtHe ->SetParameters (parHe[0 ], parHe[1 ], parHe[2 ], parHe[3 ], parHe[4 ]);
22852286 }
22862287
22872288 if (enablePtShiftHe && !fShiftPtantiHe ) {
22882289 // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
2289- fShiftPtantiHe = new TF1 (" fShiftPtantiHe" , " [0] * TMath::Exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2290+ fShiftPtantiHe = new TF1 (" fShiftPtantiHe" , " [0] * exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
22902291 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
22912292 auto parAntiHe = (std::vector<float >)parShiftPtAntiHe;
22922293 fShiftPtantiHe ->SetParameters (parAntiHe[0 ], parAntiHe[1 ], parAntiHe[2 ], parAntiHe[3 ], parAntiHe[4 ]);
22932294 }
22942295
22952296 if (enablePtShiftAntiD && !fShiftAntiD ) {
22962297 // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
2297- fShiftAntiD = new TF1 (" fShiftAntiD" , " [0] * TMath::Exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2298+ fShiftAntiD = new TF1 (" fShiftAntiD" , " [0] * exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
22982299 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
22992300 auto parAntiD = (std::vector<float >)parShiftPtAntiD;
23002301 fShiftAntiD ->SetParameters (parAntiD[0 ], parAntiD[1 ], parAntiD[2 ], parAntiD[3 ], parAntiD[4 ]);
@@ -2314,7 +2315,7 @@ struct LFNucleiBATask {
23142315
23152316 if (enablePtShiftD && !fShiftD ) {
23162317 // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
2317- fShiftD = new TF1 (" fShiftD" , " [0] * TMath::Exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2318+ fShiftD = new TF1 (" fShiftD" , " [0] * exp ([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
23182319 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
23192320 auto parD = (std::vector<float >)parShiftPtD;
23202321 fShiftD ->SetParameters (parD[0 ], parD[1 ], parD[2 ], parD[3 ], parD[4 ]);
@@ -2663,6 +2664,7 @@ struct LFNucleiBATask {
26632664 if constexpr (IsFilteredData) {
26642665 isPhysPrim = track.isPhysicalPrimary ();
26652666 isProdByGen = track.producedByGenerator ();
2667+ // NOLINTNEXTLINE(readability-magic-numbers)
26662668 isWeakDecay = track.getProcess () == 4 ;
26672669 pdgCode = track.pdgCode ();
26682670 } else {
@@ -2671,6 +2673,7 @@ struct LFNucleiBATask {
26712673 }
26722674 isPhysPrim = track.mcParticle ().isPhysicalPrimary ();
26732675 isProdByGen = track.mcParticle ().producedByGenerator ();
2676+ // NOLINTNEXTLINE(readability-magic-numbers)
26742677 isWeakDecay = track.mcParticle ().getProcess () == 4 ;
26752678 pdgCode = track.mcParticle ().pdgCode ();
26762679 }
@@ -3175,6 +3178,7 @@ struct LFNucleiBATask {
31753178 if constexpr (IsFilteredData) {
31763179 isPhysPrim = track.isPhysicalPrimary ();
31773180 isProdByGen = track.producedByGenerator ();
3181+ // NOLINTNEXTLINE(readability-magic-numbers)
31783182 isWeakDecay = track.getProcess () == 4 ;
31793183 pdgCode = track.pdgCode ();
31803184 genPt = std::sqrt (std::pow (track.px (), 2 ) + std::pow (track.py (), 2 ));
@@ -3185,6 +3189,7 @@ struct LFNucleiBATask {
31853189 }
31863190 isPhysPrim = track.mcParticle ().isPhysicalPrimary ();
31873191 isProdByGen = track.mcParticle ().producedByGenerator ();
3192+ // NOLINTNEXTLINE(readability-magic-numbers)
31883193 isWeakDecay = track.mcParticle ().getProcess () == 4 ;
31893194 pdgCode = track.mcParticle ().pdgCode ();
31903195
@@ -6068,6 +6073,7 @@ struct LFNucleiBATask {
60686073 spectraGen.fill (HIST (" histGenVetxZ" ), mcCollision.posZ ());
60696074 if (mcCollision.centFT0M () < cfgMultCutLow || mcCollision.centFT0M () > cfgMultCutHigh)
60706075 return ;
6076+ // NOLINTNEXTLINE(performance-unnecessary-copy-initialization)
60716077 for (auto & mcParticleGen : mcParticles) {
60726078 if (mcParticleGen.y () > kinemOptions.cfgRapidityCutHigh || mcParticleGen.y () < kinemOptions.cfgRapidityCutLow ) {
60736079 continue ;
0 commit comments