14 from AthenaCommon.AppMgr 
import ServiceMgr
 
   15 inputs = ServiceMgr.EventSelector.InputCollections
 
   18 tmpCollFile = locals().
get(
"AthenaInputSortCollName", 
"sortedEventRefs" + 
str(os.getpid()) )
 
   19 sortTag     = locals().
get(
"AthenaInputSortTag",      
"LumiBlockN")
 
   20 sortOrd     = locals().
get(
"AthenaInputSortOrder",    
"Ascending")
 
   22 from CollectionUtilities.SortedCollectionCreator 
import SortedCollectionCreator
 
   23 sorter = SortedCollectionCreator(name=
"SortEvents")
 
   27 sorter.execute(inputs, outputCollection=tmpCollFile, sortAttribute=sortTag, sortOrder=sortOrd)
 
   30 for inpfile 
in inputs:
 
   31     os.system(
'pool_insertFileToCatalog {}'.
format(inpfile))
 
   34 ServiceMgr.EventSelector.InputCollections = [tmpCollFile + 
".root"]
 
   35 ServiceMgr.EventSelector.CollectionType = 
"RootCollection"