CMS 3D CMS Logo

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 PixelBarrelNameUpgrade PixelEndcapName PixelEndcapNameUpgrade

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

◆ ModuleType

Enumerator
v1x2 
v1x5 
v1x8 
v2x3 
v2x4 
v2x5 
v2x8 

Definition at line 14 of file PixelModuleName.h.

14 { v1x2, v1x5, v1x8, v2x3, v2x4, v2x5, v2x8 };

Constructor & Destructor Documentation

◆ PixelModuleName()

PixelModuleName::PixelModuleName ( bool  isBarrel)
inline

Definition at line 16 of file PixelModuleName.h.

16 : barrel(isBarrel) {}

◆ ~PixelModuleName()

virtual PixelModuleName::~PixelModuleName ( )
inlinevirtual

Definition at line 17 of file PixelModuleName.h.

17 {}

Member Function Documentation

◆ isBarrel() [1/2]

virtual bool PixelModuleName::isBarrel ( ) const
inlinevirtual

◆ isBarrel() [2/2]

static bool PixelModuleName::isBarrel ( uint32_t  rawDetId)
inlinestatic

Definition at line 22 of file PixelModuleName.h.

22 { return (1 == ((rawDetId >> 25) & 0x7)); }

◆ moduleType()

virtual ModuleType PixelModuleName::moduleType ( ) const
pure virtual

◆ name()

virtual std::string PixelModuleName::name ( ) const
pure virtual

◆ operator==()

virtual bool PixelModuleName::operator== ( const PixelModuleName ) const
pure virtual

check equality of modules

Implemented in PixelEndcapName, PixelBarrelName, PixelBarrelNameUpgrade, and PixelEndcapNameUpgrade.

Member Data Documentation

◆ barrel

bool PixelModuleName::barrel
private

Definition at line 34 of file PixelModuleName.h.

Referenced by isBarrel().

PixelModuleName::v2x3
Definition: PixelModuleName.h:14
PixelModuleName::v2x4
Definition: PixelModuleName.h:14
PixelModuleName::v2x5
Definition: PixelModuleName.h:14
PixelModuleName::v1x5
Definition: PixelModuleName.h:14
PixelModuleName::barrel
bool barrel
Definition: PixelModuleName.h:34
PixelModuleName::v1x2
Definition: PixelModuleName.h:14
PixelModuleName::v1x8
Definition: PixelModuleName.h:14
PixelModuleName::isBarrel
virtual bool isBarrel() const
true for barrel modules
Definition: PixelModuleName.h:20
PixelModuleName::v2x8
Definition: PixelModuleName.h:14