test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
egHLT::debug Namespace Reference

Functions

template<typename PROD >
int listAllProducts (const edm::Event &iEvent, const char *moduleName)
 

Function Documentation

template<typename PROD >
int egHLT::debug::listAllProducts ( const edm::Event iEvent,
const char *  moduleName 
)

Definition at line 29 of file EgHLTDebugFuncs.h.

References gather_cfg::cout, edm::Event::getManyByType(), i, and edm::es::products().

30  {
31  std::vector<edm::Handle<PROD> > products;
32  iEvent.getManyByType(products);
33 
34  for(size_t i=0;i<products.size();i++){
35  // edm::LogInfo(moduleName) <<"for product "<<i+1<<"/"<<products.size()<<" "<<products[i].provenance()->moduleLabel()<<" "<<products[i].provenance()->moduleName()<<std::endl;
36  std::cout <<"for product "<<i+1<<"/"<<products.size()<<" "<<products[i].provenance()->moduleLabel()<<" "<<products[i].provenance()->moduleName()<<std::endl;
37 
38  }
39  return products.size();
40  }
void getManyByType(std::vector< Handle< PROD > > &results) const
Definition: Event.h:452
int i
Definition: DBlmapReader.cc:9
ESProducts< T, S > products(const T &i1, const S &i2)
Definition: ESProducts.h:189
tuple cout
Definition: gather_cfg.py:145