CondFormats
PPSObjects
src
CTPPSPixelFramePosition.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
*
4
* Authors:
5
* F.Ferro ferro@ge.infn.it
6
*
7
****************************************************************************/
8
9
#include "
CondFormats/PPSObjects/interface/CTPPSPixelFramePosition.h
"
10
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
11
#include <iomanip>
12
13
using namespace
std
;
14
15
//----------------------------------------------------------------------------------------------------
16
17
std::ostream &
operator<<
(std::ostream &
s
,
const
CTPPSPixelFramePosition
&
fp
) {
18
return
s
<<
fp
.getFEDId() <<
":"
<<
fp
.getFMCId() <<
":"
<<
fp
.getChannelIdx() <<
":"
<<
fp
.getROC();
19
}
20
21
//----------------------------------------------------------------------------------------------------
22
23
void
CTPPSPixelFramePosition::printXML
() {
24
edm::LogInfo
(
"printXML"
) <<
"\" FEDId=\""
<< getFEDId() <<
"\" FMCId=\""
<< getFMCId() <<
"\" ChannelIdx=\""
25
<< getChannelIdx() <<
"\" ROC=\""
<< getROC() <<
"\""
;
26
}
27
28
//----------------------------------------------------------------------------------------------------
29
30
unsigned
char
CTPPSPixelFramePosition::setXMLAttribute
(
const
std::string
&attribute,
31
const
std::string
&
value
,
32
unsigned
char
&
flag
) {
33
unsigned
int
v
= atoi(
value
.c_str());
34
35
if
(attribute ==
"FEDId"
) {
36
setFEDId(
v
);
37
flag
|= 0x8;
38
return
0;
39
}
40
41
if
(attribute ==
"FMC"
) {
42
setFMCId(
v
);
43
flag
|= 0x4;
44
return
0;
45
}
46
47
if
(attribute ==
"FEDChannel"
) {
48
setChannelIdx(
v
);
49
flag
|= 0x2;
50
return
0;
51
}
52
53
if
(attribute ==
"ROCinChannel"
) {
54
setROC(
v
);
55
flag
|= 0x1;
56
return
0;
57
}
58
59
return
1;
60
}
CTPPSPixelFramePosition::setXMLAttribute
unsigned char setXMLAttribute(const std::string &attribute, const std::string &value, unsigned char &flag)
Definition:
CTPPSPixelFramePosition.cc:29
MessageLogger.h
CTPPSPixelFramePosition.h
CTPPSPixelFramePosition
Definition:
CTPPSPixelFramePosition.h:27
personalPlayback.fp
fp
Definition:
personalPlayback.py:523
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
std::operator<<
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition:
Utilities.h:32
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
CTPPSPixelFramePosition::printXML
void printXML()
prints XML formatted DAQ channel to stdout
Definition:
CTPPSPixelFramePosition.cc:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
value
Definition:
value.py:1
std
Definition:
JetResolutionObject.h:76
RemoveAddSevLevel.flag
flag
Definition:
RemoveAddSevLevel.py:116
Generated for CMSSW Reference Manual by
1.8.16