CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 33 of file EgHLTDebugFuncs.h.

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

33  {
34  std::vector<edm::Handle<PROD> > products;
35  iEvent.getManyByType(products);
36 
37  for (size_t i = 0; i < products.size(); i++) {
38  // edm::LogInfo(moduleName) <<"for product "<<i+1<<"/"<<products.size()<<" "<<products[i].provenance()->moduleLabel()<<" "<<products[i].provenance()->moduleName()<<std::endl;
39  std::cout << "for product " << i + 1 << "/" << products.size() << " " << products[i].provenance()->moduleLabel()
40  << " " << products[i].provenance()->moduleName() << std::endl;
41  }
42  return products.size();
43  }
void getManyByType(std::vector< Handle< PROD >> &results) const
Definition: Event.h:530
ESProducts< std::remove_reference_t< TArgs >...> products(TArgs &&...args)
Definition: ESProducts.h:128
tuple cout
Definition: gather_cfg.py:144