Translates a EcalGainRatio record to XML and vice versa
- Author
- Francesco RUBBO
- Version
- Id
- EcalDCSTowerStatusXMLTranslator.h,v 0 2010/06/3 fay Exp
- Date
- 3 Jun 2010
Definition at line 15 of file EcalDCSTowerStatusXMLTranslator.h.
Definition at line 82 of file EcalDCSTowerStatusXMLTranslator.cc.
83 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
85 DOMLSSerializer*
writer =
impl->createLSSerializer();
86 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
87 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
89 DOMDocumentType* doctype =
impl->createDocumentType(
cms::xerces::uStr(
"XML").ptr(),
nullptr,
nullptr);
91 DOMElement*
root =
doc->getDocumentElement();
94 std::cout <<
" barrel size " <<
record.barrelItems().size() << std::endl;
95 if (
record.barrelItems().empty())
106 std::cout <<
" endcap size " <<
record.endcapItems().size() << std::endl;
107 if (
record.endcapItems().empty())
References gather_cfg::cout, xuti::DCSStatusCode_tag(), xuti::DCSTowerStatus_tag(), EcalTrigTowerDetId::detIdFromDenseIndex(), boostedTaus_cff::doc, submitPVValidationJobs::dump, RecoTauValidation_cfi::header, EcalTrigTowerDetId::kEBTotalTowers, EcalTrigTowerDetId::kEETotalTowers, AlCaHarvesting_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), parallelization::uint, EcalScDetId::unhashIndex(), cms::xerces::uStr(), EcalScDetId::validHashIndex(), xuti::writeCell(), xuti::writeHeader(), xuti::WriteNodeWithValue(), and cscNeutronWriter_cfi::writer.
void EcalDCSTowerStatusXMLTranslator::plot |
( |
std::string |
fn, |
|
|
const EcalDCSTowerStatus & |
record |
|
) |
| |
|
staticprivate |
Definition at line 129 of file EcalDCSTowerStatusXMLTranslator.cc.
130 std::ofstream
fout(
fn.c_str());
132 std::cout <<
" barrel size " <<
record.barrelItems().size() << std::endl;
133 if (
record.barrelItems().empty())
154 std::cout <<
" endcap size " <<
record.endcapItems().size() << std::endl;
155 if (
record.endcapItems().empty())
157 int valEE[2][20][20];
158 for (
int k = 0;
k < 2;
k++)
159 for (
int ix = 0; ix < 20; ix++)
160 for (
int iy = 0; iy < 20; iy++)
161 valEE[
k][ix][iy] = -1;
165 int ix = rawid.
ix() - 1;
166 int iy = 20 - rawid.
iy();
167 int side = rawid.
zside();
171 if (ix < 0 || ix > 19)
172 std::cout <<
" Pb in ix " << ix << std::endl;
173 if (iy < 0 || iy > 19)
174 std::cout <<
" Pb in iy " << iy << std::endl;
175 valEE[iz][ix][iy] =
record[rawid].getStatusCode();
178 for (
int k = 0;
k < 2;
k++) {
182 fout <<
" Side : " << iz << std::endl;
184 for (
int ix = 0; ix < 20; ix++) {
185 if (valEE[
k][ix][
line] < 0)
188 fout << setw(2) << valEE[
k][ix][
line] <<
" ";
References gather_cfg::cout, EcalTrigTowerDetId::detIdFromDenseIndex(), personalPlayback::fn, groupFilesInBlocks::fout, EcalTrigTowerDetId::ieta(), LEDCalibrationChannels::ieta, EcalTrigTowerDetId::iphi(), LEDCalibrationChannels::iphi, EcalScDetId::ix(), EcalScDetId::iy(), dqmdumpme::k, EcalTrigTowerDetId::kEBTotalTowers, EcalTrigTowerDetId::kEETotalTowers, mps_splice::line, AlCaHarvesting_cff::record, parallelization::uint, EcalScDetId::unhashIndex(), EcalScDetId::validHashIndex(), and EcalScDetId::zside().