Translates a EcalGainRatio record to XML and vice versa
- Author
- Francesco RUBBO
- Version
- Id
- EcalDAQTowerStatusXMLTranslator.h,v 0 2010/05/31 fay Exp
- Date
- 26 Apr 2010
Definition at line 15 of file EcalDAQTowerStatusXMLTranslator.h.
Definition at line 81 of file EcalDAQTowerStatusXMLTranslator.cc.
82 unique_ptr<DOMImplementation>
impl(DOMImplementationRegistry::getDOMImplementation(
cms::xerces::uStr(
"LS").ptr()));
84 DOMLSSerializer*
writer =
impl->createLSSerializer();
85 if (
writer->getDomConfig()->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true))
86 writer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
88 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::DAQStatusCode_tag(), xuti::DAQTowerStatus_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 EcalDAQTowerStatusXMLTranslator::plot |
( |
std::string |
fn, |
|
|
const EcalDAQTowerStatus & |
record |
|
) |
| |
|
staticprivate |
Definition at line 129 of file EcalDAQTowerStatusXMLTranslator.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)
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().