Functions | |
template<typename PROD > | |
int | listAllProducts (const edm::Event &iEvent, const char *moduleName) |
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().
{ std::vector<edm::Handle<PROD> > products; iEvent.getManyByType(products); for(size_t i=0;i<products.size();i++){ // edm::LogInfo(moduleName) <<"for product "<<i+1<<"/"<<products.size()<<" "<<products[i].provenance()->moduleLabel()<<" "<<products[i].provenance()->moduleName()<<std::endl; std::cout <<"for product "<<i+1<<"/"<<products.size()<<" "<<products[i].provenance()->moduleLabel()<<" "<<products[i].provenance()->moduleName()<<std::endl; } return products.size(); }