CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

GeomDetType Class Reference

#include <GeomDetType.h>

Inheritance diagram for GeomDetType:
CSCChamberSpecs DTLayerType PixelGeomDetType RPCRollSpecs StripGeomDetType

List of all members.

Public Types

typedef
GeomDetEnumerators::SubDetector 
SubDetector

Public Member Functions

 GeomDetType (const std::string &name, SubDetector subdet)
bool isBarrel () const
bool isCSC () const
bool isDT () const
bool isEndcap () const
bool isMuon () const
bool isRPC () const
bool isTracker () const
bool isTrackerPixel () const
bool isTrackerStrip () const
const std::string & name () const
SubDetector subDetector () const
virtual const Topologytopology () const =0
virtual ~GeomDetType ()

Private Attributes

std::string theName
SubDetector theSubDet

Detailed Description

Definition at line 10 of file GeomDetType.h.


Member Typedef Documentation

Definition at line 12 of file GeomDetType.h.


Constructor & Destructor Documentation

GeomDetType::GeomDetType ( const std::string &  name,
SubDetector  subdet 
)

Definition at line 5 of file GeomDetType.cc.

                                                                :
  theName(n), theSubDet(subdet) {}
GeomDetType::~GeomDetType ( ) [virtual]

Definition at line 9 of file GeomDetType.cc.

{}

Member Function Documentation

bool GeomDetType::isBarrel ( ) const
bool GeomDetType::isCSC ( ) const

Definition at line 46 of file GeomDetType.cc.

References CSC(), and theSubDet.

{   
  return (theSubDet == CSC) ;
}
bool GeomDetType::isDT ( ) const

Definition at line 41 of file GeomDetType.cc.

References GeomDetEnumerators::DT, and theSubDet.

Referenced by isBarrel().

{   
  return (theSubDet == DT) ;
}
bool GeomDetType::isEndcap ( ) const

Definition at line 18 of file GeomDetType.cc.

References isBarrel().

Referenced by KFSwitching1DUpdator::update().

{
  return (!isBarrel());
}
bool GeomDetType::isMuon ( ) const

Definition at line 57 of file GeomDetType.cc.

References CSC(), GeomDetEnumerators::DT, isRPC(), and theSubDet.

{
  return (theSubDet == DT || theSubDet == CSC || isRPC()) ;
}
bool GeomDetType::isRPC ( ) const

Definition at line 52 of file GeomDetType.cc.

References GeomDetEnumerators::RPCBarrel, GeomDetEnumerators::RPCEndcap, and theSubDet.

Referenced by isMuon().

{   
  return (theSubDet == RPCBarrel || theSubDet == RPCEndcap) ;
}
bool GeomDetType::isTracker ( ) const

Definition at line 35 of file GeomDetType.cc.

References isTrackerPixel(), and isTrackerStrip().

Referenced by TrackerDpgAnalysis::analyze().

{
  return ( isTrackerStrip() || isTrackerPixel() );
}
bool GeomDetType::isTrackerPixel ( ) const
bool GeomDetType::isTrackerStrip ( ) const

Definition at line 24 of file GeomDetType.cc.

References sistripsummary::TEC, theSubDet, sistripsummary::TIB, sistripsummary::TID, and sistripsummary::TOB.

Referenced by isTracker().

{
  return (theSubDet == TIB || theSubDet == TOB || 
          theSubDet == TID || theSubDet == TEC);
}
const std::string& GeomDetType::name ( void  ) const [inline]

Definition at line 20 of file GeomDetType.h.

References theName.

{return theName;}
SubDetector GeomDetType::subDetector ( ) const [inline]
virtual const Topology& GeomDetType::topology ( ) const [pure virtual]

Member Data Documentation

std::string GeomDetType::theName [private]

Reimplemented in CSCChamberSpecs.

Definition at line 37 of file GeomDetType.h.

Referenced by name().