4           Instantiate the Negative Calo Cluster Thinning 
    7 from AthenaCommon.Logging 
import logging
 
    8 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    9 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
   13                                       name="ThinNegativeEnergyCaloClustersAlg",
 
   17     kwargs.setdefault(
"StreamName", 
"StreamAOD")
 
   18     kwargs.setdefault(
"ThinNegativeEnergyCaloClusters", 
True)
 
   19     kwargs.setdefault(
"CaloClustersKey", 
"CaloCalTopoClusters")
 
   21         CompFactory.ThinNegativeEnergyCaloClustersAlg(name, **kwargs)
 
   26 if __name__ == 
"__main__":
 
   27     from AthenaConfiguration.AllConfigFlags 
import initConfigFlags
 
   28     from AthenaConfiguration.TestDefaults 
import defaultTestFiles
 
   29     from AthenaConfiguration.ComponentAccumulator 
import printProperties
 
   30     from AthenaConfiguration.MainServicesConfig 
import MainServicesCfg
 
   32     flags.Input.Files = defaultTestFiles.RDO_RUN2
 
   33     flags.Output.doWriteAOD = 
True   
   37     mlog = logging.getLogger(
"ThinNegativeEnergyCaloClustersConfigTest")
 
   40         acc.getEventAlgo(
"ThinNegativeEnergyCaloClustersAlg"),
 
   45     with open(
"thinnegativeenergycaloclusterscfg.pkl", 
"wb") 
as f: