14from AthenaCommon.AppMgr
import ServiceMgr
15inputs = ServiceMgr.EventSelector.InputCollections
18tmpCollFile = locals().
get(
"AthenaInputSortCollName",
"sortedEventRefs" + str(os.getpid()) )
19sortTag = locals().
get(
"AthenaInputSortTag",
"LumiBlockN")
20sortOrd = locals().
get(
"AthenaInputSortOrder",
"Ascending")
22from CollectionSvc.SortedCollectionCreator
import SortedCollectionCreator
23sorter = SortedCollectionCreator(name=
"SortEvents")
27sorter.execute(inputs, outputCollection=tmpCollFile, sortAttribute=sortTag, sortOrder=sortOrd)
31 os.system(
'pool_insertFileToCatalog {}'.format(inpfile))
34ServiceMgr.EventSelector.InputCollections = [tmpCollFile +
".root"]
35ServiceMgr.EventSelector.CollectionType =
"RootCollection"
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)