CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
GeomDetType Class Referenceabstract

#include <GeomDetType.h>

Inheritance diagram for GeomDetType:
CSCChamberSpecs DTLayerType PixelGeomDetType RPCRollSpecs StripGeomDetType

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.

5  :
6  theName(n), theSubDet(subdet) {}
std::string theName
Definition: GeomDetType.h:37
SubDetector theSubDet
Definition: GeomDetType.h:38
GeomDetType::~GeomDetType ( )
virtual

Definition at line 9 of file GeomDetType.cc.

10 {}

Member Function Documentation

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

Definition at line 46 of file GeomDetType.cc.

References CSC(), and theSubDet.

47 {
48  return (theSubDet == CSC) ;
49 }
SubDetector theSubDet
Definition: GeomDetType.h:38
</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
bool GeomDetType::isDT ( ) const

Definition at line 41 of file GeomDetType.cc.

References GeomDetEnumerators::DT, and theSubDet.

Referenced by isBarrel().

42 {
43  return (theSubDet == DT) ;
44 }
SubDetector theSubDet
Definition: GeomDetType.h:38
bool GeomDetType::isEndcap ( ) const

Definition at line 18 of file GeomDetType.cc.

References isBarrel().

Referenced by KFSwitching1DUpdator::update().

19 {
20  return (!isBarrel());
21 }
bool isBarrel() const
Definition: GeomDetType.cc:13
bool GeomDetType::isMuon ( ) const

Definition at line 57 of file GeomDetType.cc.

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

58 {
59  return (theSubDet == DT || theSubDet == CSC || isRPC()) ;
60 }
SubDetector theSubDet
Definition: GeomDetType.h:38
bool isRPC() const
Definition: GeomDetType.cc:52
</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
bool GeomDetType::isRPC ( ) const
bool GeomDetType::isTracker ( ) const

Definition at line 35 of file GeomDetType.cc.

References isTrackerPixel(), and isTrackerStrip().

Referenced by TrackerDpgAnalysis::analyze().

36 {
37  return ( isTrackerStrip() || isTrackerPixel() );
38 }
bool isTrackerStrip() const
Definition: GeomDetType.cc:24
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
bool GeomDetType::isTrackerPixel ( ) const
bool GeomDetType::isTrackerStrip ( ) const
const std::string& GeomDetType::name ( void  ) const
inline

Definition at line 20 of file GeomDetType.h.

References theName.

20 {return theName;}
std::string theName
Definition: GeomDetType.h:37
SubDetector GeomDetType::subDetector ( ) const
inline

Definition at line 22 of file GeomDetType.h.

References theSubDet.

Referenced by PixelCPEBase::setTheDet(), GeomDetUnit::subDetector(), and SiTrivialInduceChargeOnStrips::typeOf().

22 {return theSubDet;}
SubDetector theSubDet
Definition: GeomDetType.h:38
virtual const Topology& GeomDetType::topology ( ) const
pure virtual

Member Data Documentation

std::string GeomDetType::theName
private
SubDetector GeomDetType::theSubDet
private