Skip to content

Commit

Permalink
array index in C start at 0...
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Aug 12, 2024
1 parent 7664d83 commit 008a313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DCHdigi/src/DCHdigi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ DCHdigi::operator()(const colltype_in& input_sim_hits,
output_digi_hits.push_back(oDCHdigihit);

extension::MutableMCRecoDriftChamberDigiV2Association oDCHsimdigi_association;
oDCHsimdigi_association.setDigi( output_digi_hits.at( output_digi_hits.size() ) );
oDCHsimdigi_association.setDigi( output_digi_hits.at( output_digi_hits.size()-1 ) );
oDCHsimdigi_association.setSim( input_sim_hit );

}// end loop over hit collection
Expand Down

0 comments on commit 008a313

Please sign in to comment.