diff --git a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/python/InDetDxAODJobProperties.py b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/python/InDetDxAODJobProperties.py index 7b77e29c6908b32bbcf7b24a3f48c953188b4118..a50d1f01cdad764175ee9087dba7967c66bfdab3 100644 --- a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/python/InDetDxAODJobProperties.py +++ b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/python/InDetDxAODJobProperties.py @@ -74,6 +74,14 @@ class DumpUnassociatedHits(JobProperty): pass jobproperties.InDetDxAODJobPropertyContainer.add_JobProperty(DumpUnassociatedHits) +class DumpLArCollisionTime(JobProperty): + """dump LAr collision time """ + statusOn = True + allowedTypes = ["bool"] + StoredValue = True + pass +jobproperties.InDetDxAODJobPropertyContainer.add_JobProperty(DumpLArCollisionTime) + class DumpTruthInfo(JobProperty): """dump truth in fo """ statusOn = True diff --git a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/InDetDxAOD.py b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/InDetDxAOD.py index de693a2ef776462a393a45245a7e0d286191736e..45d35002e408299c35098d0002bfe93d0627e125 100644 --- a/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/InDetDxAOD.py +++ b/InnerDetector/InDetEventCnv/InDetPrepRawDataToxAOD/share/InDetDxAOD.py @@ -30,6 +30,9 @@ dumpBytestreamErrors=InDetDxAODFlags.DumpByteStreamErrors() #True # Unassociated hits decorations dumpUnassociatedHits= InDetDxAODFlags.DumpUnassociatedHits() #True +# Add LArCollisionTime augmentation tool +dumpLArCollisionTime=InDetDxAODFlags.DumpLArCollisionTime() #True + # Force to do not dump truth info if set to False # (otherwise determined by autoconf below) dumpTruthInfo=InDetDxAODFlags.DumpTruthInfo() # True @@ -481,6 +484,25 @@ if dumpUnassociatedHits: print unassociatedHitsDecorator print unassociatedHitsDecorator.properties() +# Add LArCollisionTime augmentation tool +if dumpLArCollisionTime: + from LArCellRec.LArCollisionTimeGetter import LArCollisionTimeGetter + from RecExConfig.ObjKeyStore import cfgKeyStore + # We can only do this if we have the cell container. + if cfgKeyStore.isInInput ('CaloCellContainer', 'AllCalo'): + LArCollisionTimeGetter (IDDerivationSequence) + + from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__LArCollisionTimeDecorator + lArCollisionTimeDecorator = DerivationFramework__LArCollisionTimeDecorator (name ='lArCollisionTimeDecorator', + ContainerName = "EventInfo", + DecorationPrefix = prefixName+"LArCollTime_", + OutputLevel =INFO) + ToolSvc += lArCollisionTimeDecorator + augmentationTools+=[lArCollisionTimeDecorator] + if (printIdTrkDxAODConf): + print lArCollisionTimeDecorator + print lArCollisionTimeDecorator.properties() + # Add decoration with truth parameters if running on simulation if isIdTrkDxAODSimulation: from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParametersForTruthParticles