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 | Static Public Member Functions | Private Attributes
PixelModuleName Class Referenceabstract

#include <PixelModuleName.h>

Inheritance diagram for PixelModuleName:
PixelBarrelName PixelEndcapName

Public Types

enum  ModuleType {
  v1x2, v1x5, v1x8, v2x3,
  v2x4, v2x5, v2x8
}
 

Public Member Functions

virtual bool isBarrel () const
 true for barrel modules More...
 
virtual ModuleType moduleType () const =0
 module type More...
 
virtual std::string name () const =0
 associated name More...
 
virtual bool operator== (const PixelModuleName &) const =0
 check equality of modules More...
 
 PixelModuleName (bool isBarrel)
 
virtual ~PixelModuleName ()
 

Static Public Member Functions

static bool isBarrel (uint32_t rawDetId)
 

Private Attributes

bool barrel
 

Detailed Description

Base class to Pixel modules naming, provides a name as in PixelDatabase

Definition at line 12 of file PixelModuleName.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

PixelModuleName::PixelModuleName ( bool  isBarrel)
inline

Definition at line 17 of file PixelModuleName.h.

17 : barrel(isBarrel) { }
virtual bool isBarrel() const
true for barrel modules
virtual PixelModuleName::~PixelModuleName ( )
inlinevirtual

Definition at line 18 of file PixelModuleName.h.

18 { }

Member Function Documentation

virtual bool PixelModuleName::isBarrel ( ) const
inlinevirtual
static bool PixelModuleName::isBarrel ( uint32_t  rawDetId)
inlinestatic

Definition at line 23 of file PixelModuleName.h.

23 { return ( 1==((rawDetId>>25)&0x7)); }
virtual ModuleType PixelModuleName::moduleType ( ) const
pure virtual

module type

Implemented in PixelBarrelName, and PixelEndcapName.

virtual std::string PixelModuleName::name ( ) const
pure virtual
virtual bool PixelModuleName::operator== ( const PixelModuleName ) const
pure virtual

check equality of modules

Implemented in PixelBarrelName, and PixelEndcapName.

Member Data Documentation

bool PixelModuleName::barrel
private

Definition at line 35 of file PixelModuleName.h.

Referenced by isBarrel().