Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Oct 9, 2014
1 parent 6e7ef91 commit 98c6f41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion DataFormats/TrackerCommon/interface/TrackerTopology.h
Expand Up @@ -464,7 +464,6 @@ class TrackerTopology {

SiStripDetId::ModuleGeometry moduleGeometry(const DetId &id) const;


private:

PixelBarrelValues pbVals_;
Expand Down
3 changes: 1 addition & 2 deletions DataFormats/TrackerCommon/src/TrackerTopology.cc
Expand Up @@ -165,7 +165,7 @@ std::string TrackerTopology::print(DetId id) const {


SiStripDetId::ModuleGeometry TrackerTopology::moduleGeometry(const DetId &id) const {
switch(subDetector()) {
switch(id.subdetId()) {
case StripSubdetector::TIB: return tibLayer(id)<3? SiStripDetId::IB1 : SiStripDetId::IB2;
case StripSubdetector::TOB: return tobLayer(id)<5? SiStripDetId::OB2 : SiStripDetId::OB1;
case StripSubdetector::TID: switch (tidRing(id)) {
Expand All @@ -182,7 +182,6 @@ SiStripDetId::ModuleGeometry TrackerTopology::moduleGeometry(const DetId &id) co
case 6: return SiStripDetId::W6;
case 7: return SiStripDetId::W7;
}
case UNKNOWN: default: return SiStripDetId::UNKNOWNGEOMETRY;
}
return SiStripDetId::UNKNOWNGEOMETRY;
}
Expand Down

0 comments on commit 98c6f41

Please sign in to comment.