8 import AthenaCommon.CfgMgr 
as CfgMgr
 
    9 from AthenaCommon.AppMgr 
import theApp
 
   10 from AthenaRootComps.AthenaRootCompsConf 
import Athena__RootOutputStreamTool 
as AthenaRootOutputStreamTool
 
   14         from AthenaCommon.AlgSequence 
import AlgSequence
 
   18     writingTool1 = AthenaRootOutputStreamTool( streamName + 
"Tool" )
 
   19     writingTool1.TreeName = tupleName
 
   20     writingTool1.OutputFile = fileName
 
   22     cls = AthenaRootNtupleOutputStreamProtect
 
   26         WritingTool = writingTool1,
 
   27         ItemList = [
"RunNumber",
 
   32         from AthenaCommon.AlgSequence 
import AlgSequence
 
   33         topSequence += outputStream
 
   35         theApp.addOutputStream( outputStream )
 
   38         outputStream.OutputFile = fileName
 
   42     from AthenaServices.AthenaServicesConf 
import AthenaOutputStream
 
   44         from AthenaCommon.AlgSequence 
import AlgSequence
 
   48     writingTool1 = AthenaRootOutputStreamTool( streamName + 
"Tool" )
 
   49     writingTool1.TreeName = 
"CollectionTree" 
   52        WritingTool = writingTool1,
 
   53        ItemList    = [ 
"EventInfo#*" ]
 
   56         from AthenaCommon.AlgSequence 
import AlgSequence
 
   57         topSequence += outputStream
 
   59         theApp.addOutputStream( outputStream )
 
   62         outputStream.OutputFile = fileName
 
   72 from AthenaCommon import CfgMgr 
   73 class AthenaRootOutputStreamProtect(CfgMgr.AthenaOutputStream): 
   74     def __init__(self, name='Stream1', **kw): 
   75         kw['name'] = kw.get('name', name) 
   76         super(AthenaRootOutputStreamProtect, self).__init__(**kw) 
   79     def _set_output_file(self, fname): 
   80         self._properties['OutputFile'].__set__(self, fname) 
   81         from AthenaServices.AthenaServicesConf import AthenaOutputStream 
   82         AthenaOutputStream("%s_FH" % (self._name,)).OutputFile = fname 
   85     def _get_output_file(self): 
   86         return self._properties['OutputFile'].__get__(self) 
   88     OutputFile = property(_get_output_file, _set_output_file, "fwd doc...") 
   94         kw[
'name'] = kw.get(
'name', name)
 
   95         super(AthenaRootNtupleOutputStreamProtect, self).
__init__(**kw)
 
   99         self._properties[
'OutputFile'].__set__(self, fname)
 
  100         CfgMgr.Athena__RootNtupleOutputStream(
"%s_FH" % (self._name,)).OutputFile = fname
 
  104         return self._properties[
'OutputFile'].__get__(self)
 
  106     OutputFile = property(_get_output_file, _set_output_file, 
"fwd doc...")