Skip to content

Commit

Permalink
Apply code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Jul 15, 2019
1 parent 9cdda76 commit 9757d7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions RecoTracker/TkHitPairs/interface/LayerHitMapCache.h
Expand Up @@ -37,10 +37,10 @@ class LayerHitMapCache {
resize(other.theContainer.size());

for (size_t i = 0, size = other.theContainer.size(); i != size; ++i) {
assert(get(i) == nullptr); // We don't want to override any existing value
auto v = other.get(i); // pass by reference to denote that we don't own it
if(v) {
theContainer[i].reset(*(other.get(i)));
assert(get(i) == nullptr); // We don't want to override any existing value
auto v = other.get(i); // pass by reference to denote that we don't own it
if (v) {
theContainer[i].reset(*(other.get(i)));
} else {
theContainer[i].reset();
}
Expand Down
3 changes: 2 additions & 1 deletion RecoTracker/TkHitPairs/src/HitPairGeneratorFromLayerPair.cc
Expand Up @@ -152,7 +152,8 @@ void HitPairGeneratorFromLayerPair::doublets(const TrackingRegion& region,
for (int j = 0; j < 3; j += 2) {
auto b = innerRange[j];
auto e = innerRange[j + 1];
if( e == b) continue;
if (e == b)
continue;
bool ok[e - b];
switch (checkRZ->algo()) {
case (HitRZCompatibility::zAlgo):
Expand Down

0 comments on commit 9757d7f

Please sign in to comment.