CMS 3D CMS Logo

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  enum Shell { mO = 1, mI = 2, pO = 3, pI = 4 };
17 
20 
22  PixelBarrelNameUpgrade(Shell shell = mO, int layer = 0, int module = 0, int ladder = 0)
24 
27 
29 
31  std::string name() const override;
32 
33  Shell shell() const { return thePart; }
34 
36  int layerName() const { return theLayer; }
37 
39  int moduleName() const { return theModule; }
40 
42  int ladderName() const { return theLadder; }
43 
45  int sectorName() const;
46 
48  bool isHalfModule() const;
49 
51  PixelModuleName::ModuleType moduleType() const override;
52 
55 
57  bool operator==(const PixelModuleName&) const override;
58 
59 private:
62 };
63 
64 std::ostream& operator<<(std::ostream& out, const PixelBarrelNameUpgrade::Shell& t);
65 #endif
PixelBarrelNameUpgrade(Shell shell=mO, int layer=0, int module=0, int ladder=0)
ctor for defined name with dummy parameters
PixelBarrelNameUpgrade(const DetId &)
ctor from DetId
int layerName() const
layer id
bool isHalfModule() const
full or half module
std::string name() const override
from base class
PXBDetId getDetId()
return the DetId
int moduleName() const
module id (index in z)
int ladderName() const
ladder id (index in phi)
PixelModuleName::ModuleType moduleType() const override
module Type
Definition: DetId.h:17
int sectorName() const
sector id
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
Definition: shell.py:1
std::ostream & operator<<(std::ostream &out, const PixelBarrelNameUpgrade::Shell &t)