#include <vector>
#include <string>
#include <cstdio>
#include <sstream>
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "DataFormats/HcalDetId/interface/HcalElectronicsId.h"
#include "DataFormats/HcalDetId/interface/HcalDcsDetId.h"
#include "CalibFormats/HcalObjects/interface/HcalText2DetIdConverter.h"
#include "CondFormats/HcalObjects/interface/AllObjects.h"
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
Go to the source code of this file.
Functions | |
template<class T > | |
bool | dumpHcalMatrixObject (std::ostream &fOutput, const T &fObject) |
template<class T > | |
bool | dumpHcalObject (std::ostream &fOutput, const T &fObject) |
template<class T > | |
bool | dumpHcalSingleFloatObject (std::ostream &fOutput, const T &fObject) |
template<class T > | |
bool | dumpHcalSingleIntObject (std::ostream &fOutput, const T &fObject) |
template<class T > | |
bool | from_string (T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &)) |
template<class T , class S > | |
bool | getHcalMatrixObject (std::istream &fInput, T *fObject, S *fCondObject) |
template<class T , class S > | |
bool | getHcalObject (std::istream &fInput, T *fObject, S *fCondObject) |
template<class T , class S > | |
bool | getHcalSingleFloatObject (std::istream &fInput, T *fObject, S *fCondObject) |
template<class T , class S > | |
bool | getHcalSingleIntObject (std::istream &fInput, T *fObject, S *fCondObject) |
std::vector< std::string > | splitString (const std::string &fLine) |
std::vector< double > | splitStringToDoubleByComma (const std::string &fLine) |
std::vector< float > | splitStringToFloatByComma (const std::string &fLine) |
std::vector< unsigned int > | splitStringToIntByComma (const std::string &fLine) |
bool dumpHcalMatrixObject | ( | std::ostream & | fOutput, |
const T & | fObject | ||
) |
Definition at line 327 of file HcalDbASCIIIO.cc.
References HcalCalibrationQIEData::addCoder(), HcalQIEData::addCoder(), HcalDcsValues::addValue(), HcalCondObjectContainer< Item >::addValues(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), HcalFrontEndMap::allDetIds(), HcalElectronicsMap::allElectronicsId(), HcalDcsMap::beginById(), stringResolutionProvider_cfi::bin, HcalMCParam::binOfMaximum(), HcalRecoParam::correctForLeadingEdge(), HcalRecoParam::correctForPhaseContainment(), HcalRecoParam::correctForTimeslew(), HcalRecoParam::correctionPhaseNS(), HcalRecoParam::correctTiming(), HcalElectronicsId::crateId(), HcalElectronicsId::dccid(), HcalDcsDetId::DcsTypeFromString(), HcalDcsDetId::DCSUNKNOWN, TauDecayModes::dec, dumpHcalObject(), dumpHcalSingleFloatObject(), dumpHcalSingleIntObject(), CastorDbASCIIIO::dumpId(), HcalDbASCIIIO::dumpId(), HcalDbASCIIIO::dumpIdShort(), HcalDbASCIIIO::dumpObject(), runTauDisplay::eid, HcalDcsMap::endById(), HcalElectronicsId::fiberChanId(), HcalElectronicsId::fiberIndex(), spr::find(), HcalRecoParam::firstAuxTS(), HcalRecoParam::firstSample(), HcalCalibrationWidths::gain(), HcalTPParameters::getADCThresholdHF(), HcalL1TriggerObjects::getAlgoString(), HcalCalibrationsSet::getAllChannels(), HcalCalibrationWidthsSet::getAllChannels(), HcalCondObjectContainer< Item >::getAllChannels(), HcalDcsValues::getAllSubdetValues(), HcalTPChannelParameter::getauxi1(), HcalSiPMParameter::getauxi1(), HcalTPParameters::getAuxi1(), HcalSiPMCharacteristics::getAuxi1(), HcalTPChannelParameter::getauxi2(), HcalSiPMParameter::getauxi2(), HcalTPParameters::getAuxi2(), HcalSiPMCharacteristics::getAuxi2(), HcalCalibrationsSet::getCalibrations(), HcalCalibrationWidthsSet::getCalibrationWidths(), HcalCalibrationQIEData::getCoder(), HcalQIEData::getCoder(), HcalSiPMCharacteristics::getCrossTalk(), HcalSiPMParameter::getDarkCurrent(), HcalSiPMParameter::getFCByPE(), HcalTPChannelParameter::getFGBitInfo(), HcalTPParameters::getFGVersionHBHE(), HcalText2DetIdConverter::getField1(), HcalText2DetIdConverter::getField2(), HcalText2DetIdConverter::getField3(), HcalL1TriggerObject::getFlag(), HcalText2DetIdConverter::getFlavor(), HcalDcsMap::const_iterator::getHcalDcsDetId(), HcalDcsMap::const_iterator::getHcalDetId(), getHcalObject(), getHcalSingleFloatObject(), getHcalSingleIntObject(), HcalTPParameters::getHFTriggerInfo(), HcalText2DetIdConverter::getId(), getId(), HcalDbASCIIIO::getId(), HcalLutMetadatum::getLutGranularity(), HcalTPChannelParameter::getMask(), HcalLutMetadata::getNominalGain(), HcalSiPMCharacteristics::getNonLinearities(), HcalDbASCIIIO::getObject(), HcalLutMetadatum::getOutputLutThreshold(), HcalL1TriggerObject::getPedestal(), HcalSiPMCharacteristics::getPixels(), HcalLutMetadatum::getRCalib(), HcalLutMetadata::getRctLsb(), HcalL1TriggerObject::getRespGain(), HcalPedestalWidth::getSigma(), HcalL1TriggerObjects::getTagString(), HcalTPParameters::getTDCMaskHF(), HcalSiPMParameter::getType(), HcalSiPMCharacteristics::getType(), HcalSiPMCharacteristics::getTypes(), HcalChannelStatus::getValue(), HcalPedestal::getValues(), HcalCondObjectContainer< Item >::getValues(), HcalCalibration, HcalDcsBarrel, HcalDcsEndcap, HcalDcsForward, HcalDcsOuter, HcalDcsValues::HcalHB, HcalDcsValues::HcalHF, HcalOtherEmpty, HcalFlagHFDigiTimeParam::HFdigiflagCoefficients(), HcalFlagHFDigiTimeParam::HFdigiflagExpectedPeak(), HcalFlagHFDigiTimeParam::HFdigiflagFirstSample(), HcalFlagHFDigiTimeParam::HFdigiflagMinEThreshold(), HcalFlagHFDigiTimeParam::HFdigiflagSamplesToAdd(), HcalElectronicsId::htrSlot(), HcalElectronicsId::htrTopBottom(), mps_fire::i, hcalTTPDigis_cfi::id, diffTreeTool::index, HcalPedestalWidths::isADC(), HcalPedestals::isADC(), HcalText2DetIdConverter::isHcalCalibDetId(), HcalText2DetIdConverter::isHcalDetId(), HcalText2DetIdConverter::isHcalTrigTowerDetId(), HcalGenericDetId::isHcalZDCDetId(), HcalText2DetIdConverter::isHcalZDCDetId(), HcalElectronicsId::isTriggerChainId(), HcalElectronicsId::isUTCAid(), HcalElectronicsId::isVMEid(), gen::k, HcalRecoParam::leakCorrectionID(), HcalTPParameters::loadObject(), HcalSiPMCharacteristics::loadObject(), HcalFrontEndMap::loadObject(), HcalElectronicsMap::lookup(), HcalFrontEndMap::lookupRBX(), HcalFrontEndMap::lookupRM(), HcalElectronicsMap::lookupTrigger(), funct::m, HcalElectronicsMap::mapEId2chId(), HcalElectronicsMap::mapEId2tId(), HcalDcsMap::mapGeomId2DcsId(), RecoTauDiscriminantConfiguration::mask, HcalCalibrationQIECoder::minCharges(), HcalTimingParam::nhits(), HcalRecoParam::noiseFlaggingID(), HcalLongRecoParam::noiseTS(), NULL, MuonAssociatorByHits_cfi::obj, HcalQIECoder::offset(), HcalMCParam::packingScheme(), HcalRecoParam::packingScheme(), RecoTauPiZeroBuilderPlugins_cfi::par0, RecoTauPiZeroBuilderPlugins_cfi::par1, HcalRecoParam::param1(), HcalMCParam::param1(), HcalRecoParam::param2(), HcalCalibrationWidths::pedestal(), HcalCalibrations::pedestal(), HcalTimingParam::phase(), HcalRecoParam::pileupCleaningID(), Digi_Phase1_R30F12_HCal_cff::pixels, HcalRecoParam::pulseShapeID(), DetId::rawId(), HcalElectronicsId::readoutVMECrateId(), HcalCalibrations::respcorrgain(), HcalDcsDetId::ring(), relativeConstraints::ring, submit::rm, HcalTimingParam::rms(), HcalRecoParam::samplesToAdd(), HcalL1TriggerObjects::setAlgoString(), HcalElectronicsId::setHTR(), HcalCalibrationQIECoder::setMinCharges(), HcalLutMetadata::setNominalGain(), HcalQIECoder::setOffset(), HcalLutMetadata::setRctLsb(), HcalPedestalWidth::setSigma(), HcalQIECoder::setSlope(), HcalL1TriggerObjects::setTagString(), HcalPedestalWidths::setUnitADC(), HcalPedestals::setUnitADC(), HcalMCParam::signalShape(), HcalLongRecoParam::signalTS(), findQualityFiles::size, slb(), HcalElectronicsId::slbChannelIndex(), HcalElectronicsId::slbSiteNumber(), HcalDcsDetId::slice(), HcalQIECoder::slope(), HcalElectronicsId::slot(), HcalCalibrationQIEData::sort(), HcalQIEData::sort(), HcalSiPMCharacteristics::sort(), HcalFrontEndMap::sort(), HcalElectronicsMap::sort(), HcalDcsMap::sort(), HcalDcsValues::sortAll(), HcalRecoParam::specialCaseID(), HcalElectronicsId::spigot(), splitString(), splitStringToDoubleByComma(), splitStringToIntByComma(), AlCaHLTBitMon_QueryRunRegistry::string, HcalDcsDetId::subchannel(), HcalMCParam::syncPhase(), HcalMCParam::timePhase(), HcalRecoParam::timeslewCorrectionID(), HcalMCParam::timeSmearing(), HcalTrigTowerDetId::Undefined, HcalDetId::Undefined, pileupCalc::upper, HcalRecoParam::useLeakCorrection(), heppy_batch::val, create_public_pileup_plots::vals, MuonErrorMatrixValues_cff::values, jetIDSelector_cfi::version, and x.
bool dumpHcalObject | ( | std::ostream & | fOutput, |
const T & | fObject | ||
) |
Definition at line 192 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::dumpId(), and MuonErrorMatrixValues_cff::values.
Referenced by dumpHcalMatrixObject().
bool dumpHcalSingleFloatObject | ( | std::ostream & | fOutput, |
const T & | fObject | ||
) |
Definition at line 239 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::dumpId().
Referenced by dumpHcalMatrixObject().
bool dumpHcalSingleIntObject | ( | std::ostream & | fOutput, |
const T & | fObject | ||
) |
Definition at line 284 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::dumpId().
Referenced by dumpHcalMatrixObject().
bool from_string | ( | T & | t, |
const std::string & | s, | ||
std::ios_base &(*)(std::ios_base &) | f | ||
) |
Definition at line 158 of file HcalDbASCIIIO.cc.
References f, cmsPerfPublish::fail(), and lumiQTWidget::t.
bool getHcalMatrixObject | ( | std::istream & | fInput, |
T * | fObject, | ||
S * | fCondObject | ||
) |
Definition at line 303 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::getId(), mps_fire::i, DetId::rawId(), S(), splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.
bool getHcalObject | ( | std::istream & | fInput, |
T * | fObject, | ||
S * | fCondObject | ||
) |
Definition at line 164 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::getId(), S(), splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dumpHcalMatrixObject().
bool getHcalSingleFloatObject | ( | std::istream & | fInput, |
T * | fObject, | ||
S * | fCondObject | ||
) |
Definition at line 213 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::getId(), S(), splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dumpHcalMatrixObject().
bool getHcalSingleIntObject | ( | std::istream & | fInput, |
T * | fObject, | ||
S * | fCondObject | ||
) |
Definition at line 258 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::getId(), S(), splitString(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dumpHcalMatrixObject().
std::vector<std::string> splitString | ( | const std::string & | fLine | ) |
Definition at line 53 of file HcalDbASCIIIO.cc.
References relativeConstraints::empty, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EgHLTOfflineClient::createLooseTightTrigEff(), dumpHcalMatrixObject(), ElectronEnergyCalibrator::ElectronEnergyCalibrator(), getHcalMatrixObject(), getHcalObject(), getHcalSingleFloatObject(), getHcalSingleIntObject(), HcalQIEManager::getHfQieTable(), HcalQIEManager::getQIETableFromFile(), egHLT::MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts(), egHLT::MonElemFuncs::initTightLooseTrigHists(), and egHLT::MonElemFuncs::initTightLooseTrigHistsTrigCuts().
std::vector<double> splitStringToDoubleByComma | ( | const std::string & | fLine | ) |
Definition at line 113 of file HcalDbASCIIIO.cc.
References HcalDbASCIIIO::dumpId(), HcalDbASCIIIO::dumpIdShort(), relativeConstraints::empty, HcalText2DetIdConverter::getField1(), HcalText2DetIdConverter::getField2(), HcalText2DetIdConverter::getField3(), HcalText2DetIdConverter::getFlavor(), HcalText2DetIdConverter::getId(), HcalDbASCIIIO::getId(), mps_fire::i, mps_monitormerge::items, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dumpHcalMatrixObject().
std::vector<float> splitStringToFloatByComma | ( | const std::string & | fLine | ) |
Definition at line 93 of file HcalDbASCIIIO.cc.
References relativeConstraints::empty, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
std::vector<unsigned int> splitStringToIntByComma | ( | const std::string & | fLine | ) |
Definition at line 73 of file HcalDbASCIIIO.cc.
References relativeConstraints::empty, mps_fire::i, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dumpHcalMatrixObject().