CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  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
int sectorName() const
sector id
PixelBarrelNameUpgrade(const DetId &)
ctor from DetId
bool isHalfModule() const
full or half module
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
std::string name() const override
from base class
PXBDetId getDetId()
return the DetId
constexpr std::array< uint8_t, layerIndexSize > layer
PixelModuleName::ModuleType moduleType() const override
module Type
Definition: DetId.h:17
int ladderName() const
ladder id (index in phi)
int moduleName() const
module id (index in z)
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
int layerName() const
layer id
tuple module
Definition: callgraph.py:69