CalibFormats
SiPixelObjects
src
PixelTBMChannel.cc
Go to the documentation of this file.
1
#include "
CalibFormats/SiPixelObjects/interface/PixelTBMChannel.h
"
2
#include <cassert>
3
4
using namespace
pos
;
5
6
PixelTBMChannel::PixelTBMChannel
(
std::string
TBMChannel) {
7
if
(TBMChannel ==
"A"
)
8
isChannelB_
=
false
;
9
else
if
(TBMChannel ==
"B"
)
10
isChannelB_
=
true
;
11
else
{
12
std::cout
<<
"ERROR in PixelTBMChannel: TBM channel must be A or B, but input value was "
<< TBMChannel
13
<< std::endl;
14
assert
(0);
15
}
16
}
17
18
std::string
PixelTBMChannel::string
()
const
{
19
if
(
isChannelB_
)
20
return
"B"
;
21
else
22
return
"A"
;
23
}
24
25
std::ostream&
pos::operator<<
(std::ostream&
s
,
const
PixelTBMChannel
& TBMChannel) {
26
s
<< TBMChannel.
string
();
27
return
s
;
28
}
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
pos
Definition:
PixelAliasList.h:18
cms::cuda::assert
assert(be >=bs)
pos::PixelTBMChannel::isChannelB_
bool isChannelB_
Definition:
PixelTBMChannel.h:34
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
PixelTBMChannel.h
Simple class to hold either "A" or "B" for the TBM channel.
pos::PixelTBMChannel
Simple class to hold either "A" or "B" for the TBM channel.
Definition:
PixelTBMChannel.h:18
pos::PixelTBMChannel::string
std::string string() const
Definition:
PixelTBMChannel.cc:18
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition:
PixelCalibConfiguration.cc:1325
pos::PixelTBMChannel::PixelTBMChannel
PixelTBMChannel()
Definition:
PixelTBMChannel.h:20
Generated for CMSSW Reference Manual by
1.8.16