DataFormats
SiPixelDetId
interface
PixelEndcapNameUpgrade.h
Go to the documentation of this file.
1
#ifndef SiPixelDetId_PixelEndcapNameUpgrade_H
2
#define SiPixelDetId_PixelEndcapNameUpgrade_H
3
8
#include "
DataFormats/SiPixelDetId/interface/PixelModuleName.h
"
9
10
#include <string>
11
#include <iostream>
12
#include "
DataFormats/SiPixelDetId/interface/PXFDetId.h
"
13
14
class
DetId
;
15
16
class
PixelEndcapNameUpgrade
:
public
PixelModuleName
{
17
public
:
18
enum
HalfCylinder
{
mO
= 1,
mI
= 2,
pO
= 3,
pI
= 4 };
19
21
PixelEndcapNameUpgrade
(
const
DetId
&);
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
28
PixelEndcapNameUpgrade
(
std::string
name
);
29
30
~PixelEndcapNameUpgrade
()
override
{}
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
53
PXFDetId
getDetId
();
54
56
bool
operator==
(
const
PixelModuleName
&)
const override
;
57
58
private
:
59
HalfCylinder
thePart
;
60
int
theDisk
,
theBlade
,
thePannel
,
thePlaquette
;
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:29
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
PXFDetId
Definition:
PXFDetId.h:15
PixelModuleName.h
PixelEndcapNameUpgrade::~PixelEndcapNameUpgrade
~PixelEndcapNameUpgrade() override
Definition:
PixelEndcapNameUpgrade.h:30
PixelEndcapNameUpgrade::pO
Definition:
PixelEndcapNameUpgrade.h:18
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
PixelEndcapNameUpgrade::PixelEndcapNameUpgrade
PixelEndcapNameUpgrade(const DetId &)
ctor from DetId
Definition:
PixelEndcapNameUpgrade.cc:11
Generated for CMSSW Reference Manual by
1.8.16