Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed behavior in QjetsAdder #10590

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions RecoJets/JetProducers/plugins/QjetsAdder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ void QjetsAdder::produce(edm::Event & iEvent, const edm::EventSetup & iSetup) {
fastjet::ClusterSequence thisClustering_basic(allconstits, jetDef);
std::vector<fastjet::PseudoJet> out_jets_basic = sorted_by_pt(thisClustering_basic.inclusive_jets(cutoff_));
//std::cout << newCand.pt() << " " << out_jets_basic.size() <<std::endl;
if(out_jets_basic.size()==0){ // jet reclustering failed, most likely due to the higher cutoff. Use a recognizeable default value for this jet
if(out_jets_basic.size()!=1){ // jet reclustering did not return exactly 1 jet, most likely due to the higher cutoff or large cone size. Use a recognizeable default value for this jet
QjetsVolatility.push_back(-1);
continue;
}
assert( out_jets_basic.size()==1 ); // jet reclustering of one jet should yield exactly one jet at this stage

// setup objects for qjets computation
fastjet::JetDefinition qjet_def(&qjetsAlgo_);
Expand Down