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
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
int sectorName() const
sector id
PixelBarrelNameUpgrade(const DetId &)
ctor from DetId
bool isHalfModule() const
full or half module
PXBDetId getDetId()
return the DetId
std::string name() const override
from base class
Definition: DetId.h:18
int ladderName() const
ladder id (index in phi)
PixelModuleName::ModuleType moduleType() const override
module Type
int moduleName() const
module id (index in z)
Definition: shell.py:1
std::ostream & operator<<(std::ostream &out, const PixelBarrelNameUpgrade::Shell &t)
Definition: vlib.h:208
int layerName() const
layer id