Skip to content

Commit 0ed119a

Browse files
authored
Merge pull request #47407 from stahlleiton/FastJetWarning_CMSSW_15_1_X
Change fastjet RangeDefinition to Selector to fix warnings
2 parents cd8624b + 8d8343f commit 0ed119a

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

RecoJets/JetProducers/interface/BackgroundEstimator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __FASTJET_BACKGROUND_EXTRACTOR_HH__
33

44
#include <fastjet/ClusterSequenceAreaBase.hh>
5-
#include <fastjet/RangeDefinition.hh>
5+
#include <fastjet/Selector.hh>
66
#include <iostream>
77

88
namespace fastjet {
@@ -43,7 +43,7 @@ namespace fastjet {
4343
/// default ctor
4444
/// \param csa the ClusterSequenceArea to use
4545
/// \param range the range over which jets will be considered
46-
BackgroundEstimator(const ClusterSequenceAreaBase &csa, const RangeDefinition &range);
46+
BackgroundEstimator(const ClusterSequenceAreaBase &csa, const Selector &range);
4747

4848
/// default dtor
4949
~BackgroundEstimator();
@@ -146,7 +146,7 @@ namespace fastjet {
146146

147147
// the information needed to do the computation
148148
const ClusterSequenceAreaBase &_csa; ///< cluster sequence to get jets and areas from
149-
const RangeDefinition &_range; ///< range to compute the background in
149+
const Selector &_range; ///< range to compute the background in
150150
std::vector<PseudoJet> _included_jets; ///< jets to be used
151151
std::vector<PseudoJet> _excluded_jets; ///< jets to be excluded
152152
bool _all_from_inclusive; ///< when true, we'll assume that the incl jets are the complete set

RecoJets/JetProducers/interface/PileUpSubtractor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class PileUpSubtractor {
2626
public:
2727
typedef std::shared_ptr<fastjet::ClusterSequence> ClusterSequencePtr;
2828
typedef std::shared_ptr<fastjet::GhostedAreaSpec> ActiveAreaSpecPtr;
29-
typedef std::shared_ptr<fastjet::RangeDefinition> RangeDefPtr;
3029
typedef std::shared_ptr<fastjet::JetDefinition> JetDefPtr;
3130

3231
PileUpSubtractor(const edm::ParameterSet& iConfig, edm::ConsumesCollector&& iC);

RecoJets/JetProducers/plugins/VirtualJetProducer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void VirtualJetProducer::writeJets(edm::Event& iEvent, edm::EventSetup const& iS
641641
double eta = puCenters_[ie];
642642
double etamin = eta - puWidth_;
643643
double etamax = eta + puWidth_;
644-
fastjet::RangeDefinition range_rho(etamin, etamax);
644+
fastjet::Selector range_rho(fastjet::SelectorRapRange(etamin, etamax));
645645
fastjet::BackgroundEstimator bkgestim(*clusterSequenceWithArea, range_rho);
646646
bkgestim.set_excluded_jets(fjexcluded_jets);
647647
rhos->push_back(bkgestim.rho());

RecoJets/JetProducers/src/BackgroundEstimator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using namespace std;
2121
// default ctor
2222
// - csa the ClusterSequenceArea to use
2323
// - range the range over which jets will be considered
24-
BackgroundEstimator::BackgroundEstimator(const ClusterSequenceAreaBase &csa, const RangeDefinition &range)
24+
BackgroundEstimator::BackgroundEstimator(const ClusterSequenceAreaBase &csa, const Selector &range)
2525
: _csa(csa), _range(range) {
2626
reset();
2727
}
@@ -77,7 +77,7 @@ void BackgroundEstimator::_compute() {
7777
excluded |= (_excluded_jets[j].cluster_hist_index() == ref_idx);
7878

7979
// check if the jet is in the range
80-
if (_range.is_in_range(current_jet)) {
80+
if (_range.pass(current_jet)) {
8181
if (excluded) {
8282
// keep track of the explicitly excluded jets
8383
_n_jets_excluded++;

0 commit comments

Comments
 (0)