@@ -2232,8 +2232,7 @@ struct LFNucleiBATask {
22322232
22332233 tracks.copyIndexBindings (tracksWithITS);
22342234
2235- // NOLINTNEXTLINE(performance-unnecessary-copy-initialization)
2236- for (auto & track : tracksWithITS) {
2235+ for (auto const & track : tracksWithITS) {
22372236 if constexpr (!IsFilteredData) {
22382237 if (!track.isGlobalTrackWoDCA () && filterOptions.enableIsGlobalTrack ) {
22392238 continue ;
@@ -2278,26 +2277,20 @@ struct LFNucleiBATask {
22782277 float shiftPtNeg = 0 .f ;
22792278
22802279 if (enablePtShiftHe && !fShiftPtHe ) {
2281- // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
22822280 fShiftPtHe = new TF1 (" fShiftPtHe" , " [0] * exp([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2283- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
2284- auto parHe = (std::vector<float >)parShiftPtHe;
2281+ auto parHe = (std::vector<float >)parShiftPtHe; // NOLINT
22852282 fShiftPtHe ->SetParameters (parHe[0 ], parHe[1 ], parHe[2 ], parHe[3 ], parHe[4 ]);
22862283 }
22872284
22882285 if (enablePtShiftHe && !fShiftPtantiHe ) {
2289- // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
22902286 fShiftPtantiHe = new TF1 (" fShiftPtantiHe" , " [0] * exp([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2291- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
2292- auto parAntiHe = (std::vector<float >)parShiftPtAntiHe;
2287+ auto parAntiHe = (std::vector<float >)parShiftPtAntiHe; // NOLINT
22932288 fShiftPtantiHe ->SetParameters (parAntiHe[0 ], parAntiHe[1 ], parAntiHe[2 ], parAntiHe[3 ], parAntiHe[4 ]);
22942289 }
22952290
22962291 if (enablePtShiftAntiD && !fShiftAntiD ) {
2297- // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
22982292 fShiftAntiD = new TF1 (" fShiftAntiD" , " [0] * exp([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2299- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
2300- auto parAntiD = (std::vector<float >)parShiftPtAntiD;
2293+ auto parAntiD = (std::vector<float >)parShiftPtAntiD; // NOLINT
23012294 fShiftAntiD ->SetParameters (parAntiD[0 ], parAntiD[1 ], parAntiD[2 ], parAntiD[3 ], parAntiD[4 ]);
23022295 }
23032296
@@ -2314,10 +2307,8 @@ struct LFNucleiBATask {
23142307 }
23152308
23162309 if (enablePtShiftD && !fShiftD ) {
2317- // NOLINTNEXTLINE(cppcoreguidelines-owning-memory, modernize-make-unique)
23182310 fShiftD = new TF1 (" fShiftD" , " [0] * exp([1] + [2] * x) + [3] + [4] * x" , 0 .f , 8 .f );
2319- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
2320- auto parD = (std::vector<float >)parShiftPtD;
2311+ auto parD = (std::vector<float >)parShiftPtD; // NOLINT
23212312 fShiftD ->SetParameters (parD[0 ], parD[1 ], parD[2 ], parD[3 ], parD[4 ]);
23222313 }
23232314
@@ -2664,17 +2655,15 @@ struct LFNucleiBATask {
26642655 if constexpr (IsFilteredData) {
26652656 isPhysPrim = track.isPhysicalPrimary ();
26662657 isProdByGen = track.producedByGenerator ();
2667- // NOLINTNEXTLINE(readability-magic-numbers)
2668- isWeakDecay = track.getProcess () == 4 ;
2658+ isWeakDecay = track.getProcess () == 4 ; // NOLINT
26692659 pdgCode = track.pdgCode ();
26702660 } else {
26712661 if (!track.has_mcParticle ()) {
26722662 continue ;
26732663 }
26742664 isPhysPrim = track.mcParticle ().isPhysicalPrimary ();
26752665 isProdByGen = track.mcParticle ().producedByGenerator ();
2676- // NOLINTNEXTLINE(readability-magic-numbers)
2677- isWeakDecay = track.mcParticle ().getProcess () == 4 ;
2666+ isWeakDecay = track.mcParticle ().getProcess () == 4 ; // NOLINT
26782667 pdgCode = track.mcParticle ().pdgCode ();
26792668 }
26802669
@@ -3178,8 +3167,7 @@ struct LFNucleiBATask {
31783167 if constexpr (IsFilteredData) {
31793168 isPhysPrim = track.isPhysicalPrimary ();
31803169 isProdByGen = track.producedByGenerator ();
3181- // NOLINTNEXTLINE(readability-magic-numbers)
3182- isWeakDecay = track.getProcess () == 4 ;
3170+ isWeakDecay = track.getProcess () == 4 ; // NOLINT
31833171 pdgCode = track.pdgCode ();
31843172 genPt = std::sqrt (std::pow (track.px (), 2 ) + std::pow (track.py (), 2 ));
31853173
@@ -3189,8 +3177,7 @@ struct LFNucleiBATask {
31893177 }
31903178 isPhysPrim = track.mcParticle ().isPhysicalPrimary ();
31913179 isProdByGen = track.mcParticle ().producedByGenerator ();
3192- // NOLINTNEXTLINE(readability-magic-numbers)
3193- isWeakDecay = track.mcParticle ().getProcess () == 4 ;
3180+ isWeakDecay = track.mcParticle ().getProcess () == 4 ; // NOLINT
31943181 pdgCode = track.mcParticle ().pdgCode ();
31953182
31963183 // Access to MC particles mother
@@ -3200,7 +3187,6 @@ struct LFNucleiBATask {
32003187 firstMotherId = -1 ;
32013188 firstMotherPdg = -1 ;
32023189
3203- // int pdgList[8];
32043190 nSaved = 0 ;
32053191
32063192 for (int iMom = 0 ; iMom < nMothers; ++iMom) {
@@ -6073,8 +6059,7 @@ struct LFNucleiBATask {
60736059 spectraGen.fill (HIST (" histGenVetxZ" ), mcCollision.posZ ());
60746060 if (mcCollision.centFT0M () < cfgMultCutLow || mcCollision.centFT0M () > cfgMultCutHigh)
60756061 return ;
6076- // NOLINTNEXTLINE(performance-unnecessary-copy-initialization)
6077- for (auto & mcParticleGen : mcParticles) {
6062+ for (auto & mcParticleGen : mcParticles) { // NOLINT
60786063 if (mcParticleGen.y () > kinemOptions.cfgRapidityCutHigh || mcParticleGen.y () < kinemOptions.cfgRapidityCutLow ) {
60796064 continue ;
60806065 }
0 commit comments