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;
57 
58 private:
61 };
62 
63 std::ostream &operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t);
64 #endif
PixelEndcapNameUpgrade::diskName
int diskName() const
disk id
Definition: PixelEndcapNameUpgrade.h:38
PixelModuleName
Definition: PixelModuleName.h:12
PixelEndcapNameUpgrade::HalfCylinder
HalfCylinder
Definition: PixelEndcapNameUpgrade.h:18
funct::false
false
Definition: Factorize.h:34
PixelEndcapNameUpgrade::thePannel
int thePannel
Definition: PixelEndcapNameUpgrade.h:60
PixelEndcapNameUpgrade::bladeName
int bladeName() const
blade id
Definition: PixelEndcapNameUpgrade.h:41
PixelEndcapNameUpgrade::mO
Definition: PixelEndcapNameUpgrade.h:18
PixelEndcapNameUpgrade
Definition: PixelEndcapNameUpgrade.h:16
PixelEndcapNameUpgrade::name
std::string name() const override
from base class
Definition: PixelEndcapNameUpgrade.cc:185
DetId
Definition: DetId.h:17
part
part
Definition: HCALResponse.h:20
PixelEndcapNameUpgrade::mI
Definition: PixelEndcapNameUpgrade.h:18
PixelModuleName::ModuleType
ModuleType
Definition: PixelModuleName.h:14
OrderedSet.t
t
Definition: OrderedSet.py:90
PXFDetId
Definition: PXFDetId.h:15
PixelModuleName.h
PixelEndcapNameUpgrade::~PixelEndcapNameUpgrade
~PixelEndcapNameUpgrade() override
Definition: PixelEndcapNameUpgrade.h:30
PixelEndcapNameUpgrade::pO
Definition: PixelEndcapNameUpgrade.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelEndcapNameUpgrade::thePlaquette
int thePlaquette
Definition: PixelEndcapNameUpgrade.h:60
PixelEndcapNameUpgrade::pannelName
int pannelName() const
pannel id
Definition: PixelEndcapNameUpgrade.h:44
PixelEndcapNameUpgrade::halfCylinder
HalfCylinder halfCylinder() const
Definition: PixelEndcapNameUpgrade.h:35
PixelEndcapNameUpgrade::theDisk
int theDisk
Definition: PixelEndcapNameUpgrade.h:60
PixelEndcapNameUpgrade::theBlade
int theBlade
Definition: PixelEndcapNameUpgrade.h:60
PixelEndcapNameUpgrade::thePart
HalfCylinder thePart
Definition: PixelEndcapNameUpgrade.h:59
operator<<
std::ostream & operator<<(std::ostream &out, const PixelEndcapNameUpgrade::HalfCylinder &t)
Definition: PixelEndcapNameUpgrade.cc:191
PixelEndcapNameUpgrade::getDetId
PXFDetId getDetId()
return DetId
Definition: PixelEndcapNameUpgrade.cc:216
PixelEndcapNameUpgrade::operator==
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
Definition: PixelEndcapNameUpgrade.cc:176
PixelEndcapNameUpgrade::plaquetteName
int plaquetteName() const
plaquetteId (in pannel)
Definition: PixelEndcapNameUpgrade.h:47
PixelEndcapNameUpgrade::pI
Definition: PixelEndcapNameUpgrade.h:18
PixelEndcapNameUpgrade::moduleType
PixelModuleName::ModuleType moduleType() const override
module Type
Definition: PixelEndcapNameUpgrade.cc:162
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
PXFDetId.h
PixelEndcapNameUpgrade::PixelEndcapNameUpgrade
PixelEndcapNameUpgrade(HalfCylinder part=mO, int disk=0, int blade=0, int pannel=0, int plaq=0)
ctor for defined name
Definition: PixelEndcapNameUpgrade.h:24
PixelEndcapNameUpgrade::PixelEndcapNameUpgrade
PixelEndcapNameUpgrade(const DetId &)
ctor from DetId
Definition: PixelEndcapNameUpgrade.cc:11