Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:52

0001 #include "Geometry/CommonTopologies/interface/GeomDetType.h"
0002 
0003 using namespace GeomDetEnumerators;
0004 
0005 GeomDetType::GeomDetType(const std::string& n, SubDetector subdet) : theName(n), theSubDet(subdet) {}
0006 
0007 GeomDetType::~GeomDetType() {}
0008 
0009 bool GeomDetType::isBarrel() const { return GeomDetEnumerators::isBarrel(theSubDet); }
0010 
0011 bool GeomDetType::isEndcap() const { return GeomDetEnumerators::isEndcap(theSubDet); }
0012 
0013 bool GeomDetType::isTrackerStrip() const { return GeomDetEnumerators::isTrackerStrip(theSubDet); }
0014 
0015 bool GeomDetType::isTrackerPixel() const { return GeomDetEnumerators::isTrackerPixel(theSubDet); }
0016 
0017 bool GeomDetType::isInnerTracker() const { return GeomDetEnumerators::isInnerTracker(theSubDet); }
0018 
0019 bool GeomDetType::isOuterTracker() const { return GeomDetEnumerators::isOuterTracker(theSubDet); }
0020 
0021 bool GeomDetType::isTracker() const { return GeomDetEnumerators::isTracker(theSubDet); }
0022 
0023 bool GeomDetType::isDT() const { return GeomDetEnumerators::isDT(theSubDet); }
0024 
0025 bool GeomDetType::isCSC() const { return GeomDetEnumerators::isCSC(theSubDet); }
0026 
0027 bool GeomDetType::isRPC() const { return GeomDetEnumerators::isRPC(theSubDet); }
0028 
0029 bool GeomDetType::isGEM() const { return GeomDetEnumerators::isGEM(theSubDet); }
0030 
0031 bool GeomDetType::isME0() const {
0032   return GeomDetEnumerators::isME0(theSubDet);
0033   return (theSubDet == ME0);
0034 }
0035 
0036 bool GeomDetType::isMuon() const { return GeomDetEnumerators::isMuon(theSubDet); }
0037 
0038 bool GeomDetType::isTiming() const { return GeomDetEnumerators::isTiming(theSubDet); }