Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
watson-ij committed Sep 9, 2021
1 parent 990feb5 commit 3a20969
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 6 additions & 7 deletions DataFormats/TrackReco/interface/HitPattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,10 @@ namespace reco {
inline uint16_t HitPattern::getRPCregion(uint16_t pattern) { return getSubSubStructure(pattern) & 1; }

////////////////////////////// GEM
inline uint16_t HitPattern::getGEMStation(uint16_t pattern)

{
inline uint16_t HitPattern::getGEMStation(uint16_t pattern) {
uint16_t sss = getSubSubStructure(pattern);
if (sss & 0b1000) return 0;
if (sss & 0b1000)
return 0;
return (sss >> 2) + 1;
}

Expand All @@ -779,10 +778,10 @@ namespace reco {

inline uint16_t HitPattern::getETLRing(uint16_t pattern) { return getSubSubStructure(pattern); }

inline uint16_t HitPattern::getGEMLayer(uint16_t pattern)
{
inline uint16_t HitPattern::getGEMLayer(uint16_t pattern) {
uint16_t sss = getSubSubStructure(pattern);
if (sss & 0b1000) return sss & 0b0111;
if (sss & 0b1000)
return sss & 0b0111;
return sss & 0b11;
}

Expand Down
6 changes: 3 additions & 3 deletions DataFormats/TrackReco/src/HitPattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ namespace {
uint16_t la = gemid.layer();
if (st == 0) {
layer |= 0b1000;
layer |= (la-1);
layer |= (la - 1);
} else {
layer |= (st-1) << 2;
layer |= (la-1);
layer |= (st - 1) << 2;
layer |= (la - 1);
}
}
} break;
Expand Down

0 comments on commit 3a20969

Please sign in to comment.