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 35 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.

36 {
37  bool doLoad(iConfig.getUntrackedParameter<bool>("doLoad"));
38  if(doLoad) {
39  ROOT::Cintex::Cintex::Enable();
40 
42 
44 
45  CatToInfos::const_iterator itFound = db->categoryToInfos().find("Capability");
46 
47  if(itFound == db->categoryToInfos().end()) {
48  return;
49  }
50  std::string lastClass;
51  const std::string mystring("edm::Wrapper");
52 
53  for (edmplugin::PluginManager::Infos::const_iterator itInfo = itFound->second.begin(),
54  itInfoEnd = itFound->second.end();
55  itInfo != itInfoEnd; ++itInfo)
56  {
57  if (lastClass == itInfo->name_) {
58  continue;
59  }
60 
61  lastClass = itInfo->name_;
62  if (lastClass.find(mystring) != std::string::npos) {
64  }
65  //NOTE: since we have the library already, we could be more efficient if we just load it ourselves
66  }
67  }
68 }
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 70 of file LoadAllDictionaries.cc.

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

70  {
72  desc.addUntracked<bool>("doLoad", true)->setComment("Only if 'true' do we load all dictionaries");
73  descriptions.add("LoadAllDictionaries", desc);
74  descriptions.setComment("This service allows you to force all known dictionaries to be loaded at the beginning of the job");
75 }
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