574 unsigned int maxname = 0;
576 if (showerprodPtr.first.size() > maxname) { maxname = showerprodPtr.first.size(); }
579 if (showerassnPtr.first.size() > maxname) { maxname = showerassnPtr.first.size(); }
582 std::map<std::string, std::pair<std::string, std::string>> Type_showerprodPtrs;
583 std::map<std::string, std::pair<std::string, std::string>> Type_showerassnPtrs;
584 for (
auto const& showerprodPtr : showerproductPtrs) {
585 const std::string Type = (showerprodPtr.second)->GetType();
586 const std::string InstanceName = (showerprodPtr.second)->GetInstanceName();
587 Type_showerprodPtrs[showerprodPtr.first] = std::make_pair(InstanceName, Type);
589 for (
auto const& showerassnPtr : showerassnPtrs) {
590 const std::string Type = (showerassnPtr.second)->GetType();
591 const std::string InstanceName = (showerassnPtr.second)->GetInstanceName();
592 Type_showerassnPtrs[showerassnPtr.first] = std::make_pair(InstanceName, Type);
595 unsigned int maxtype = 0;
596 unsigned int maxinstname = 0;
597 for (
auto const& Type_showerprodPtr : Type_showerprodPtrs) {
598 if (Type_showerprodPtr.second.second.size() > maxtype) {
599 maxtype = Type_showerprodPtr.second.second.size();
601 if (Type_showerprodPtr.second.first.size() > maxinstname) {
602 maxinstname = Type_showerprodPtr.second.first.size();
605 for (
auto const& Type_showerassnPtr : Type_showerassnPtrs) {
606 if (Type_showerassnPtr.second.second.size() > maxtype) {
607 maxtype = Type_showerassnPtr.second.second.size();
609 if (Type_showerassnPtr.second.first.size() > maxinstname) {
610 maxinstname = Type_showerassnPtr.second.first.size();
614 unsigned int n = maxname + maxtype + maxinstname + 51;
615 std::cout <<
std::left << std::setfill(
'*') << std::setw(n - 1) <<
"**" << std::endl;
616 std::cout <<
"Unique Ptrs that are added to the event" << std::endl;
617 std::cout <<
std::left << std::setfill(
'*') << std::setw(n - 1) <<
"**" << std::endl;
618 for (
auto const& Type_showerprodPtr : Type_showerprodPtrs) {
619 std::cout <<
std::left << std::setfill(
' ') << std::setw(21)
620 <<
"* Data Product Name: " << std::setw(maxname) << Type_showerprodPtr.first;
621 std::cout <<
std::left << std::setfill(
' ') <<
" * Instance Name: " << std::setw(maxinstname)
622 << Type_showerprodPtr.second.first;
623 std::cout <<
std::left << std::setfill(
' ') <<
" * Type: " << std::setw(maxtype)
624 << Type_showerprodPtr.second.second <<
" *" << std::endl;
626 for (
auto const& Type_showerassnPtr : Type_showerassnPtrs) {
627 std::cout <<
std::left << std::setfill(
' ') << std::setw(maxname) << std::setw(21)
628 <<
"* Association Name: " << std::setw(maxname) << Type_showerassnPtr.first;
629 std::cout <<
std::left << std::setfill(
' ') <<
" * Instance Name: " << std::setw(maxinstname)
630 << Type_showerassnPtr.second.first;
631 std::cout <<
std::left << std::setfill(
' ') <<
" * Type: " << std::setw(maxtype)
632 << Type_showerassnPtr.second.second <<
" *" << std::endl;
634 std::cout <<
std::left << std::setfill(
'*') << std::setw(n - 1) <<
"**" << std::endl;
635 std::cout << std::setfill(
' ');
636 std::cout << std::setw(0);
std::map< std::string, std::unique_ptr< reco::shower::ShowerUniqueProduerPtrBase > > showerproductPtrs
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
std::map< std::string, std::unique_ptr< reco::shower::ShowerUniqueProduerPtrBase > > showerassnPtrs