#include <EcalSRCondTools.h>
|
virtual void | analyze (const edm::Event &evt, const edm::EventSetup &es) |
|
| EcalSRCondTools (const edm::ParameterSet &) |
|
| ~EcalSRCondTools () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
|
static std::string | tokenize (const std::string &s, const std::string &delim, int &pos) |
|
static std::string | trim (std::string s) |
|
Definition at line 14 of file EcalSRCondTools.h.
EcalSRCondTools::~EcalSRCondTools |
( |
| ) |
|
Converts CMSSW python file selective readout setting ("parameter set") into a condition database object. Configuration from parameter set covers only part of the config, mainly the configuration needed for SR emulation in the MC. The parameters not supported by python configuration are left untouched in the sr object.
- Parameters
-
sr | [in] ECAL selective readout setting object to set |
ps | CMSSW parameter set containing the SR parameters to set |
Definition at line 156 of file EcalSRCondTools.cc.
void EcalSRCondTools::importSrpConfigFile |
( |
EcalSRSettings & |
sr, |
|
|
std::istream & |
f, |
|
|
bool |
debug = false |
|
) |
| |
|
static |
Imports an SRP configuration file (stored in database "CLOB") into a Selective readout setting object.
- Parameters
-
sr | [in] ECAL selective readout setting object to set |
f | configuration file stream. A stringstream can be used if the configuration is available as an stl string of a c-string: stringstream buf; buf << s; |
debug | verbosity flag. If true, imported parameter are displayed on stdout. |
Definition at line 194 of file EcalSRCondTools.cc.
double EcalSRCondTools::normalizeWeights |
( |
int |
hwWeight | ) |
|
|
static |
convert hardware weights (interger weights) into normalized weights. The former reprensentation is used in DCC firmware and in online databaser, while the later is used in offline software.
Definition at line 404 of file EcalSRCondTools.cc.
string EcalSRCondTools::tokenize |
( |
const std::string & |
s, |
|
|
const std::string & |
delim, |
|
|
int & |
pos |
|
) |
| |
|
staticprivate |
Help function to tokenize a string
- Parameters
-
s | string to parse token delimiters internal string position pointer. Must be set to zero before the first call |
Definition at line 411 of file EcalSRCondTools.cc.
std::string EcalSRCondTools::trim |
( |
std::string |
s | ) |
|
|
staticprivate |
Help function to trim spaces at beginning and end of a string
- Parameters
-
Definition at line 424 of file EcalSRCondTools.cc.