CMS 3D CMS Logo

dqmAuxFunctions.h
Go to the documentation of this file.
1 #ifndef ElectroWeakAnalysis_EWKTau_dqmAuxFunctions_h
2 #define ElectroWeakAnalysis_EWKTau_dqmAuxFunctions_h
3 
5 
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
12 const std::string parKeyword = "#PAR#";
13 const std::string plotKeyword = "#PLOT#";
14 const std::string rangeKeyword = "#RANGE";
15 const std::string processDirKeyword = "#PROCESSDIR#";
16 
17 std::string replace_string(const std::string&, const std::string&, const std::string&, unsigned, unsigned, int&);
18 
19 std::string format_vstring(const std::vector<std::string>& vs);
20 
21 template <class T>
22 void readCfgParameter(const edm::ParameterSet& cfgParSet, std::map<std::string, T>& def) {
23  std::vector<std::string> cfgParNames = cfgParSet.getParameterNamesForType<edm::ParameterSet>();
24  for (std::vector<std::string>::const_iterator cfgParName = cfgParNames.begin(); cfgParName != cfgParNames.end();
25  ++cfgParName) {
26  edm::ParameterSet cfgParDef = cfgParSet.getParameter<edm::ParameterSet>(*cfgParName);
27 
28  def.insert(std::pair<std::string, T>(*cfgParName, T(*cfgParName, cfgParDef)));
29  }
30 }
31 
34 void dqmCopyRecursively(dqm::legacy::DQMStore&, const std::string&, const std::string&, double, int, bool);
35 
37 //const std::string dqmRootDirectory = std::string(dqmSeparator).append("DQMData").append(dqmSeparator);
39 
41 
42 #endif
dqmSubDirectoryName_merged
std::string dqmSubDirectoryName_merged(const std::string &, const std::string &)
Definition: dqmAuxFunctions.cc:66
DQMStore.h
parKeyword
const std::string parKeyword
Definition: dqmAuxFunctions.h:12
rangeKeyword
const std::string rangeKeyword
Definition: dqmAuxFunctions.h:14
dqm::legacy::DQMStore
Definition: DQMStore.h:728
dqmRootDirectory
const std::string dqmRootDirectory
Definition: dqmAuxFunctions.h:38
dqmDirectoryName
std::string dqmDirectoryName(const std::string &)
Definition: dqmAuxFunctions.cc:57
processDirKeyword
const std::string processDirKeyword
Definition: dqmAuxFunctions.h:15
dqmSeparator
const std::string dqmSeparator
Definition: dqmAuxFunctions.h:36
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ParameterSet::getParameterNamesForType
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:179
separateHistogramFromDirectoryName
void separateHistogramFromDirectoryName(const std::string &, std::string &, std::string &)
Definition: dqmAuxFunctions.cc:191
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dqmCopyRecursively
void dqmCopyRecursively(dqm::legacy::DQMStore &, const std::string &, const std::string &, double, int, bool)
Definition: dqmAuxFunctions.cc:109
plotKeyword
const std::string plotKeyword
Definition: dqmAuxFunctions.h:13
format_vstring
std::string format_vstring(const std::vector< std::string > &vs)
Definition: dqmAuxFunctions.cc:36
T
long double T
Definition: Basic3DVectorLD.h:48
readCfgParameter
void readCfgParameter(const edm::ParameterSet &cfgParSet, std::map< std::string, T > &def)
Definition: dqmAuxFunctions.h:22
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
replace_string
std::string replace_string(const std::string &, const std::string &, const std::string &, unsigned, unsigned, int &)
Definition: dqmAuxFunctions.cc:11
spu::def
int def(FILE *, FILE *, int)
Definition: SherpackUtilities.cc:14
ParameterSet.h