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
const std::string processDirKeyword
int def(FILE *, FILE *, int)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void dqmCopyRecursively(dqm::legacy::DQMStore &, const std::string &, const std::string &, double, int, bool)
std::string dqmSubDirectoryName_merged(const std::string &, const std::string &)
std::string format_vstring(const std::vector< std::string > &vs)
const std::string rangeKeyword
std::string dqmDirectoryName(const std::string &)
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:179
std::string replace_string(const std::string &, const std::string &, const std::string &, unsigned, unsigned, int &)
const std::string parKeyword
const std::string dqmSeparator
const std::string plotKeyword
const std::string dqmRootDirectory
void readCfgParameter(const edm::ParameterSet &cfgParSet, std::map< std::string, T > &def)
long double T
void separateHistogramFromDirectoryName(const std::string &, std::string &, std::string &)