#include <MiscalibReaderFromXML.h>
Public Member Functions | |
double | getFloatAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name) |
int | getIntAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name) |
double | getScalingFactor (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) |
MiscalibReaderFromXML (CaloMiscalibMap &) | |
virtual DetId | parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)=0 |
bool | parseXMLMiscalibFile (std::string configFile) |
virtual | ~MiscalibReaderFromXML () |
Private Attributes | |
CaloMiscalibMap & | caloMap_ |
Static Private Attributes | |
static int | s_numberOfInstances = 0 |
Parses the xml file to get miscalibration constants
Definition at line 26 of file MiscalibReaderFromXML.h.
MiscalibReaderFromXML::MiscalibReaderFromXML | ( | CaloMiscalibMap & | caloMap | ) |
Definition at line 24 of file MiscalibReaderXML.cc.
References _toString(), gather_cfg::cout, MillePedeFileConverter_cfg::e, s_numberOfInstances, and cms::concurrency::xercesInitialize().
|
inlinevirtual |
Definition at line 29 of file MiscalibReaderFromXML.h.
References getFloatAttribute(), getIntAttribute(), getScalingFactor(), parseCellEntry(), parseXMLMiscalibFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
double MiscalibReaderFromXML::getFloatAttribute | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute, |
const std::string & | attribute_name | ||
) |
Definition at line 58 of file MiscalibReaderXML.cc.
References gather_cfg::cout, and MiscalibReaderFromXMLDomUtils::getFloatAttribute().
Referenced by getScalingFactor(), and ~MiscalibReaderFromXML().
int MiscalibReaderFromXML::getIntAttribute | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute, |
const std::string & | attribute_name | ||
) |
Definition at line 41 of file MiscalibReaderXML.cc.
References gather_cfg::cout, and MiscalibReaderFromXMLDomUtils::getIntAttribute().
Referenced by MiscalibReaderFromXMLEcalBarrel::parseCellEntry(), MiscalibReaderFromXMLHcal::parseCellEntry(), MiscalibReaderFromXMLEcalEndcap::parseCellEntry(), and ~MiscalibReaderFromXML().
double MiscalibReaderFromXML::getScalingFactor | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute | ) |
Definition at line 52 of file MiscalibReaderXML.cc.
References getFloatAttribute().
Referenced by parseXMLMiscalibFile(), and ~MiscalibReaderFromXML().
|
pure virtual |
Implemented in MiscalibReaderFromXMLEcalBarrel, MiscalibReaderFromXMLEcalEndcap, and MiscalibReaderFromXMLHcal.
Referenced by parseXMLMiscalibFile(), and ~MiscalibReaderFromXML().
bool MiscalibReaderFromXML::parseXMLMiscalibFile | ( | std::string | configFile | ) |
Get ME name
Definition at line 69 of file MiscalibReaderXML.cc.
References _toDOMS(), CaloMiscalibMap::addCell(), caloMap_, KineDebug3::count(), gather_cfg::cout, common_cff::doc, getScalingFactor(), mps_fire::i, parseCellEntry(), and writedatasetfile::parser.
Referenced by HcalRecHitRecalib::beginRun(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), CaloMiscalibToolsMC::produce(), CaloMiscalibTools::produce(), and ~MiscalibReaderFromXML().
|
private |
Definition at line 40 of file MiscalibReaderFromXML.h.
Referenced by parseXMLMiscalibFile().
|
staticprivate |
Definition at line 39 of file MiscalibReaderFromXML.h.
Referenced by MiscalibReaderFromXML().