Skip to content

Commit

Permalink
Fix ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Oct 6, 2015
1 parent e1070e5 commit 902fd49
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -323,11 +323,11 @@ TrackingRegion::Hits RectangularEtaPhiTrackingRegion::hits(
const GlobalPoint vtx = origin();
GlobalVector dir = direction();

if ((GeomDetEnumerators::isTrackerPixel(detLayer->subDetector()) && GeomDetEnumerators::isBarrel(detLayer->subDetector()) == GeomDetEnumerators::PixelBarrel) ||
if ((GeomDetEnumerators::isTrackerPixel(detLayer->subDetector()) && GeomDetEnumerators::isBarrel(detLayer->subDetector())) ||
(!theUseEtaPhi && detLayer->location() == GeomDetEnumerators::barrel)) {
const BarrelDetLayer& bl = dynamic_cast<const BarrelDetLayer&>(*detLayer);
est = estimator(&bl,es);
} else if ((GeomDetEnumerators::isTrackerPixel(detLayer->subDetector()) && GeomDetEnumerators::isBarrel(detLayer->subDetector()) == GeomDetEnumerators::PixelEndcap) ||
} else if ((GeomDetEnumerators::isTrackerPixel(detLayer->subDetector()) && GeomDetEnumerators::isBarrel(detLayer->subDetector())) ||
(!theUseEtaPhi && detLayer->location() == GeomDetEnumerators::endcap)) {
const ForwardDetLayer& fl = dynamic_cast<const ForwardDetLayer&>(*detLayer);
est = estimator(&fl,es);
Expand Down

2 comments on commit 902fd49

@VinInn
Copy link
Contributor

@VinInn VinInn commented on 902fd49 Mar 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should had been isEndcap ....

@makortel
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Fixed in #13729.

Please sign in to comment.