CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
dqmAuxFunctions.h File Reference
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include <string>
#include <vector>
#include <map>

Go to the source code of this file.

Functions

void dqmCopyRecursively (DQMStore &, const std::string &, const std::string &, double, int, bool)
 
std::string dqmDirectoryName (const std::string &)
 
std::string dqmSubDirectoryName_merged (const std::string &, const std::string &)
 
std::string format_vstring (const std::vector< std::string > &vs)
 
template<class T >
void readCfgParameter (const edm::ParameterSet &cfgParSet, std::map< std::string, T > &def)
 
std::string replace_string (const std::string &, const std::string &, const std::string &, unsigned, unsigned, int &)
 
void separateHistogramFromDirectoryName (const std::string &, std::string &, std::string &)
 

Variables

const std::string dqmRootDirectory = ""
 
const std::string dqmSeparator = "/"
 
const std::string parKeyword = "#PAR#"
 
const std::string plotKeyword = "#PLOT#"
 
const std::string processDirKeyword = "#PROCESSDIR#"
 
const std::string rangeKeyword = "#RANGE"
 

Function Documentation

void dqmCopyRecursively ( DQMStore ,
const std::string &  ,
const std::string &  ,
double  ,
int  ,
bool   
)

Definition at line 107 of file dqmAuxFunctions.cc.

std::string dqmDirectoryName ( const std::string &  )

Definition at line 55 of file dqmAuxFunctions.cc.

std::string dqmSubDirectoryName_merged ( const std::string &  ,
const std::string &   
)

Definition at line 64 of file dqmAuxFunctions.cc.

std::string format_vstring ( const std::vector< std::string > &  vs)

Definition at line 34 of file dqmAuxFunctions.cc.

Referenced by PATJetCorrExtractor::operator()().

template<class T >
void readCfgParameter ( const edm::ParameterSet cfgParSet,
std::map< std::string, T > &  def 
)

Definition at line 22 of file dqmAuxFunctions.h.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), and edm::ParameterSet::insert().

23 {
24  std::vector<std::string> cfgParNames = cfgParSet.getParameterNamesForType<edm::ParameterSet>();
25  for ( std::vector<std::string>::const_iterator cfgParName = cfgParNames.begin();
26  cfgParName != cfgParNames.end(); ++cfgParName ) {
27  edm::ParameterSet cfgParDef = cfgParSet.getParameter<edm::ParameterSet>(*cfgParName);
28 
29  def.insert(std::pair<std::string, T>(*cfgParName, T(*cfgParName, cfgParDef)));
30  }
31 }
T getParameter(std::string const &) const
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:194
long double T
JetCorrectorParameters::Definitions def
Definition: classes.h:6
std::string replace_string ( const std::string &  ,
const std::string &  ,
const std::string &  ,
unsigned  ,
unsigned  ,
int &   
)

Definition at line 11 of file dqmAuxFunctions.cc.

void separateHistogramFromDirectoryName ( const std::string &  ,
std::string &  ,
std::string &   
)

Definition at line 195 of file dqmAuxFunctions.cc.

Variable Documentation

const std::string dqmRootDirectory = ""

Definition at line 39 of file dqmAuxFunctions.h.

const std::string dqmSeparator = "/"

Definition at line 37 of file dqmAuxFunctions.h.

const std::string parKeyword = "#PAR#"

Definition at line 12 of file dqmAuxFunctions.h.

const std::string plotKeyword = "#PLOT#"

Definition at line 13 of file dqmAuxFunctions.h.

const std::string processDirKeyword = "#PROCESSDIR#"

Definition at line 15 of file dqmAuxFunctions.h.

const std::string rangeKeyword = "#RANGE"

Definition at line 14 of file dqmAuxFunctions.h.