CMS 3D CMS Logo

PixelModuleName Class Reference

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

#include <DataFormats/SiPixelDetId/interface/PixelModuleName.h>

Inheritance diagram for PixelModuleName:

PixelBarrelName PixelEndcapName

List of all members.

Public Types

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

Public Member Functions

virtual bool isBarrel () const
 true for barrel modules
virtual ModuleType moduleType () const =0
 module type
virtual std::string name () const =0
 associated name
virtual bool operator== (const PixelModuleName &) const =0
 check equality of modules
 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 11 of file PixelModuleName.h.


Member Enumeration Documentation

enum PixelModuleName::ModuleType

Enumerator:
v1x2 
v1x5 
v1x8 
v2x3 
v2x4 
v2x5 
v2x8 

Definition at line 14 of file PixelModuleName.h.

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


Constructor & Destructor Documentation

PixelModuleName::PixelModuleName ( bool  isBarrel  )  [inline]

Definition at line 16 of file PixelModuleName.h.

00016 : barrel(isBarrel) { }

virtual PixelModuleName::~PixelModuleName (  )  [inline, virtual]

Definition at line 17 of file PixelModuleName.h.

00017 { }


Member Function Documentation

static bool PixelModuleName::isBarrel ( uint32_t  rawDetId  )  [inline, static]

Definition at line 22 of file PixelModuleName.h.

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

virtual bool PixelModuleName::isBarrel (  )  const [inline, virtual]

true for barrel modules

Definition at line 20 of file PixelModuleName.h.

References barrel.

Referenced by sipixelobjects::PixelROC::initFrameConversion(), PixelBarrelName::operator==(), PixelEndcapName::operator==(), sipixelobjects::PixelROC::print(), and sipixelobjects::PixelFEDLink::printForMap().

00020 { return barrel; }

virtual ModuleType PixelModuleName::moduleType (  )  const [pure virtual]

module type

Implemented in PixelBarrelName, and PixelEndcapName.

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

associated name

Implemented in PixelBarrelName, and PixelEndcapName.

Referenced by SiPixelFedCablingMapBuilder::produce().

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 34 of file PixelModuleName.h.

Referenced by isBarrel().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:02 2009 for CMSSW by  doxygen 1.5.4