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 
11 
12 #include <string>
13 
14 class DetId;
15 
17 public:
18 
19  enum Shell { mO = 1, mI = 2 , pO =3 , pI =4 };
20 
22  PixelBarrelName(const DetId &, bool phase=false);
23 
24  PixelBarrelName(const DetId &, const TrackerTopology* tt, bool phase=false);
25 
27  PixelBarrelName(Shell shell=mO, int layer=0, int module=0, int ladder=0, bool phase=false)
29  thePart(shell), theLayer(layer), theModule(module), theLadder(ladder), phase1(phase)
30  { }
31 
33  PixelBarrelName(std::string name, bool phase=false);
34 
35  virtual ~PixelBarrelName() { }
36 
37  inline int convertLadderNumber(int oldLadder);
38 
40  virtual std::string name() const;
41 
42  Shell shell() const { return thePart; }
43 
45  int layerName() const { return theLayer; }
46 
48  int moduleName() const { return theModule; }
49 
51  int ladderName() const { return theLadder; }
52 
54  int sectorName() const;
55 
57  bool isHalfModule() const;
58 
61 
65 
67  virtual bool operator== (const PixelModuleName &) const;
68 
69 private:
72  bool phase1;
73 };
74 
75 std::ostream & operator<<( std::ostream& out, const PixelBarrelName::Shell& t);
76 #endif
PixelBarrelName(const DetId &, bool phase=false)
ctor from DetId
int moduleName() const
module id (index in z)
int convertLadderNumber(int oldLadder)
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:18
int ladderName() const
ladder id (index in phi)
virtual std::string name() const
from base class
int layerName() const
layer id
PixelBarrelName(Shell shell=mO, int layer=0, int module=0, int ladder=0, bool phase=false)
ctor for defined name with dummy parameters
Shell shell() const
virtual ~PixelBarrelName()
Definition: vlib.h:208
PXBDetId getDetId()
return the DetId
virtual PixelModuleName::ModuleType moduleType() const
module Type