CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelBarrelNameUpgrade.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelBarrelNameUpgrade_H
2 #define SiPixelDetId_PixelBarrelNameUpgrade_H
3 
9 #include <string>
11 
12 class DetId;
13 
15 public:
16 
17  enum Shell { mO = 1, mI = 2 , pO =3 , pI =4 };
18 
21 
23  PixelBarrelNameUpgrade(Shell shell=mO, int layer=0, int module=0, int ladder=0)
25  thePart(shell), theLayer(layer), theModule(module), theLadder(ladder)
26  { }
27 
30 
32 
34  virtual std::string name() const;
35 
36  Shell shell() const { return thePart; }
37 
39  int layerName() const { return theLayer; }
40 
42  int moduleName() const { return theModule; }
43 
45  int ladderName() const { return theLadder; }
46 
48  int sectorName() const;
49 
51  bool isHalfModule() const;
52 
55 
58 
60  virtual bool operator== (const PixelModuleName &) const;
61 
62 private:
65 };
66 
67 std::ostream & operator<<( std::ostream& out, const PixelBarrelNameUpgrade::Shell& t);
68 #endif
PixelBarrelNameUpgrade(Shell shell=mO, int layer=0, int module=0, int ladder=0)
ctor for defined name with dummy parameters
int sectorName() const
sector id
PixelBarrelNameUpgrade(const DetId &)
ctor from DetId
bool isHalfModule() const
full or half module
virtual std::string name() const
from base class
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
PXBDetId getDetId()
return the DetId
virtual PixelModuleName::ModuleType moduleType() const
module Type
tuple out
Definition: dbtoconf.py:99
Definition: DetId.h:18
int ladderName() const
ladder id (index in phi)
virtual bool operator==(const PixelModuleName &) const
check equality of modules from datamemebers
int moduleName() const
module id (index in z)
Definition: vlib.h:208
int layerName() const
layer id