@@ -1626,9 +1626,9 @@ struct PseudorapidityDensityMFT {
16261626
16271627 const auto passEventSelection = [&](auto const & collision) {
16281628 struct EvSelStep {
1629- bool enabled;
1629+ bool enabled{ false } ;
16301630 decltype (aod::evsel::kIsTriggerTVX ) bit;
1631- DataCutBin bin;
1631+ DataCutBin bin{DataCutBin::All} ;
16321632 };
16331633
16341634 const std::array<EvSelStep, 11 > steps = {{
@@ -2207,9 +2207,9 @@ struct PseudorapidityDensityMFT {
22072207
22082208 const auto countAndPassEvSelGenReco = [&](auto const & collision) {
22092209 struct EvSelStep {
2210- bool enabled;
2210+ bool enabled{ false } ;
22112211 decltype (aod::evsel::kIsTriggerTVX ) bit;
2212- GenRecoCutBin bin;
2212+ GenRecoCutBin bin{GenRecoCutBin::AllRecoCollisions} ;
22132213 };
22142214
22152215 const std::array<EvSelStep, 10 > steps = {{
@@ -2514,9 +2514,9 @@ struct PseudorapidityDensityMFT {
25142514
25152515 const auto countAndPassEvSelGenReco = [&](auto const & collision) {
25162516 struct EvSelStep {
2517- bool enabled;
2517+ bool enabled{ false } ;
25182518 decltype (aod::evsel::kIsTriggerTVX ) bit;
2519- GenRecoCutBin bin;
2519+ GenRecoCutBin bin{GenRecoCutBin::AllRecoCollisions} ;
25202520 };
25212521
25222522 const std::array<EvSelStep, 10 > steps = {{
@@ -2674,7 +2674,6 @@ struct PseudorapidityDensityMFT {
26742674 std::unordered_set<int > uniqueBestRecoCols;
26752675
26762676 if (tracks.size () > 0 ) {
2677- bool countedPrimary = false ;
26782677 for (const auto & track : tracks) {
26792678 const auto originalTrack = track.template mfttrack_as <MFTTracksLabeledOrg>();
26802679 float ndf = getTrackNdf (originalTrack);
@@ -3177,14 +3176,13 @@ struct PseudorapidityDensityMFT {
31773176
31783177 registry.fill (HIST (" Purity/SelectedAfterDCAxy/PrimaryAll" ), static_cast <int >(SingleCountBin::Count));
31793178 registry.fill (HIST (" Purity/SelectedAfterDCAxy/PrimaryAllEta" ), mcPart.eta ());
3180- countedPrimary = true ;
31813179
31823180 registry.fill (HIST (" Purity/PurityOverall" ),
31833181 static_cast <int >(SingleCountBin::Count),
3184- countedPrimary ? static_cast <int >(BoolBin::Yes)
3182+ isPrimaryCharged ? static_cast <int >(BoolBin::Yes)
31853183 : static_cast <int >(BoolBin::No));
31863184 registry.fill (HIST (" Purity/PurityVsEta" ), originalTrack.eta (),
3187- countedPrimary ? static_cast <int >(BoolBin::Yes)
3185+ isPrimaryCharged ? static_cast <int >(BoolBin::Yes)
31883186 : static_cast <int >(BoolBin::No));
31893187 } // hasmclable
31903188 } // track loop
0 commit comments