Skip to content
Snippets Groups Projects

Fix of no hcal energy for neutral protos

Merged Maarten Van Veghel requested to merge mveghel-caloneutralhcalfix into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -33,7 +33,7 @@ namespace {
inline std::vector<LHCb::Event::Calo::Digit> addCell( const LHCb::Detector::Calo::CellID& id,
const LHCb::Event::Calo::Digits& input,
std::vector<LHCb::Event::Calo::Digit>&& output ) {
if ( output.end() !=
if ( output.end() ==
std::find_if( output.begin(), output.end(), [id]( const auto& d ) { return d.cellID() == id; } ) ) {
if ( auto digit = input( id ); digit ) output.push_back( *digit );
}
Loading