Skip to content

Commit

Permalink
Code checks & format
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoDee committed Aug 6, 2021
1 parent e2b7bbc commit fc256e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DataFormats/PatCandidates/interface/PackedCandidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ namespace pat {
unsigned int nPixelHits) {
covarianceVersion_ = covarianceVersion;
covarianceSchema_ = covSchema;
packedHits_ = (nPixelHits & trackPixelHitsMask) | ( ((nHits-nPixelHits) & trackStripHitsMask) << trackStripHitsShift);
packedHits_ =
(nPixelHits & trackPixelHitsMask) | (((nHits - nPixelHits) & trackStripHitsMask) << trackStripHitsShift);
}

int numberOfPixelHits() const { return (packedHits_ & trackPixelHitsMask) + pixelLayersWithMeasurement(); }
Expand Down Expand Up @@ -799,7 +800,7 @@ namespace pat {
bool hasTrackDetails() const { return (packedHits_ != 0 || packedLayers_ != 0); }
/// Return true if the original candidate had a track associated
/// even if the PackedCandidate has no track
bool fromTrackCandidate() const { return (packedDz_ != 0 || (packedDxy_ != 0 && packedDxy_ != 32768) ); }
bool fromTrackCandidate() const { return (packedDz_ != 0 || (packedDxy_ != 0 && packedDxy_ != 32768)); }
/// true if the track had the highPurity quality bit
bool trackHighPurity() const { return (qualityFlags_ & trackHighPurityMask) >> trackHighPurityShift; }
/// set to true if the track had the highPurity quality bit
Expand Down

0 comments on commit fc256e5

Please sign in to comment.