Skip to content
Snippets Groups Projects
Commit ba4276f4 authored by scott snyder's avatar scott snyder
Browse files

JetMonitoring: Fix clang warning.

Unused lambda capture.
parent 20e9b098
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!36786JetMonitoring: Fix clang warning.
...@@ -52,7 +52,7 @@ StatusCode JetMonitoringAlg::fillHistograms( const EventContext& ctx ) const { ...@@ -52,7 +52,7 @@ StatusCode JetMonitoringAlg::fillHistograms( const EventContext& ctx ) const {
const xAOD::Jet *trigjet = dynamic_cast<const xAOD::Jet*>(*j); const xAOD::Jet *trigjet = dynamic_cast<const xAOD::Jet*>(*j);
tmpList.push_back( trigjet ); tmpList.push_back( trigjet );
} }
auto sort = [this] (const xAOD::Jet * j1, const xAOD::Jet * j2) {return j1->p4().Et() > j2->p4().Et(); } ; auto sort = [] (const xAOD::Jet * j1, const xAOD::Jet * j2) {return j1->p4().Et() > j2->p4().Et(); } ;
tmpList.sort( sort ); tmpList.sort( sort );
ConstDataVector< xAOD::JetContainer > tmpCont(SG::VIEW_ELEMENTS); ConstDataVector< xAOD::JetContainer > tmpCont(SG::VIEW_ELEMENTS);
for(const xAOD::Jet* jet : tmpList ) tmpCont.push_back(jet); for(const xAOD::Jet* jet : tmpList ) tmpCont.push_back(jet);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment