@@ -759,24 +759,24 @@ struct FullJetSpectra {
759759 }
760760 filteredTrackPt += pt; // Accumulate valid track pT
761761 hasValidTrack = true ; // At least one track exists (if needed)
762- }
763- // Reject jets without valid tracks (edge case)
764- if (!hasValidTrack) {
765- return false ;
766- }
767- // }
762+ }
763+ // Reject jets without valid tracks (edge case)
764+ if (!hasValidTrack) {
765+ return false ;
766+ }
767+ // }
768768
769- // --- Cluster cuts: ALL clusters must satisfy min <= pT <= max == 0.3 <= pT <= 250
770- // if (leadingClusterPtMin > kLeadingClusterPtMinThreshold || leadingClusterPtMax < kLeadingClusterPtMaxThreshold) {
771- bool hasValidCluster = false ;
772- for (const auto & cluster : jet.template clusters_as <S>()) {
773- const double pt = cluster.energy () / std::cosh (cluster.eta ());
774- if ((minClusterPt > kLeadingClusterPtMinThreshold && pt < minClusterPt) ||
775- (maxClusterPt < kLeadingClusterPtMaxThreshold && pt > maxClusterPt)) {
776- continue ; // SKIP this invalid cluster
777- }
778- filteredClusterPt += pt;
779- hasValidCluster = true ; // At least one cluster exists
769+ // --- Cluster cuts: ALL clusters must satisfy min <= pT <= max == 0.3 <= pT <= 250
770+ // if (leadingClusterPtMin > kLeadingClusterPtMinThreshold || leadingClusterPtMax < kLeadingClusterPtMaxThreshold) {
771+ bool hasValidCluster = false ;
772+ for (const auto & cluster : jet.template clusters_as <S>()) {
773+ const double pt = cluster.energy () / std::cosh (cluster.eta ());
774+ if ((minClusterPt > kLeadingClusterPtMinThreshold && pt < minClusterPt) ||
775+ (maxClusterPt < kLeadingClusterPtMaxThreshold && pt > maxClusterPt)) {
776+ continue ; // SKIP this invalid cluster
777+ }
778+ filteredClusterPt += pt;
779+ hasValidCluster = true ; // At least one cluster exists
780780 }
781781 // Reject jets without valid clusters (edge case)
782782 if (!hasValidCluster) {
0 commit comments