CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelEndcapName.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelEndcapName_H
2 #define SiPixelDetId_PixelEndcapName_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 
22  PixelEndcapName(const DetId &);
23 
25  PixelEndcapName( 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 
31  PixelEndcapName(std::string name);
32 
33  virtual ~PixelEndcapName() { }
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 PixelEndcapName::HalfCylinder & t);
68 #endif
int plaquetteName() const
plaquetteId (in pannel)
virtual ~PixelEndcapName()
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
HalfCylinder thePart
PixelEndcapName(const DetId &)
ctor from DetId
int bladeName() const
blade id
virtual bool operator==(const PixelModuleName &) const
check equality of modules from datamemebers
PXFDetId getDetId()
return DetId
tuple out
Definition: dbtoconf.py:99
Definition: DetId.h:20
part
Definition: HCALResponse.h:21
virtual PixelModuleName::ModuleType moduleType() const
module Type
virtual std::string name() const
from base class
int pannelName() const
pannel id
int diskName() const
disk id
HalfCylinder halfCylinder() const
PixelEndcapName(HalfCylinder part=mO, int disk=0, int blade=0, int pannel=0, int plaq=0)
ctor for defined name