CalibFormats
SiPixelObjects
src
PixelChannel.cc
Go to the documentation of this file.
1
#include "
CalibFormats/SiPixelObjects/interface/PixelChannel.h
"
2
3
using namespace
pos
;
4
5
PixelChannel::PixelChannel
(
PixelModuleName
module
,
std::string
TBMChannel) :
module_
(
module
), TBMChannel_(TBMChannel) {}
6
7
PixelChannel::PixelChannel
(
PixelModuleName
module
,
PixelTBMChannel
TBMChannel)
8
:
module_
(
module
), TBMChannel_(TBMChannel) {}
9
10
PixelChannel::PixelChannel
(
std::string
name
) {
11
module_
=
PixelModuleName
(
name
);
12
char
TBMChannelString
[2] = {0, 0};
13
TBMChannelString
[0] =
name
[
name
.size() - 1];
// take the last character of name
14
TBMChannel_
=
PixelTBMChannel
(
TBMChannelString
);
15
}
16
17
std::ostream&
pos::operator<<
(std::ostream&
s
,
const
PixelChannel
& channel) {
18
s
<< channel.
channelname
();
19
return
s
;
20
}
21
22
std::string
PixelChannel::channelname
()
const
{
return
modulename
() +
"_ch"
+
TBMChannelString
(); }
sistrip::module_
static const char module_[]
Definition:
ConstantsForGranularity.h:38
pos
Definition:
PixelAliasList.h:18
pos::PixelModuleName
This class implements..
Definition:
PixelModuleName.h:26
pos::PixelChannel::modulename
std::string modulename() const
Definition:
PixelChannel.h:29
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
pos::PixelChannel::module_
PixelModuleName module_
Definition:
PixelChannel.h:45
pos::PixelTBMChannel
Simple class to hold either "A" or "B" for the TBM channel.
Definition:
PixelTBMChannel.h:18
PixelChannel.h
This class implements...
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelChannel::PixelChannel
PixelChannel()
Definition:
PixelChannel.h:23
pos::PixelChannel::channelname
std::string channelname() const
Definition:
PixelChannel.cc:22
pos::PixelChannel
Definition:
PixelChannel.h:21
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition:
PixelCalibConfiguration.cc:1325
module
Definition:
vlib.h:198
pos::PixelChannel::TBMChannelString
std::string TBMChannelString() const
Definition:
PixelChannel.h:31
pos::PixelChannel::TBMChannel_
PixelTBMChannel TBMChannel_
Definition:
PixelChannel.h:46
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.16