topSequence += DRAW_EGJPSI_Seq ################## ### Output stream ################## from OutputStreamAthenaPool.MultipleStreamManager import MSMgr from D2PDMaker.D2PDHelpers import buildFileName from PrimaryDPDMaker.PrimaryDPDFlags import primDPD streamName = primDPD.WriteDRAW_EGJPSI.StreamName fileName = buildFileName(primDPD.WriteDRAW_EGJPSI) # Remove the .pool.root ending in the file name, this is a RAW file! if fileName.endswith(".pool.root"): fileName = fileName.rstrip(".pool.root") pass StreamDRAW_EGJPSI = MSMgr.NewByteStream(streamName, fileName) StreamDRAW_EGJPSI.AddRequireAlgs(["DRAW_EGJPSIKernel"]) # Don't write an output RAW file if it is empty StreamDRAW_EGJPSI.bsOutputSvc.WriteEventlessFiles = primDPD.WriteEventlessFiles( ) ######################################### # Add the containers to the output stream ######################################### from PrimaryDPDMaker import PrimaryDPD_OutputDefinitions as dpdOutput # Take everything from the input ExcludeList = [] dpdOutput.addAllItemsFromInputExceptExcludeList(streamName, ExcludeList)
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr from PrimaryDPDMaker.PrimaryDPDHelpers import buildFileName from PrimaryDPDMaker.PrimaryDPDFlags import primDPD streamName = primDPD.WriteRAWPhysDPD_RPVLL.StreamName fileName = buildFileName(primDPD.WriteRAWPhysDPD_RPVLL) if fileName.endswith(".pool.root"): fileName = fileName.rstrip(".pool.root") fileName += ".dat" pass if fileName.endswith("root"): fileName = fileName.rstrip(".root") fileName += ".dat" pass RPVLL = MSMgr.NewByteStream(streamName, fileName) RPVLL.bsOutputSvc.WriteEventlessFiles = primDPD.WriteEventlessFiles() RPVLL.AddAcceptAlgs(RPVLLfilterNames) ######################################### # Add the containers to the output stream ######################################### from PrimaryDPDMaker import PrimaryDPD_OutputDefinitions as dpdOutput # Take everything from the input ExcludeList = [] dpdOutput.addAllItemsFromInputExceptExcludeList(streamName, ExcludeList)