3838#include < fastjet/PseudoJet.hh>
3939
4040#include < algorithm>
41+ #include < array>
4142#include < cmath>
4243#include < cstddef>
4344#include < cstdint>
@@ -222,7 +223,7 @@ std::vector<SplitMatchPair> buildUniqueSplittingMatches(const std::vector<Splitt
222223}
223224
224225template <typename ConstituentRangeT>
225- std::vector<fastjet::PseudoJet> buildFastJetInputs (ConstituentRangeT& & constituents, float trackPtMin)
226+ std::vector<fastjet::PseudoJet> buildFastJetInputs (ConstituentRangeT const & constituents, float trackPtMin)
226227{
227228 std::vector<fastjet::PseudoJet> fjInputs;
228229 fjInputs.reserve (64 );
@@ -636,7 +637,7 @@ struct JetLundPlaneUnfolding {
636637 for (auto const & mcCollision : mcCollisions) {
637638 const int64_t mcCollisionId = mcCollision.globalIndex ();
638639 mcEventInfoById.emplace (mcCollisionId,
639- McEventInfo{mcCollisionId, mcCollision.weight (), mcCollision.ptHard ()});
640+ McEventInfo{. mcCollisionId = mcCollisionId, . weight = mcCollision.weight (), . ptHard = mcCollision.ptHard ()});
640641 }
641642
642643 std::unordered_map<int64_t , McEventInfo> mcEventInfoByDetCollisionId;
@@ -790,7 +791,7 @@ struct JetLundPlaneUnfolding {
790791
791792 for (auto const & candPartJet : detJet.template matchedJetGeo_as <soa::Filtered<PartJetsMatched>>()) {
792793 const uint64_t candTruthKey = candPartJet.globalIndex ();
793- if (acceptedTruthJetKeys.find (candTruthKey) == acceptedTruthJetKeys. end ( )) {
794+ if (! acceptedTruthJetKeys.contains (candTruthKey)) {
794795 continue ;
795796 }
796797
@@ -885,9 +886,9 @@ struct JetLundPlaneUnfolding {
885886 for (const auto & m : splitMatches) {
886887 const auto & detS = detSpl[m.recoIdx ];
887888 const auto & partS = bestPartSpl[m.truthIdx ];
888- double x[ 6 ] = {detS.lnRoverDR , detS.lnkt , detJet.pt (),
889- partS.lnRoverDR , partS.lnkt , bestPartPt};
890- h6->Fill (x);
889+ const std::array< double , 6 > x {detS.lnRoverDR , detS.lnkt , detJet.pt (),
890+ partS.lnRoverDR , partS.lnkt , bestPartPt};
891+ h6->Fill (x. data () );
891892 registry.fill (HIST (" hLnRoverDRResidual" ), detS.lnRoverDR - partS.lnRoverDR );
892893 registry.fill (HIST (" hLnKtResidual" ), detS.lnkt - partS.lnkt );
893894 }
@@ -904,7 +905,7 @@ struct JetLundPlaneUnfolding {
904905 continue ;
905906 }
906907
907- if (mcEventInfoById.find (partJet.mcCollisionId ()) == mcEventInfoById. end ( )) {
908+ if (! mcEventInfoById.contains (partJet.mcCollisionId ())) {
908909 continue ;
909910 }
910911
0 commit comments