#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 30 of file MiscalibReaderFromXML.h.
MiscalibReaderFromXML::MiscalibReaderFromXML | ( | CaloMiscalibMap & | caloMap | ) |
Definition at line 25 of file MiscalibReaderXML.cc.
References _toString(), gather_cfg::cout, alignCSCRings::e, and s_numberOfInstances.
|
inlinevirtual |
Definition at line 34 of file MiscalibReaderFromXML.h.
double MiscalibReaderFromXML::getFloatAttribute | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute, |
const std::string & | attribute_name | ||
) |
Definition at line 68 of file MiscalibReaderXML.cc.
References gather_cfg::cout, and MiscalibReaderFromXMLDomUtils::getFloatAttribute().
Referenced by getScalingFactor().
int MiscalibReaderFromXML::getIntAttribute | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute, |
const std::string & | attribute_name | ||
) |
Definition at line 50 of file MiscalibReaderXML.cc.
References gather_cfg::cout, and MiscalibReaderFromXMLDomUtils::getIntAttribute().
Referenced by MiscalibReaderFromXMLEcalEndcap::parseCellEntry(), MiscalibReaderFromXMLHcal::parseCellEntry(), and MiscalibReaderFromXMLEcalBarrel::parseCellEntry().
double MiscalibReaderFromXML::getScalingFactor | ( | XERCES_CPP_NAMESPACE::DOMNamedNodeMap * | attribute | ) |
Definition at line 61 of file MiscalibReaderXML.cc.
References getFloatAttribute().
Referenced by parseXMLMiscalibFile().
|
pure virtual |
Implemented in MiscalibReaderFromXMLEcalBarrel, MiscalibReaderFromXMLHcal, and MiscalibReaderFromXMLEcalEndcap.
Referenced by parseXMLMiscalibFile().
bool MiscalibReaderFromXML::parseXMLMiscalibFile | ( | std::string | configFile | ) |
Get ME name
Definition at line 79 of file MiscalibReaderXML.cc.
References _toDOMS(), CaloMiscalibMap::addCell(), asciidump::attributes, caloMap_, prof2calltree::count, gather_cfg::cout, asciidump::doc, getScalingFactor(), i, parseCellEntry(), and geometryXMLtoCSV::parser.
Referenced by InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), HcalRecHitRecalib::HcalRecHitRecalib(), HcalRecHitsMaker::init(), CaloMiscalibToolsMC::produce(), and CaloMiscalibTools::produce().
|
private |
Definition at line 45 of file MiscalibReaderFromXML.h.
Referenced by parseXMLMiscalibFile().
|
staticprivate |
Definition at line 44 of file MiscalibReaderFromXML.h.
Referenced by MiscalibReaderFromXML().