CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProductRegistryHelper.cc
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2 
3 ----------------------------------------------------------------------*/
4 
12 
13 namespace edm {
15 
17  return typeLabelList_;
18  }
19 
20  void
21  ProductRegistryHelper::addToRegistry(TypeLabelList::const_iterator const& iBegin,
22  TypeLabelList::const_iterator const& iEnd,
23  ModuleDescription const& iDesc,
24  ProductRegistry& iReg,
25  bool iIsListener) {
27  for(TypeLabelList::const_iterator p = iBegin; p != iEnd; ++p) {
28  TypeWithDict type(p->typeID_.typeInfo());
29  if(!type.hasDictionary()) {
30  //attempt to load
31  edmplugin::PluginCapabilities::get()->tryToLoad(prefix + p->typeID_.userClassName());
32  }
33  BranchDescription pdesc(p->branchType_,
34  iDesc.moduleLabel(),
35  iDesc.processName(),
36  p->typeID_.userClassName(),
37  p->typeID_.friendlyClassName(),
38  p->productInstanceName_,
39  iDesc.moduleName(),
40  iDesc.parameterSetID(),
41  type);
42  if (!p->branchAlias_.empty()) pdesc.branchAliases().insert(p->branchAlias_);
43  iReg.addProduct(pdesc, iIsListener);
44  }//for
45  }
46 }
type
Definition: HCALResponse.h:21
std::list< TypeLabelItem > TypeLabelList
std::string const & processName() const
std::string const & moduleName() const
std::string const & dictionaryPlugInPrefix()
std::string const & moduleLabel() const
TypeLabelList & typeLabelList()
used by the fwk to register the list of products of this module
static PluginCapabilities * get()
bool tryToLoad(const std::string &iName)
std::set< std::string > const & branchAliases() const
ParameterSetID const & parameterSetID() const
static void addToRegistry(TypeLabelList::const_iterator const &iBegin, TypeLabelList::const_iterator const &iEnd, ModuleDescription const &iDesc, ProductRegistry &iReg, bool iIsListener=false)
void addProduct(BranchDescription const &productdesc, bool iFromListener=false)