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