#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <algorithm>
#include <string>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDetId/interface/HcalElectronicsId.h"
#include "Geometry/CaloTopology/interface/HcalTopology.h"
#include "CondCore/IOVService/interface/IOV.h"
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbHardcode.h"
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
#include "CondTools/Hcal/interface/HcalDbXml.h"
#include "CondTools/Hcal/interface/HcalDbTool.h"
#include "OnlineDB/HcalCondDB/interface/HcalDbOnline.h"
#include "CondFormats/HcalObjects/interface/HcalPedestals.h"
#include "CondFormats/HcalObjects/interface/HcalPedestalWidths.h"
#include "CondFormats/HcalObjects/interface/HcalGains.h"
#include "CondFormats/HcalObjects/interface/HcalGainWidths.h"
#include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
#include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
#include "CondFormats/HcalObjects/interface/HcalQIEData.h"
#include "CondFormats/HcalObjects/interface/HcalCalibrationQIEData.h"
#include "FWCore/MessageService/interface/MessageServicePresence.h"
Go to the source code of this file.
Classes | |
class | Args |
Typedefs | |
typedef std::map< IOVRun, std::string > | IOVCollection |
typedef HcalDbTool::IOVRun | IOVRun |
Functions | |
bool | asciiFile (const std::string fParam) |
template<class T > | |
bool | copyObject (T *fObject, const std::string &fInput, const std::string &fInputTag, HcalDbTool::IOVRun fInputRun, const std::string &fOutput, const std::string &fOutputTag, HcalDbTool::IOVRun fOutputRun, bool fAppend, unsigned long long fIovgmtbegin, unsigned long long fIovgmtend, unsigned fNread, unsigned fNwrite, unsigned fNtrace, bool fVerbose, const char *fInputCatalog, const char *fOutputCatalog, bool fXmlAuth) |
bool | dbFile (const std::string fParam) |
bool | defaultsFile (const std::string fParam) |
void | fillDefaults (HcalPedestals *&fPedestals) |
void | fillDefaults (HcalPedestalWidths *&fPedestals) |
void | fillDefaults (HcalGains *&fGains) |
void | fillDefaults (HcalGainWidths *&fGains) |
void | fillDefaults (HcalElectronicsMap *&fMap) |
void | fillDefaults (HcalQIEData *&fObject) |
void | fillDefaults (HcalCalibrationQIEData *&fObject) |
int | main (int argn, char *argv[]) |
bool | occiFile (const std::string fParam) |
bool | onlineFile (const std::string fParam) |
void | printHelp (const Args &args) |
template<class T > | |
std::vector< HcalDetId > | undefinedCells (const T &fData) |
bool | xmlFile (const std::string fParam) |
typedef std::map<IOVRun,std::string> IOVCollection |
Definition at line 43 of file hcalCalibrationsCopy.cc.
typedef HcalDbTool::IOVRun IOVRun |
Definition at line 42 of file hcalCalibrationsCopy.cc.
bool asciiFile | ( | const std::string | fParam | ) |
Definition at line 210 of file hcalCalibrationsCopy.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by copyObject().
bool copyObject | ( | T * | fObject, |
const std::string & | fInput, | ||
const std::string & | fInputTag, | ||
HcalDbTool::IOVRun | fInputRun, | ||
const std::string & | fOutput, | ||
const std::string & | fOutputTag, | ||
HcalDbTool::IOVRun | fOutputRun, | ||
bool | fAppend, | ||
unsigned long long | fIovgmtbegin, | ||
unsigned long long | fIovgmtend, | ||
unsigned | fNread, | ||
unsigned | fNwrite, | ||
unsigned | fNtrace, | ||
bool | fVerbose, | ||
const char * | fInputCatalog, | ||
const char * | fOutputCatalog, | ||
bool | fXmlAuth | ||
) |
Definition at line 232 of file hcalCalibrationsCopy.cc.
References asciiFile(), ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, dbFile(), defaultsFile(), HcalDbXml::dumpObject(), HcalDbASCIIIO::dumpObject(), fillDefaults(), plotBeamSpotDB::first, HcalDbOnline::getIOVs(), HcalDbASCIIIO::getObject(), HcalDbOnline::getObject(), i, o2o::iov, onlineFile(), mps_fire::result, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, FrontierCondition_GT_autoExpress_cfi::t0, and xmlFile().
Referenced by main().
bool dbFile | ( | const std::string | fParam | ) |
Definition at line 218 of file hcalCalibrationsCopy.cc.
Referenced by copyObject(), printRuns(), and printTags().
bool defaultsFile | ( | const std::string | fParam | ) |
Definition at line 206 of file hcalCalibrationsCopy.cc.
Referenced by copyObject().
void fillDefaults | ( | HcalPedestals *& | fPedestals | ) |
Definition at line 91 of file hcalCalibrationsCopy.cc.
References HcalPedestal::getValues(), HcalDbHardcode::makePedestal(), and undefinedCells().
Referenced by copyObject().
void fillDefaults | ( | HcalPedestalWidths *& | fPedestals | ) |
Definition at line 104 of file hcalCalibrationsCopy.cc.
References HcalDbHardcode::makePedestalWidth(), and undefinedCells().
void fillDefaults | ( | HcalGains *& | fGains | ) |
Definition at line 117 of file hcalCalibrationsCopy.cc.
References HcalGain::getValues(), HcalDbHardcode::makeGain(), and undefinedCells().
void fillDefaults | ( | HcalGainWidths *& | fGains | ) |
Definition at line 130 of file hcalCalibrationsCopy.cc.
References HcalGainWidth::getValues(), HcalDbHardcode::makeGainWidth(), and undefinedCells().
void fillDefaults | ( | HcalElectronicsMap *& | fMap | ) |
Definition at line 143 of file hcalCalibrationsCopy.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, and HcalElectronicsMap::sort().
void fillDefaults | ( | HcalQIEData *& | fObject | ) |
Definition at line 151 of file hcalCalibrationsCopy.cc.
References HcalQIEData::addCoder(), HLT_25ns10e33_v2_cff::depth, eta, HcalDbHardcode::makeQIECoder(), phi(), HcalQIEData::sort(), ecaldqm::topology(), and HcalTopology::valid().
void fillDefaults | ( | HcalCalibrationQIEData *& | fObject | ) |
Definition at line 173 of file hcalCalibrationsCopy.cc.
References HcalCalibrationQIEData::addCoder(), HLT_25ns10e33_v2_cff::depth, eta, HcalDbHardcode::makeCalibrationQIECoder(), phi(), HcalCalibrationQIEData::sort(), ecaldqm::topology(), and HcalTopology::valid().
int main | ( | int | argn, |
char * | argv[] | ||
) |
Definition at line 422 of file hcalCalibrationsCopy.cc.
References bitset_utilities::append(), createfilelist::args, Args::arguments(), copyObject(), Args::defineOption(), Args::defineParameter(), Args::getParameter(), input, beam_dqm_sourceclient-live_cfg::inputTag, Args::optionIsSet(), convertSQLitetoXML_cfg::output, Args::parse(), printHelp(), AlCaHLTBitMon_QueryRunRegistry::string, and GsfMatrixTools::trace().
bool occiFile | ( | const std::string | fParam | ) |
Definition at line 222 of file hcalCalibrationsCopy.cc.
bool onlineFile | ( | const std::string | fParam | ) |
Definition at line 227 of file hcalCalibrationsCopy.cc.
Referenced by copyObject(), printRuns(), and printTags().
void printHelp | ( | const Args & | args | ) |
Definition at line 195 of file hcalCalibrationsCopy.cc.
References Args::command(), gather_cfg::cout, and Args::printOptionsHelp().
Definition at line 68 of file hcalCalibrationsCopy.cc.
References HLT_25ns10e33_v2_cff::depth, eta, phi(), mps_fire::result, ecaldqm::topology(), and HcalTopology::valid().
Referenced by fillDefaults().
bool xmlFile | ( | const std::string | fParam | ) |
Definition at line 214 of file hcalCalibrationsCopy.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by copyObject(), MonitorElementsDb::MonitorElementsDb(), HcalDetDiagLaserMonitor::SaveRaddamData(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagPedestalMonitor::SaveReference(), and HcalDetDiagLaserMonitor::SaveReference().