DataFormats
TrackerCommon
interface
PixelBarrelName.h
Go to the documentation of this file.
1
#ifndef DataFormats_TrackerCommon_PixelBarrelName_H
2
#define DataFormats_TrackerCommon_PixelBarrelName_H
3
8
#include "
DataFormats/SiPixelDetId/interface/PixelModuleName.h
"
9
#include "
DataFormats/SiPixelDetId/interface/PXBDetId.h
"
10
11
#include <string>
12
13
class
DetId
;
14
class
TrackerTopology
;
15
16
class
PixelBarrelName
:
public
PixelModuleName
{
17
public
:
18
enum
Shell
{
mO
= 1,
mI
= 2,
pO
= 3,
pI
= 4 };
19
21
PixelBarrelName
(
const
DetId
&,
const
TrackerTopology
*
tt
,
bool
phase
=
false
);
22
23
// do not use, works only for phase0 and old pixel classes
24
PixelBarrelName
(
const
DetId
&,
bool
phase
=
false
);
25
27
PixelBarrelName
(
Shell
shell
=
mO
,
int
layer = 0,
int
module = 0,
int
ladder
= 0,
bool
phase
=
false
)
28
:
PixelModuleName
(
true
),
thePart
(
shell
),
theLayer
(layer),
theModule
(module),
theLadder
(
ladder
),
phase1
(
phase
) {}
29
31
PixelBarrelName
(
std::string
name
,
bool
phase
=
false
);
32
33
~PixelBarrelName
()
override
{}
34
35
inline
int
convertLadderNumber
(
int
oldLadder);
36
38
std::string
name
()
const override
;
39
40
Shell
shell
()
const
{
return
thePart
; }
41
43
int
layerName
()
const
{
return
theLayer
; }
44
46
int
moduleName
()
const
{
return
theModule
; }
47
49
int
ladderName
()
const
{
return
theLadder
; }
50
52
int
sectorName
()
const
;
53
55
bool
isHalfModule
()
const
;
56
58
PixelModuleName::ModuleType
moduleType
()
const override
;
59
61
PXBDetId
getDetId
();
62
DetId
getDetId
(
const
TrackerTopology
*
tt
);
63
65
bool
operator==
(
const
PixelModuleName
&)
const override
;
66
67
private
:
68
Shell
thePart
;
69
int
theLayer
,
theModule
,
theLadder
;
70
bool
phase1
;
71
};
72
73
std::ostream&
operator<<
(std::ostream&
out
,
const
PixelBarrelName::Shell
&
t
);
74
#endif
PixelModuleName
Definition:
PixelModuleName.h:12
PixelBarrelName::pO
Definition:
PixelBarrelName.h:18
PixelBarrelName::pI
Definition:
PixelBarrelName.h:18
PixelBarrelName::convertLadderNumber
int convertLadderNumber(int oldLadder)
Definition:
PixelBarrelName.cc:151
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:144
PixelBarrelName::~PixelBarrelName
~PixelBarrelName() override
Definition:
PixelBarrelName.h:33
operator<<
std::ostream & operator<<(std::ostream &out, const PixelBarrelName::Shell &t)
Definition:
PixelBarrelName.cc:895
TrackerTopology
Definition:
TrackerTopology.h:16
PixelBarrelName
Definition:
PixelBarrelName.h:16
PixelBarrelName::mI
Definition:
PixelBarrelName.h:18
PixelBarrelName::layerName
int layerName() const
layer id
Definition:
PixelBarrelName.h:43
PixelBarrelName::mO
Definition:
PixelBarrelName.h:18
DetId
Definition:
DetId.h:17
PixelBarrelName::name
std::string name() const override
from base class
Definition:
PixelBarrelName.cc:731
PixelModuleName::ModuleType
ModuleType
Definition:
PixelModuleName.h:14
PixelBarrelName::theLayer
int theLayer
Definition:
PixelBarrelName.h:69
PixelBarrelName::ladderName
int ladderName() const
ladder id (index in phi)
Definition:
PixelBarrelName.h:49
PixelModuleName.h
PixelBarrelName::sectorName
int sectorName() const
sector id
Definition:
PixelBarrelName.cc:311
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelPI::phase
phase
Definition:
SiPixelPayloadInspectorHelper.h:39
PixelBarrelName::theModule
int theModule
Definition:
PixelBarrelName.h:69
funct::true
true
Definition:
Factorize.h:173
PixelBarrelName::shell
Shell shell() const
Definition:
PixelBarrelName.h:40
PixelBarrelName::getDetId
PXBDetId getDetId()
return the DetId
Definition:
PixelBarrelName.cc:807
PixelBarrelName::Shell
Shell
Definition:
PixelBarrelName.h:18
PixelBarrelName::moduleName
int moduleName() const
module id (index in z)
Definition:
PixelBarrelName.h:46
shell
Definition:
shell.py:1
PixelBarrelName::thePart
Shell thePart
Definition:
PixelBarrelName.h:68
PixelBarrelName::PixelBarrelName
PixelBarrelName(const DetId &, const TrackerTopology *tt, bool phase=false)
ctor from DetId
Definition:
PixelBarrelName.cc:22
PixelBarrelName::theLadder
int theLadder
Definition:
PixelBarrelName.h:69
PVValHelper::ladder
Definition:
PVValidationHelpers.h:72
PixelBarrelName::PixelBarrelName
PixelBarrelName(Shell shell=mO, int layer=0, int module=0, int ladder=0, bool phase=false)
ctor for defined name with dummy parameters
Definition:
PixelBarrelName.h:27
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
PXBDetId
Definition:
PXBDetId.h:16
PXBDetId.h
PixelBarrelName::moduleType
PixelModuleName::ModuleType moduleType() const override
module Type
Definition:
PixelBarrelName.cc:718
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
PixelBarrelName::isHalfModule
bool isHalfModule() const
full or half module
Definition:
PixelBarrelName.cc:702
PixelBarrelName::phase1
bool phase1
Definition:
PixelBarrelName.h:70
PixelBarrelName::operator==
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
Definition:
PixelBarrelName.cc:722
Generated for CMSSW Reference Manual by
1.8.16