529 unsigned int maxname = 0;
531 if(showerprodPtr.first.size() > maxname){
532 maxname = showerprodPtr.first.size();
536 if(showerassnPtr.first.size() > maxname){
537 maxname = showerassnPtr.first.size();
541 std::map<std::string,std::pair<std::string,std::string> > Type_showerprodPtrs;
542 std::map<std::string,std::pair<std::string,std::string> > Type_showerassnPtrs;
543 for(
auto const& showerprodPtr: showerproductPtrs){
544 const std::string
Type = (showerprodPtr.second)->GetType();
545 const std::string InstanceName = (showerprodPtr.second)->GetInstanceName();
546 Type_showerprodPtrs[showerprodPtr.first] = std::make_pair(InstanceName,Type);
548 for(
auto const& showerassnPtr: showerassnPtrs){
549 const std::string Type = (showerassnPtr.second)->GetType();
550 const std::string InstanceName = (showerassnPtr.second)->GetInstanceName();
551 Type_showerassnPtrs[showerassnPtr.first] = std::make_pair(InstanceName,Type);
554 unsigned int maxtype = 0;
555 unsigned int maxinstname = 0;
556 for(
auto const& Type_showerprodPtr: Type_showerprodPtrs){
557 if(Type_showerprodPtr.second.second.size() > maxtype){
558 maxtype = Type_showerprodPtr.second.second.size();
560 if(Type_showerprodPtr.second.first.size() > maxinstname){
561 maxinstname = Type_showerprodPtr.second.first.size();
564 for(
auto const& Type_showerassnPtr: Type_showerassnPtrs){
565 if(Type_showerassnPtr.second.second.size() > maxtype){
566 maxtype = Type_showerassnPtr.second.second.size();
568 if(Type_showerassnPtr.second.first.size() > maxinstname){
569 maxinstname = Type_showerassnPtr.second.first.size();
573 unsigned int n = maxname + maxtype + maxinstname + 51;
575 std::cout <<
"Unique Ptrs that are added to the event" << std::endl;
577 for(
auto const& Type_showerprodPtr: Type_showerprodPtrs){
578 std::cout <<
std::left << std::setfill(
' ') << std::setw(21) <<
"* Data Product Name: " << std::setw(maxname) << Type_showerprodPtr.first;
579 std::cout <<
std::left << std::setfill(
' ') <<
" * Instance Name: " << std::setw(maxinstname) << Type_showerprodPtr.second.first;
580 std::cout <<
std::left << std::setfill(
' ') <<
" * Type: " << std::setw(maxtype) << Type_showerprodPtr.second.second <<
" *" << std::endl;
582 for(
auto const& Type_showerassnPtr: Type_showerassnPtrs){
583 std::cout <<
std::left << std::setfill(
' ') << std::setw(maxname) << std::setw(21) <<
"* Association Name: " << std::setw(maxname) << Type_showerassnPtr.first;
584 std::cout <<
std::left << std::setfill(
' ') <<
" * Instance Name: " << std::setw(maxinstname) << Type_showerassnPtr.second.first;
585 std::cout <<
std::left << std::setfill(
' ') <<
" * Type: " << std::setw(maxtype) << Type_showerassnPtr.second.second<<
" *" << std::endl;
std::map< std::string, std::unique_ptr< reco::shower::ShowerUniqueProduerPtrBase > > showerproductPtrs
std::map< std::string, std::unique_ptr< reco::shower::ShowerUniqueProduerPtrBase > > showerassnPtrs
BEGIN_PROLOG could also be cout