Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Riley authored and Dan Riley committed Jan 6, 2024
1 parent 0b71777 commit c1580c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/TrackFindingTracklet/src/TrackletLUT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ void TrackletLUT::initProjectionDiskRadius(int nrbits) {
void TrackletLUT::initBendMatch(unsigned int layerdisk) {
unsigned int nrinv = NRINVBITS;
double rinvhalf = 0.5 * ((1 << nrinv) - 1);
assert(layerdisk < 16); // should be a named constant for this
assert(layerdisk < 16); // should be a named constant for this

bool barrel = layerdisk < N_LAYER;

Expand Down
7 changes: 4 additions & 3 deletions L1Trigger/TrackFindingTracklet/test/AnalyzerDR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,10 @@ namespace trklet {
int channel) const {
const int offset = channel * setup_->numLayers();
const StreamTrack& streamTrack = streamsTrack[channel];
const int numTracks = accumulate(streamTrack.begin(), streamTrack.end(), 0, [](const int& sum, const FrameTrack& frame) {
return sum + (frame.first.isNonnull() ? 1 : 0);
});
const int numTracks =
accumulate(streamTrack.begin(), streamTrack.end(), 0, [](const int& sum, const FrameTrack& frame) {
return sum + (frame.first.isNonnull() ? 1 : 0);
});
tracks.reserve(numTracks);
for (int frame = 0; frame < (int)streamTrack.size(); frame++) {
const FrameTrack& frameTrack = streamTrack[frame];
Expand Down
7 changes: 4 additions & 3 deletions L1Trigger/TrackFindingTracklet/test/AnalyzerDRin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ namespace trklet {
int channel) const {
const int offset = channel * setup_->numLayers();
const StreamTrack& streamTrack = streamsTrack[channel];
const int numTracks = accumulate(streamTrack.begin(), streamTrack.end(), 0, [](const int& sum, const FrameTrack& frame) {
return sum + (frame.first.isNonnull() ? 1 : 0);
});
const int numTracks =
accumulate(streamTrack.begin(), streamTrack.end(), 0, [](const int& sum, const FrameTrack& frame) {
return sum + (frame.first.isNonnull() ? 1 : 0);
});
tracks.reserve(numTracks);
for (int frame = 0; frame < (int)streamTrack.size(); frame++) {
const FrameTrack& frameTrack = streamTrack[frame];
Expand Down

0 comments on commit c1580c8

Please sign in to comment.