Skip to content
Snippets Groups Projects
Commit 6931bc90 authored by Sanya Solodkov's avatar Sanya Solodkov
Browse files

minor update in jobOptions_TileCalibRec.py - preparing to read new RDO

Former-commit-id: 7afdb1dfbec64c39a789dd7c6c393c4574236e04
parent 45176a52
No related branches found
No related tags found
No related merge requests found
...@@ -637,6 +637,9 @@ from AthenaCommon.BeamFlags import jobproperties ...@@ -637,6 +637,9 @@ from AthenaCommon.BeamFlags import jobproperties
#jobproperties.Beam.beamType.set_Value_and_Lock('cosmics') #jobproperties.Beam.beamType.set_Value_and_Lock('cosmics')
jobproperties.Beam.beamType.set_Value_and_Lock('collisions') jobproperties.Beam.beamType.set_Value_and_Lock('collisions')
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
athenaCommonFlags.FilesInput.set_Value_and_Lock(FileNameVec)
from AthenaCommon.DetFlags import DetFlags from AthenaCommon.DetFlags import DetFlags
DetFlags.Calo_setOff() #Switched off to avoid geometry DetFlags.Calo_setOff() #Switched off to avoid geometry
DetFlags.ID_setOff() DetFlags.ID_setOff()
...@@ -651,8 +654,6 @@ DetFlags.detdescr.LAr_setOn() ...@@ -651,8 +654,6 @@ DetFlags.detdescr.LAr_setOn()
DetFlags.detdescr.Tile_setOn() DetFlags.detdescr.Tile_setOn()
if TileL1CaloRun: if TileL1CaloRun:
DetFlags.detdescr.LVL1_setOn() DetFlags.detdescr.LVL1_setOn()
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
athenaCommonFlags.FilesInput.set_Value_and_Lock(FileNameVec)
if ReadPool: if ReadPool:
DetFlags.readRDOPool.Tile_setOn() DetFlags.readRDOPool.Tile_setOn()
if TileL1CaloRun: if TileL1CaloRun:
...@@ -827,8 +828,20 @@ if not OfcFromCOOL and (doTileOpt2 or doTileOptATLAS or doTileOF1): ...@@ -827,8 +828,20 @@ if not OfcFromCOOL and (doTileOpt2 or doTileOptATLAS or doTileOF1):
from AthenaCommon.AlgSequence import AlgSequence from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence() topSequence = AlgSequence()
from xAODEventInfoCnv.xAODEventInfoCreator import xAODMaker__EventInfoCnvAlg if not 'newRDO' in dir() or newRDO is None:
topSequence+=xAODMaker__EventInfoCnvAlg() if 'ReadRDO' in dir() and ReadRDO:
from RecExConfig.InputFilePeeker import inputFileSummary
from RecExConfig.ObjKeyStore import objKeyStore
objKeyStore.addManyTypesInputFile(inputFileSummary['eventdata_itemsList'])
newRDO = objKeyStore.isInInput( "xAOD::EventInfo" )
else:
newRDO = True
if ReadPool and newRDO:
topSequence += CfgMgr.xAODMaker__EventInfoNonConstCnvAlg()
else:
from xAODEventInfoCnv.xAODEventInfoCreator import xAODMaker__EventInfoCnvAlg
topSequence+=xAODMaker__EventInfoCnvAlg()
#============================================================= #=============================================================
#=== read ByteStream and reconstruct data #=== read ByteStream and reconstruct data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment