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 
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)
26  { }
27 
30 
31  ~PixelBarrelNameUpgrade() override { }
32 
34  std::string name() const override;
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 
54  PixelModuleName::ModuleType moduleType() const override;
55 
58 
60  bool operator== (const PixelModuleName &) const override;
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
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