Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
pos::PixelTBMChannel
Simple class to hold either "A" or "B" for the TBM channel.
Definition:
PixelTBMChannel.h:18
pos::PixelTBMChannel::PixelTBMChannel
PixelTBMChannel()
Definition:
PixelTBMChannel.h:20
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition:
PixelCalibConfiguration.cc:1325
cms::cuda::assert
assert(be >=bs)
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelTBMChannel::string
std::string string() const
Definition:
PixelTBMChannel.cc:18
alignCSCRings.s
list s
Definition:
alignCSCRings.py:92
PixelTBMChannel.h
Simple class to hold either "A" or "B" for the TBM channel.
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:144
pos::PixelTBMChannel::isChannelB_
bool isChannelB_
Definition:
PixelTBMChannel.h:34
Generated for CMSSW Reference Manual by
1.8.5