#include "Validation/RecoTau/plugins/dqmAuxFunctions.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include <TH1.h>
#include <iostream>
Go to the source code of this file.
Functions | |
void | dqmCopyRecursively (DQMStore &dqmStore, const std::string &inputDirectory, const std::string &outputDirectory, double scaleFactor, int mode, bool rmInputDirectory) |
std::string | dqmDirectoryName (const std::string &directory) |
void | dqmRegisterHistogram (DQMStore &dqmStore, TH1 *histogram, const std::string &name) |
std::string | dqmSubDirectoryName_merged (const std::string &directory, const std::string &subdirectory) |
std::string | format_vstring (const std::vector< std::string > &vs) |
std::string | replace_string (const std::string &src, const std::string &keyword, const std::string ¶meter, unsigned minReplacements, unsigned maxReplacements, int &errorFlag) |
void | separateHistogramFromDirectoryName (const std::string &histogramAndDirectoryName, std::string &histogramName, std::string &directoryName) |
void dqmCopyRecursively | ( | DQMStore & | dqmStore, |
const std::string & | inputDirectory, | ||
const std::string & | outputDirectory, | ||
double | scaleFactor, | ||
int | mode, | ||
bool | rmInputDirectory | ||
) |
Definition at line 107 of file dqmAuxFunctions.cc.
References mps_setup::append, clone(), TrackerOfflineValidation_Dqm_cff::dirName, dqmCopyRecursively(), dqmDirectoryName(), dqmRegisterHistogram(), dqmSubDirectoryName_merged(), DQMStore::get(), DQMStore::getMEs(), DQMStore::getSubdirs(), MonitorElement::getTH1(), DQMStore::rmdir(), JetEnergyShift_cfi::scaleFactor, DQMStore::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dqmCopyRecursively(), TauDQMFileLoader::endRun(), and readCfgParameter().
std::string dqmDirectoryName | ( | const std::string & | directory | ) |
Definition at line 55 of file dqmAuxFunctions.cc.
References createBeamHaloJobs::directory, TrackerOfflineValidation_Dqm_cff::dirName, dqmSeparator, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dqmCopyRecursively(), and readCfgParameter().
void dqmRegisterHistogram | ( | DQMStore & | dqmStore, |
TH1 * | histogram, | ||
const std::string & | name | ||
) |
Definition at line 78 of file dqmAuxFunctions.cc.
References DQMStore::book1D(), DQMStore::book1S(), DQMStore::book2D(), DQMStore::book2S(), DQMStore::book3D(), DQMStore::bookProfile(), DQMStore::bookProfile2D(), and h.
Referenced by dqmCopyRecursively().
std::string dqmSubDirectoryName_merged | ( | const std::string & | directory, |
const std::string & | subdirectory | ||
) |
Definition at line 64 of file dqmAuxFunctions.cc.
References dqmSeparator, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dqmCopyRecursively(), TauDQMFileLoader::endRun(), and readCfgParameter().
std::string format_vstring | ( | const std::vector< std::string > & | vs | ) |
Definition at line 34 of file dqmAuxFunctions.cc.
References edm::numEntries().
Referenced by PATJetCorrExtractor::operator()(), TauDQMFileLoader::cfgEntryFileSet::print(), TauDQMHistPlotter::cfgEntryLabel::print(), and TauDQMHistPlotter::cfgEntryDrawJob::print().
std::string replace_string | ( | const std::string & | src, |
const std::string & | keyword, | ||
const std::string & | parameter, | ||
unsigned | minReplacements, | ||
unsigned | maxReplacements, | ||
int & | errorFlag | ||
) |
Definition at line 11 of file dqmAuxFunctions.cc.
References ValidateTausOnQCD_cff::parameter, TrackRefitter_38T_cff::src, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TauDQMHistPlotter::endRun(), TauDQMHistEffProducer::TauDQMHistEffProducer(), and TauDQMHistPlotter::TauDQMHistPlotter().
void separateHistogramFromDirectoryName | ( | const std::string & | histogramAndDirectoryName, |
std::string & | histogramName, | ||
std::string & | directoryName | ||
) |
Definition at line 195 of file dqmAuxFunctions.cc.
References dqmRootDirectory, dqmSeparator, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TauDQMHistEffProducer::dqmEndJob().