CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
edm::service::LoadAllDictionaries Class Reference

#include <LoadAllDictionaries.h>

Public Member Functions

 LoadAllDictionaries (const edm::ParameterSet &)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

 LoadAllDictionaries (const LoadAllDictionaries &)
 
const LoadAllDictionariesoperator= (const LoadAllDictionaries &)
 

Detailed Description

Definition at line 30 of file LoadAllDictionaries.h.

Constructor & Destructor Documentation

LoadAllDictionaries::LoadAllDictionaries ( const edm::ParameterSet iConfig)

Definition at line 34 of file LoadAllDictionaries.cc.

References edmplugin::PluginManager::categoryToInfos(), EcalCondDB::db, edmplugin::PluginCapabilities::get(), edmplugin::PluginManager::get(), edm::ParameterSet::getUntrackedParameter(), edmplugin::PluginCapabilities::load(), and AlCaHLTBitMon_QueryRunRegistry::string.

35 {
36  bool doLoad(iConfig.getUntrackedParameter<bool>("doLoad"));
37  if(doLoad) {
39 
41 
42  CatToInfos::const_iterator itFound = db->categoryToInfos().find("Capability");
43 
44  if(itFound == db->categoryToInfos().end()) {
45  return;
46  }
47  std::string lastClass;
48  const std::string mystring("edm::Wrapper");
49 
50  for (edmplugin::PluginManager::Infos::const_iterator itInfo = itFound->second.begin(),
51  itInfoEnd = itFound->second.end();
52  itInfo != itInfoEnd; ++itInfo)
53  {
54  if (lastClass == itInfo->name_) {
55  continue;
56  }
57 
58  lastClass = itInfo->name_;
59  if (lastClass.find(mystring) != std::string::npos) {
61  }
62  //NOTE: since we have the library already, we could be more efficient if we just load it ourselves
63  }
64  }
65 }
const CategoryToInfos & categoryToInfos() const
Definition: PluginManager.h:82
T getUntrackedParameter(std::string const &, T const &) const
tuple db
Definition: EcalCondDB.py:151
std::map< std::string, Infos > CategoryToInfos
Definition: PluginManager.h:54
static PluginCapabilities * get()
void load(const std::string &iName)
static PluginManager * get()
edm::service::LoadAllDictionaries::LoadAllDictionaries ( const LoadAllDictionaries )
private

Member Function Documentation

void LoadAllDictionaries::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 67 of file LoadAllDictionaries.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and edm::ConfigurationDescriptions::setComment().

67  {
69  desc.addUntracked<bool>("doLoad", true)->setComment("Only if 'true' do we load all dictionaries");
70  descriptions.add("LoadAllDictionaries", desc);
71  descriptions.setComment("This service allows you to force all known dictionaries to be loaded at the beginning of the job");
72 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const LoadAllDictionaries& edm::service::LoadAllDictionaries::operator= ( const LoadAllDictionaries )
private