CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeomDetType.cc
Go to the documentation of this file.
2 
3 using namespace GeomDetEnumerators;
4 
5 GeomDetType::GeomDetType( const std::string& n, SubDetector subdet) :
6  theName(n), theSubDet(subdet) {}
7 
8 
10 {}
11 
12 
14 {
15  return (theSubDet == PixelBarrel || theSubDet == TIB || theSubDet == TOB || isDT() || theSubDet == RPCBarrel);
16 }
17 
19 {
20  return (!isBarrel());
21 }
22 
23 
25 {
26  return (theSubDet == TIB || theSubDet == TOB ||
27  theSubDet == TID || theSubDet == TEC);
28 }
29 
31 {
32  return (theSubDet == PixelBarrel || theSubDet == PixelEndcap);
33 }
34 
36 {
37  return ( isTrackerStrip() || isTrackerPixel() );
38 }
39 
40 
41 bool GeomDetType::isDT() const
42 {
43  return (theSubDet == DT) ;
44 }
45 
46 bool GeomDetType::isCSC() const
47 {
48  return (theSubDet == CSC) ;
49 }
50 
51 
52 bool GeomDetType::isRPC() const
53 {
54  return (theSubDet == RPCBarrel || theSubDet == RPCEndcap) ;
55 }
56 
57 bool GeomDetType::isMuon() const
58 {
59  return (theSubDet == DT || theSubDet == CSC || isRPC()) ;
60 }
bool isBarrel() const
Definition: GeomDetType.cc:13
bool isTracker() const
Definition: GeomDetType.cc:35
bool isEndcap() const
Definition: GeomDetType.cc:18
bool isTrackerStrip() const
Definition: GeomDetType.cc:24
bool isMuon() const
Definition: GeomDetType.cc:57
bool isDT() const
Definition: GeomDetType.cc:41
SubDetector theSubDet
Definition: GeomDetType.h:38
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
bool isCSC() const
Definition: GeomDetType.cc:46
bool isRPC() const
Definition: GeomDetType.cc:52
GeomDetType(const std::string &name, SubDetector subdet)
Definition: GeomDetType.cc:5
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
virtual ~GeomDetType()
Definition: GeomDetType.cc:9