CMS 3D CMS Logo

PixelBarrelNameUpgrade.h
Go to the documentation of this file.
1 #ifndef SiPixelDetId_PixelBarrelNameUpgrade_H
2 #define SiPixelDetId_PixelBarrelNameUpgrade_H
3 
9 #include <string>
11 
12 class DetId;
13 
15 public:
16  enum Shell { mO = 1, mI = 2, pO = 3, pI = 4 };
17 
20 
22  PixelBarrelNameUpgrade(Shell shell = mO, int layer = 0, int module = 0, int ladder = 0)
24 
27 
29 
31  std::string name() const override;
32 
33  Shell shell() const { return thePart; }
34 
36  int layerName() const { return theLayer; }
37 
39  int moduleName() const { return theModule; }
40 
42  int ladderName() const { return theLadder; }
43 
45  int sectorName() const;
46 
48  bool isHalfModule() const;
49 
51  PixelModuleName::ModuleType moduleType() const override;
52 
55 
57  bool operator==(const PixelModuleName&) const override;
58 
59 private:
62 };
63 
64 std::ostream& operator<<(std::ostream& out, const PixelBarrelNameUpgrade::Shell& t);
65 #endif
PixelBarrelNameUpgrade::shell
Shell shell() const
Definition: PixelBarrelNameUpgrade.h:33
PixelModuleName
Definition: PixelModuleName.h:12
PixelBarrelNameUpgrade::theLadder
int theLadder
Definition: PixelBarrelNameUpgrade.h:61
PixelBarrelNameUpgrade::moduleName
int moduleName() const
module id (index in z)
Definition: PixelBarrelNameUpgrade.h:39
PixelBarrelNameUpgrade::moduleType
PixelModuleName::ModuleType moduleType() const override
module Type
Definition: PixelBarrelNameUpgrade.cc:362
PixelBarrelNameUpgrade::pO
Definition: PixelBarrelNameUpgrade.h:16
PixelBarrelNameUpgrade::~PixelBarrelNameUpgrade
~PixelBarrelNameUpgrade() override
Definition: PixelBarrelNameUpgrade.h:28
PixelBarrelNameUpgrade::sectorName
int sectorName() const
sector id
Definition: PixelBarrelNameUpgrade.cc:164
PixelBarrelNameUpgrade
Definition: PixelBarrelNameUpgrade.h:14
PixelBarrelNameUpgrade::pI
Definition: PixelBarrelNameUpgrade.h:16
PixelBarrelNameUpgrade::mI
Definition: PixelBarrelNameUpgrade.h:16
PixelBarrelNameUpgrade::operator==
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
Definition: PixelBarrelNameUpgrade.cc:366
DetId
Definition: DetId.h:17
PixelModuleName::ModuleType
ModuleType
Definition: PixelModuleName.h:14
PixelBarrelNameUpgrade::thePart
Shell thePart
Definition: PixelBarrelNameUpgrade.h:60
PixelModuleName.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelBarrelNameUpgrade::PixelBarrelNameUpgrade
PixelBarrelNameUpgrade(Shell shell=mO, int layer=0, int module=0, int ladder=0)
ctor for defined name with dummy parameters
Definition: PixelBarrelNameUpgrade.h:22
funct::true
true
Definition: Factorize.h:173
PixelBarrelNameUpgrade::mO
Definition: PixelBarrelNameUpgrade.h:16
PixelBarrelNameUpgrade::isHalfModule
bool isHalfModule() const
full or half module
Definition: PixelBarrelNameUpgrade.cc:353
PixelBarrelNameUpgrade::Shell
Shell
Definition: PixelBarrelNameUpgrade.h:16
PixelBarrelNameUpgrade::theLayer
int theLayer
Definition: PixelBarrelNameUpgrade.h:61
PixelBarrelNameUpgrade::getDetId
PXBDetId getDetId()
return the DetId
Definition: PixelBarrelNameUpgrade.cc:398
shell
Definition: shell.py:1
PixelBarrelNameUpgrade::PixelBarrelNameUpgrade
PixelBarrelNameUpgrade(const DetId &)
ctor from DetId
Definition: PixelBarrelNameUpgrade.cc:11
PixelBarrelNameUpgrade::layerName
int layerName() const
layer id
Definition: PixelBarrelNameUpgrade.h:36
PVValHelper::ladder
Definition: PVValidationHelpers.h:72
PixelBarrelNameUpgrade::ladderName
int ladderName() const
ladder id (index in phi)
Definition: PixelBarrelNameUpgrade.h:42
PixelBarrelNameUpgrade::name
std::string name() const override
from base class
Definition: PixelBarrelNameUpgrade.cc:375
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
PixelBarrelNameUpgrade::theModule
int theModule
Definition: PixelBarrelNameUpgrade.h:61
PXBDetId
Definition: PXBDetId.h:16
PXBDetId.h
operator<<
std::ostream & operator<<(std::ostream &out, const PixelBarrelNameUpgrade::Shell &t)
Definition: PixelBarrelNameUpgrade.cc:459
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644