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 
34 
36  virtual std::string name() const;
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 
54 
56  PXFDetId getDetId();
57 
59  virtual bool operator== (const PixelModuleName &) const;
60 
61 
62 private:
65 };
66 
67 std::ostream & operator<<( std::ostream& out, const PixelEndcapNameUpgrade::HalfCylinder & t);
68 #endif
PXFDetId getDetId()
return DetId
virtual bool operator==(const PixelModuleName &) const
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
virtual std::string name() const
from base class
std::ostream & operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t)
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:18
part
Definition: HCALResponse.h:20
virtual PixelModuleName::ModuleType moduleType() const
module Type
HalfCylinder halfCylinder() const
int pannelName() const
pannel id