Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
{
8
if
( TBMChannel==
"A"
)
isChannelB_
=
false
;
9
else
if
( TBMChannel==
"B"
)
isChannelB_
=
true
;
10
else
11
{
12
std::cout
<<
"ERROR in PixelTBMChannel: TBM channel must be A or B, but input value was "
<<TBMChannel<<std::endl;
13
assert(0);
14
}
15
}
16
17
std::string
PixelTBMChannel::string
()
const
18
{
19
if
(
isChannelB_
)
return
"B"
;
20
else
return
"A"
;
21
}
22
23
std::ostream&
pos::operator<<
(std::ostream&
s
,
const
PixelTBMChannel
& TBMChannel)
24
{
25
s << TBMChannel.
string
();
26
return
s
;
27
}
pos::PixelTBMChannel
Simple class to hold either "A" or "B" for the TBM channel.
Definition:
PixelTBMChannel.h:18
pos
Definition:
Histograms.cc:18
pos::PixelTBMChannel::PixelTBMChannel
PixelTBMChannel()
Definition:
PixelTBMChannel.h:22
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition:
PixelCalibConfiguration.cc:1406
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
pos::PixelTBMChannel::string
std::string string() const
Definition:
PixelTBMChannel.cc:17
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
PixelTBMChannel.h
Simple class to hold either "A" or "B" for the TBM channel.
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
pos::PixelTBMChannel::isChannelB_
bool isChannelB_
Definition:
PixelTBMChannel.h:38
Generated for CMSSW Reference Manual by
1.8.5