Public Member Functions | |
template<class T > | |
void | addAttribute (DOMElement *fElement, const std::string &fName, const T &fValue) |
void | addData (DOMElement *fData, const HcalGain &fItem) |
void | addData (DOMElement *fData, const HcalGainWidth &fItem) |
void | addData (DOMElement *fData, const HcalPedestal &fItem) |
void | addData (DOMElement *fData, const HcalPedestalWidth &fItem) |
void | addData (DOMElement *fData, const HcalRawGain &fItem) |
const DOMDocument * | document () |
DOMElement * | makeChId (DOMElement *fDataset, DetId fId) |
DOMElement * | makeData (DOMElement *fDataset) |
DOMElement * | makeData (DOMElement *fDataset, const HcalPedestal &fPed, const HcalPedestalWidth &fWidth) |
DOMElement * | makeDataset (DOMElement *fRoot, const std::string &fVersion) |
DOMElement * | makeElement (DOMElement *fRoot) |
DOMElement * | makeElementDataset (DOMElement *fElement, int fXMLId, DetId fDetId, const std::string &fVersion, const std::string &fKind, unsigned long fRun) |
DOMElement * | makeElementIOV (DOMElement *fElement, unsigned long long fIovBegin, unsigned long long fIovEnd=0) |
DOMElement * | makeElementTag (DOMElement *fElement, const std::string &fTagName, const std::string &fDetectorName, const std::string &fComment="Automatically created by HcalDbXml") |
DOMElement * | makeHeader (DOMElement *fRoot, const std::string &fExtensionName, unsigned long fRun) |
DOMElement * | makeMapDataset (DOMElement *fIov, int fXMLId) |
DOMElement * | makeMapIOV (DOMElement *fTag) |
DOMElement * | makeMaps (DOMElement *fRoot) |
DOMElement * | makeMapTag (DOMElement *fMap) |
DOMElement * | makeRun (DOMElement *fHeader, unsigned long fRun) |
DOMElement * | makeType (DOMElement *fHeader, const std::string &fExtensionName) |
template<class T > | |
DOMElement * | newElement (DOMElement *fParent, const T &fName) |
template<class T > | |
DOMElement * | newValue (DOMElement *fParent, const std::string &fName, const T &fValue) |
DOMElement * | root () |
void | streamOut (std::ostream &fOut) |
XMLDocument () | |
Private Attributes | |
DOMDocument * | mDoc |
DOMImplementation * | mDom |
Definition at line 60 of file HcalDbXml.cc.
XMLDocument::XMLDocument | ( | ) |
Definition at line 114 of file HcalDbXml.cc.
References mDoc, mDom, and cms::concurrency::xercesInitialize().
void XMLDocument::addAttribute | ( | DOMElement * | fElement, |
const std::string & | fName, | ||
const T & | fValue | ||
) |
Definition at line 138 of file HcalDbXml.cc.
References MainPageGenerator::fName.
Referenced by makeElementDataset(), makeElementIOV(), makeElementTag(), makeMapDataset(), makeMapIOV(), and makeMapTag().
void XMLDocument::addData | ( | DOMElement * | fData, |
const HcalGain & | fItem | ||
) |
void XMLDocument::addData | ( | DOMElement * | fData, |
const HcalGainWidth & | fItem | ||
) |
void XMLDocument::addData | ( | DOMElement * | fData, |
const HcalPedestal & | fItem | ||
) |
void XMLDocument::addData | ( | DOMElement * | fData, |
const HcalPedestalWidth & | fItem | ||
) |
Definition at line 262 of file HcalDbXml.cc.
References HcalPedestalWidth::getSigma(), and newValue().
void XMLDocument::addData | ( | DOMElement * | fData, |
const HcalRawGain & | fItem | ||
) |
Definition at line 283 of file HcalDbXml.cc.
References HcalRawGain::getError(), HcalRawGain::getValue(), HcalRawGain::getVoltage(), newValue(), and HcalRawGain::strStatus().
const DOMDocument * XMLDocument::document | ( | ) |
DOMElement * XMLDocument::makeChId | ( | DOMElement * | fDataset, |
DetId | fId | ||
) |
Definition at line 171 of file HcalDbXml.cc.
References funct::abs(), PVValHelper::eta, newElement(), newValue(), writedatasetfile::parser, and DetId::rawId().
Referenced by makeElementDataset().
DOMElement * XMLDocument::makeData | ( | DOMElement * | fDataset | ) |
DOMElement * XMLDocument::makeData | ( | DOMElement * | fDataset, |
const HcalPedestal & | fPed, | ||
const HcalPedestalWidth & | fWidth | ||
) |
Definition at line 297 of file HcalDbXml.cc.
References data, HcalPedestalWidth::getSigma(), HcalPedestal::getValue(), newElement(), and newValue().
DOMElement * XMLDocument::makeDataset | ( | DOMElement * | fRoot, |
const std::string & | fVersion | ||
) |
Definition at line 165 of file HcalDbXml.cc.
References writedatasetfile::dataset, newElement(), and newValue().
DOMElement * XMLDocument::makeElement | ( | DOMElement * | fRoot | ) |
Definition at line 225 of file HcalDbXml.cc.
References newElement().
DOMElement * XMLDocument::makeElementDataset | ( | DOMElement * | fElement, |
int | fXMLId, | ||
DetId | fDetId, | ||
const std::string & | fVersion, | ||
const std::string & | fKind, | ||
unsigned long | fRun | ||
) |
Definition at line 185 of file HcalDbXml.cc.
References addAttribute(), writedatasetfile::dataset, makeChId(), makeRun(), newElement(), and newValue().
DOMElement * XMLDocument::makeElementIOV | ( | DOMElement * | fElement, |
unsigned long long | fIovBegin, | ||
unsigned long long | fIovEnd = 0 |
||
) |
Definition at line 200 of file HcalDbXml.cc.
References addAttribute(), newElement(), and newValue().
DOMElement * XMLDocument::makeElementTag | ( | DOMElement * | fElement, |
const std::string & | fTagName, | ||
const std::string & | fDetectorName, | ||
const std::string & | fComment = "Automatically created by HcalDbXml" |
||
) |
Definition at line 212 of file HcalDbXml.cc.
References addAttribute(), newElement(), newValue(), and GlobalPosition_Frontier_DevDB_cff::tag.
DOMElement * XMLDocument::makeHeader | ( | DOMElement * | fRoot, |
const std::string & | fExtensionName, | ||
unsigned long | fRun | ||
) |
Definition at line 144 of file HcalDbXml.cc.
References RecoTauValidation_cfi::header, makeRun(), makeType(), and newElement().
DOMElement * XMLDocument::makeMapDataset | ( | DOMElement * | fIov, |
int | fXMLId | ||
) |
DOMElement * XMLDocument::makeMapIOV | ( | DOMElement * | fTag | ) |
DOMElement * XMLDocument::makeMaps | ( | DOMElement * | fRoot | ) |
Definition at line 230 of file HcalDbXml.cc.
References genParticles_cff::map, and newElement().
DOMElement * XMLDocument::makeMapTag | ( | DOMElement * | fMap | ) |
Definition at line 235 of file HcalDbXml.cc.
References addAttribute(), newElement(), and GlobalPosition_Frontier_DevDB_cff::tag.
DOMElement * XMLDocument::makeRun | ( | DOMElement * | fHeader, |
unsigned long | fRun | ||
) |
Definition at line 158 of file HcalDbXml.cc.
References newElement(), newValue(), and writedatasetfile::run.
Referenced by makeElementDataset(), and makeHeader().
DOMElement * XMLDocument::makeType | ( | DOMElement * | fHeader, |
const std::string & | fExtensionName | ||
) |
Definition at line 151 of file HcalDbXml.cc.
References newElement(), and newValue().
Referenced by makeHeader().
DOMElement * XMLDocument::newElement | ( | DOMElement * | fParent, |
const T & | fName | ||
) |
Definition at line 123 of file HcalDbXml.cc.
References MainPageGenerator::fName, and mDoc.
Referenced by makeChId(), makeData(), makeDataset(), makeElement(), makeElementDataset(), makeElementIOV(), makeElementTag(), makeHeader(), makeMapDataset(), makeMapIOV(), makeMaps(), makeMapTag(), makeRun(), makeType(), and newValue().
DOMElement * XMLDocument::newValue | ( | DOMElement * | fParent, |
const std::string & | fName, | ||
const T & | fValue | ||
) |
Definition at line 130 of file HcalDbXml.cc.
References MainPageGenerator::fName, mDoc, newElement(), and runonSM::text.
Referenced by addData(), makeChId(), makeData(), makeDataset(), makeElementDataset(), makeElementIOV(), makeElementTag(), makeRun(), and makeType().
DOMElement * XMLDocument::root | ( | ) |
void XMLDocument::streamOut | ( | std::ostream & | fOut | ) |
Definition at line 320 of file HcalDbXml.cc.
|
private |
Definition at line 111 of file HcalDbXml.cc.
Referenced by document(), newElement(), newValue(), root(), streamOut(), and XMLDocument().
|
private |
Definition at line 110 of file HcalDbXml.cc.
Referenced by streamOut(), and XMLDocument().