Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DataFormats/simulation/src/DigitizationContext.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void DigitizationContext::applyMaxCollisionFilter(std::vector<std::tuple<int, in

LOG(info) << "timeframe indices " << previndex << " : " << firstindex << " : " << lastindex;

int collCount = 0; // counting collisions within timeframe
int collCount = 0; // counting collisions within timeframe
const size_t nrecords_before = newrecords.size(); // to detect a timeframe that stays empty
// copy to new structure
for (int index = previndex >= 0 ? previndex : firstindex; index <= lastindex; ++index) {
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/simulation/test/testDigitizationContext.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE(EmptyTimeframeExtracts)
{
long const orbitsPerTF = 6;
long const nTF = 3;
auto ctx = makeContext({0, 2, 13}); // timeframe 1 (orbits 6..11) is empty
auto ctx = makeContext({0, 2, 13}); // timeframe 1 (orbits 6..11) is empty
auto indices = ctx.calcTimeframeIndices(0, orbitsPerTF, 0., nTF);
BOOST_CHECK_EQUAL(indices.size(), (size_t)nTF);

Expand Down
Loading