old_contents: # Tai Sakuma <tai.sakuma@cern.ch>
  from ..Summary import Summarizer, NextKeyComposer, KeyValueComposer
  from ..CombineIntoList import CombineIntoList
  from ..WriteListToFile import WriteListToFile
  from ..Loop import Collector
  
  ##__________________________________________________________________||
  def build_counter_collector_pair(tblcfg):
      keyValComposer = KeyValueComposer(
          keyAttrNames = tblcfg['keyAttrNames'],
          binnings = tblcfg['binnings'],
          keyIndices = tblcfg['keyIndices']
      )
      nextKeyComposer = NextKeyComposer(tblcfg['binnings'])
      summarizer = Summarizer(
          keyValComposer = keyValComposer,
          summary = tblcfg['summaryClass'](),
          nextKeyComposer = nextKeyComposer,
          weightCalculator = tblcfg['weight']
      )
      resultsCombinationMethod = CombineIntoList(
          keyNames = tblcfg['keyOutColumnNames'],
          valNames = tblcfg['valOutColumnNames']
      )
      deliveryMethod = WriteListToFile(tblcfg['outFilePath']) if tblcfg['outFile'] else None
      collector = Collector(resultsCombinationMethod, deliveryMethod)
      return summarizer, collector
  
  ##__________________________________________________________________||
  
new_contents: # Tai Sakuma <tai.sakuma@cern.ch>
  from ..Summary import Summarizer, NextKeyComposer, KeyValueComposer
  from ..CombineIntoList import CombineIntoList
  from ..WriteListToFile import WriteListToFile
  from ..Loop import Collector
  
  ##__________________________________________________________________||
  def build_counter_collector_pair(tblcfg):
      keyValComposer = KeyValueComposer(
          keyAttrNames = tblcfg['keyAttrNames'],
          binnings = tblcfg['binnings'],
          keyIndices = tblcfg['keyIndices'],
          valAttrNames = tblcfg['valAttrNames'],
          valIndices = tblcfg['valIndices']
      )
      nextKeyComposer = NextKeyComposer(tblcfg['binnings'])
      summarizer = Summarizer(
          keyValComposer = keyValComposer,
          summary = tblcfg['summaryClass'](),
          nextKeyComposer = nextKeyComposer,
          weightCalculator = tblcfg['weight']
      )
      resultsCombinationMethod = CombineIntoList(
          keyNames = tblcfg['keyOutColumnNames'],
          valNames = tblcfg['valOutColumnNames']
      )
      deliveryMethod = WriteListToFile(tblcfg['outFilePath']) if tblcfg['outFile'] else None
      collector = Collector(resultsCombinationMethod, deliveryMethod)
      return summarizer, collector
  
  ##__________________________________________________________________||
  
subject: update build_counter_collector_pair() for values