DataFormats
TrackerCommon
interface
PixelEndcapName.h
Go to the documentation of this file.
1
#ifndef DataFormats_TrackerCommon_PixelEndcapName_H
2
#define DataFormats_TrackerCommon_PixelEndcapName_H
3
7
#include "
DataFormats/SiPixelDetId/interface/PixelModuleName.h
"
8
#include "
DataFormats/SiPixelDetId/interface/PXFDetId.h
"
9
10
#include <string>
11
#include <iostream>
12
13
class
DetId
;
14
class
TrackerTopology
;
15
16
class
PixelEndcapName
:
public
PixelModuleName
{
17
public
:
18
enum
HalfCylinder
{
mO
= 1,
mI
= 2,
pO
= 3,
pI
= 4 };
19
21
PixelEndcapName
(
const
DetId
&,
bool
phase
=
false
);
22
PixelEndcapName
(
const
DetId
&,
const
TrackerTopology
*
tt
,
bool
phase
=
false
);
23
25
PixelEndcapName
(
HalfCylinder
part
=
mO
,
int
disk = 0,
int
blade = 0,
int
pannel = 0,
int
plaq = 0,
bool
phase
=
false
)
26
:
PixelModuleName
(
false
),
27
thePart
(
part
),
28
theDisk
(disk),
29
theBlade
(blade),
30
thePannel
(pannel),
31
thePlaquette
(plaq),
32
phase1
(
phase
) {}
33
35
PixelEndcapName
(
std::string
name
,
bool
phase
=
false
);
36
37
~PixelEndcapName
()
override
{}
38
40
std::string
name
()
const override
;
41
42
HalfCylinder
halfCylinder
()
const
{
return
thePart
; }
43
45
int
diskName
()
const
{
return
theDisk
; }
46
48
int
bladeName
()
const
{
return
theBlade
; }
49
51
int
pannelName
()
const
{
return
thePannel
; }
52
54
int
plaquetteName
()
const
{
return
thePlaquette
; }
55
57
int
ringName
()
const
{
return
thePlaquette
; }
58
60
PixelModuleName::ModuleType
moduleType
()
const override
;
61
63
PXFDetId
getDetId
();
64
DetId
getDetId
(
const
TrackerTopology
*
tt
);
65
67
bool
operator==
(
const
PixelModuleName
&)
const override
;
68
69
private
:
70
HalfCylinder
thePart
;
71
int
theDisk
,
theBlade
,
thePannel
,
thePlaquette
;
72
bool
phase1
;
73
};
74
75
std::ostream&
operator<<
(std::ostream&
out
,
const
PixelEndcapName::HalfCylinder
&
t
);
76
#endif
PixelEndcapName::mO
Definition:
PixelEndcapName.h:18
PixelModuleName
Definition:
PixelModuleName.h:12
funct::false
false
Definition:
Factorize.h:29
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:144
PixelEndcapName::theDisk
int theDisk
Definition:
PixelEndcapName.h:71
TrackerTopology
Definition:
TrackerTopology.h:16
PixelEndcapName::phase1
bool phase1
Definition:
PixelEndcapName.h:72
PixelEndcapName::halfCylinder
HalfCylinder halfCylinder() const
Definition:
PixelEndcapName.h:42
PixelEndcapName::operator==
bool operator==(const PixelModuleName &) const override
check equality of modules from datamemebers
Definition:
PixelEndcapName.cc:356
PixelEndcapName::pannelName
int pannelName() const
pannel id
Definition:
PixelEndcapName.h:51
PixelEndcapName::bladeName
int bladeName() const
blade id
Definition:
PixelEndcapName.h:48
PixelEndcapName::moduleType
PixelModuleName::ModuleType moduleType() const override
module Type
Definition:
PixelEndcapName.cc:317
DetId
Definition:
DetId.h:17
part
part
Definition:
HCALResponse.h:20
PixelEndcapName
Definition:
PixelEndcapName.h:16
PixelModuleName::ModuleType
ModuleType
Definition:
PixelModuleName.h:14
PixelEndcapName::thePlaquette
int thePlaquette
Definition:
PixelEndcapName.h:71
PixelEndcapName::thePannel
int thePannel
Definition:
PixelEndcapName.h:71
PixelEndcapName::theBlade
int theBlade
Definition:
PixelEndcapName.h:71
PXFDetId
Definition:
PXFDetId.h:15
PixelEndcapName::getDetId
PXFDetId getDetId()
return DetId
Definition:
PixelEndcapName.cc:485
PixelModuleName.h
SiPixelPI::phase
phase
Definition:
SiPixelPayloadInspectorHelper.h:39
PixelEndcapName::mI
Definition:
PixelEndcapName.h:18
PixelEndcapName::PixelEndcapName
PixelEndcapName(HalfCylinder part=mO, int disk=0, int blade=0, int pannel=0, int plaq=0, bool phase=false)
ctor for defined name
Definition:
PixelEndcapName.h:25
PixelEndcapName::PixelEndcapName
PixelEndcapName(const DetId &, bool phase=false)
ctor from DetId
Definition:
PixelEndcapName.cc:98
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PixelEndcapName::pO
Definition:
PixelEndcapName.h:18
PixelEndcapName::HalfCylinder
HalfCylinder
Definition:
PixelEndcapName.h:18
PixelEndcapName::diskName
int diskName() const
disk id
Definition:
PixelEndcapName.h:45
PixelEndcapName::~PixelEndcapName
~PixelEndcapName() override
Definition:
PixelEndcapName.h:37
operator<<
std::ostream & operator<<(std::ostream &out, const PixelEndcapName::HalfCylinder &t)
Definition:
PixelEndcapName.cc:378
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
PixelEndcapName::thePart
HalfCylinder thePart
Definition:
PixelEndcapName.h:70
PixelEndcapName::plaquetteName
int plaquetteName() const
plaquetteId (in pannel)
Definition:
PixelEndcapName.h:54
PXFDetId.h
PixelEndcapName::name
std::string name() const override
from base class
Definition:
PixelEndcapName.cc:365
PixelEndcapName::pI
Definition:
PixelEndcapName.h:18
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
PixelEndcapName::ringName
int ringName() const
ring Id
Definition:
PixelEndcapName.h:57
Generated for CMSSW Reference Manual by
1.8.16