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 
19  enum HalfCylinder { mO = 1, mI = 2 , pO =3 , pI =4 };
20 
23 
25  PixelEndcapNameUpgrade( HalfCylinder part = mO, int disk =0, int blade =0, int pannel=0, int plaq=0)
27  thePart(part), theDisk(disk), theBlade(blade), thePannel(pannel), thePlaquette(plaq)
28  { }
29 
32 
33  ~PixelEndcapNameUpgrade() override { }
34 
36  std::string name() const override;
37 
38  HalfCylinder halfCylinder() const { return thePart; }
39 
41  int diskName() const { return theDisk; }
42 
44  int bladeName() const { return theBlade; }
45 
47  int pannelName() const { return thePannel; }
48 
50  int plaquetteName() const { return thePlaquette; }
51 
53  PixelModuleName::ModuleType moduleType() const override;
54 
56  PXFDetId getDetId();
57 
59  bool operator== (const PixelModuleName &) const override;
60 
61 
62 private:
65 };
66 
67 std::ostream & operator<<( std::ostream& out, const PixelEndcapNameUpgrade::HalfCylinder & t);
68 #endif
PixelModuleName::ModuleType moduleType() const override
module Type
PXFDetId getDetId()
return DetId
PixelEndcapNameUpgrade(HalfCylinder part=mO, int disk=0, int blade=0, int pannel=0, int plaq=0)
ctor for defined name
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
std::ostream & operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t)
int plaquetteName() const
plaquetteId (in pannel)
PixelEndcapNameUpgrade(const DetId &)
ctor from DetId
std::string name() const override
from base class
int bladeName() const
blade id
int diskName() const
disk id
Definition: DetId.h:18
part
Definition: HCALResponse.h:20
HalfCylinder halfCylinder() const
int pannelName() const
pannel id