Skip to content
Snippets Groups Projects

JetMonitoring: Fix clang warning.

Merged Scott Snyder requested to merge ssnyder/athena:clang.JetMonitoring-20200928 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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);
Loading