CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelBarrelName.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelBarrelName_H
2 #define SiPixelDetId_PixelBarrelName_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 
20  PixelBarrelName(const DetId &);
21 
23  PixelBarrelName(Shell shell=mO, int layer=0, int module=0, int ladder=0)
25  thePart(shell), theLayer(layer), theModule(module), theLadder(ladder)
26  { }
27 
29  PixelBarrelName(std::string name);
30 
31  virtual ~PixelBarrelName() { }
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 PixelBarrelName::Shell& t);
68 #endif
int moduleName() const
module id (index in z)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool isHalfModule() const
full or half module
int sectorName() const
sector id
virtual bool operator==(const PixelModuleName &) const
check equality of modules from datamemebers
tuple out
Definition: dbtoconf.py:99
Definition: DetId.h:20
int ladderName() const
ladder id (index in phi)
virtual std::string name() const
from base class
int layerName() const
layer id
Shell shell() const
virtual ~PixelBarrelName()
PixelBarrelName(const DetId &)
ctor from DetId
PixelBarrelName(Shell shell=mO, int layer=0, int module=0, int ladder=0)
ctor for defined name with dummy parameters
Definition: vlib.h:209
PXBDetId getDetId()
return the DetId
virtual PixelModuleName::ModuleType moduleType() const
module Type