CMS 3D CMS Logo

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;
58  return (thePart == other.thePart && theDisk == other.theDisk && theBlade == other.theBlade &&
59  thePannel == other.thePannel && thePlaquette == other.thePlaquette);
60  }
61 
62 private:
65 };
66 
67 std::ostream &operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t);
68 #endif
int pannelName() const
pannel id
PXFDetId getDetId()
return DetId
HalfCylinder halfCylinder() const
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 PixelEndcapNameUpgrade::HalfCylinder &t)
bool operator==(const PixelEndcapNameUpgrade &other) const
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