CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelEndcapNameUpgrade.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelEndcapNameUpgrade_H
2 #define SiPixelDetId_PixelEndcapNameUpgrade_H
3 
9 
10 #include <string>
11 #include <iostream>
13 
14 class DetId;
15 
17 public:
18  enum HalfCylinder { mO = 1, mI = 2, pO = 3, pI = 4 };
19 
22 
24  PixelEndcapNameUpgrade(HalfCylinder part = mO, int disk = 0, int blade = 0, int pannel = 0, int plaq = 0)
25  : PixelModuleName(false), thePart(part), theDisk(disk), theBlade(blade), thePannel(pannel), thePlaquette(plaq) {}
26 
29 
31 
33  std::string name() const override;
34 
35  HalfCylinder halfCylinder() const { return thePart; }
36 
38  int diskName() const { return theDisk; }
39 
41  int bladeName() const { return theBlade; }
42 
44  int pannelName() const { return thePannel; }
45 
47  int plaquetteName() const { return thePlaquette; }
48 
50  PixelModuleName::ModuleType moduleType() const override;
51 
54 
56  bool operator==(const PixelModuleName &) const override;
57 
58 private:
61 };
62 
63 std::ostream &operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t);
64 #endif
PXFDetId getDetId()
return DetId
PixelModuleName::ModuleType moduleType() const override
module Type
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
PixelEndcapNameUpgrade(HalfCylinder part=mO, int disk=0, int blade=0, int pannel=0, int plaq=0)
ctor for defined name
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
int plaquetteName() const
plaquetteId (in pannel)
PixelEndcapNameUpgrade(const DetId &)
ctor from DetId
int bladeName() const
blade id
int diskName() const
disk id
Definition: DetId.h:17
part
Definition: HCALResponse.h:20
std::string name() const override
from base class
HalfCylinder halfCylinder() const
int pannelName() const
pannel id