Patch BXnumfix
Compare changes
+ 18
− 14
@@ -70,9 +70,10 @@ std::pair<std::vector<unsigned int>, bool> StreamProcessor::CountBX(Slice& input
@@ -70,9 +70,10 @@ std::pair<std::vector<unsigned int>, bool> StreamProcessor::CountBX(Slice& input
// Goes through orbit worth of data and fills the output memory with the muons corresponding to the non-empty bunchcrossings, as marked in bx_vect
@@ -85,10 +86,14 @@ uint32_t StreamProcessor::FillOrbit(Slice& input, Slice& out, std::vector<unsign
@@ -85,10 +86,14 @@ uint32_t StreamProcessor::FillOrbit(Slice& input, Slice& out, std::vector<unsign
@@ -144,7 +149,7 @@ uint32_t StreamProcessor::FillOrbit(Slice& input, Slice& out, std::vector<unsign
@@ -144,7 +149,7 @@ uint32_t StreamProcessor::FillOrbit(Slice& input, Slice& out, std::vector<unsign
@@ -156,23 +161,23 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
@@ -156,23 +161,23 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
std::pair<std::vector<unsigned int>, bool> bx_vect_pair = CountBX(input, rd_ptr); // the bool (.second) is used to determine valididy of the BX count
rd_ptr+= 32 + bx_vect.size()*sizeof(block1) + constants::orbit_trailer_size; // 32 for orbit header, + nBXs + orbit trailer
wr_ptr+= orbitCount*12 + 12*bx_vect.size(); // 12 bytes for each muon/count then 12 bytes for each bx header
@@ -183,16 +188,15 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
@@ -183,16 +188,15 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)