Skip to content

Commit

Permalink
tiny fix of start_of_orbit_bit. (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuh authored Nov 9, 2022
1 parent 5e167c3 commit 226cd5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion L1Trigger/TrackerTFP/src/Demonstrator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace trackerTFP {
ss << header(numChannel + voidChannel);
int nFrame(0);
// create one packet per region
bool first = true;
for (int region = 0; region < numRegions_; region++) {
const int offset = region * numChannel;
// start with emp 6 frame gap
Expand All @@ -57,11 +58,12 @@ namespace trackerTFP {
ss << this->frame(nFrame);
for (int channel = 0; channel < numChannel; channel++) {
const vector<Frame>& bvs = bits[offset + channel];
ss << (frame < (int)bvs.size() ? hex(bvs[frame], frame == 0) : hex(Frame(), frame == 0));
ss << (frame < (int)bvs.size() ? hex(bvs[frame], first) : hex(Frame(), first));
}
for (int channel = 0; channel < voidChannel; channel++)
ss << " 0000 " << string(TTBV::S_ / 4, '0');
ss << endl;
first = false;
}
}
}
Expand Down

0 comments on commit 226cd5b

Please sign in to comment.