Ejemplo n.º 1
0
topSequence+=EventCounter(Frequency=2)

from LArROD.LArRODFlags import larRODFlags
larRODFlags.readDigits=False

from CaloRec.CaloRecFlags import jobproperties
jobproperties.CaloRecFlags.clusterCellGetterName = 'CaloRec.CaloCellGetter.CaloCellGetter'

from CaloRec.CaloCellFlags import jobproperties
jobproperties.CaloCellFlags.doLArDeadOTXCorr=False

from CaloRec.CaloCellGetter import CaloCellGetter
CaloCellGetter()

from CaloRec.CaloClusterSWCmbGetter import CaloClusterSWCmbGetter
CaloClusterSWCmbGetter()

include( "CaloRec/CaloTopoCluster_jobOptions.py" )

import AthenaPoolCnvSvc.WriteAthenaPool
logRecoOutputItemList_jobOptions = logging.getLogger( 'py:RecoOutputItemList_jobOptions' )
from OutputStreamAthenaPool.CreateOutputStreams import  createOutputStream

StreamESD=createOutputStream("StreamESD","myESD.pool.root",True)
include ("CaloRecEx/CaloRecOutputItemList_jobOptions.py")
StreamESD.ItemList+=CaloESDList

print StreamESD.ItemList


Ejemplo n.º 2
0
# Set up the algorithm.
#--------------------------------------------------------------

from DataModelTestDataWrite.DataModelTestDataWriteConf import DMTest__DMTestWrite
topSequence += DMTest__DMTestWrite("DMTestWrite")

#--------------------------------------------------------------
# Output options
#--------------------------------------------------------------
# ItemList:
include("EventAthenaPool/EventAthenaPoolItemList_joboptions.py")
fullItemList += ["DataVector<DMTest::B>#bvec"]
fullItemList += ["DataVector<DMTest::B>#b3"]
fullItemList += ["DMTest::BDer#bder"]
fullItemList += ["DataVector<DMTest::D>#dvec"]
fullItemList += ["DMTest::DDer#dder"]
fullItemList += ["DMTest::ELVec#elvec"]
fullItemList += ["DMTest::ELVec#elv_remap"]

# Stream's output file
from OutputStreamAthenaPool.CreateOutputStreams import createOutputStream
Stream1 = createOutputStream("Stream1", noTag=True)
Stream1.OutputFile = "SimplePoolFile.root"
# List of DO's to write out
Stream1.ItemList += fullItemList

# Avoid races when running tests in parallel.
FILECATALOG = 'DataModelTestWrite_catalog.xml'

include('DataModelRunTests/commonTrailer.py')
Ejemplo n.º 3
0
#--------------------------------------------------------------
# POOL Persistency
#--------------------------------------------------------------
import AthenaPoolCnvSvc.WriteAthenaPool as wap
from OutputStreamAthenaPool.CreateOutputStreams import createOutputStream

if 'OUTPUT' not in dir():
   OUTPUT = "thinned.%s" % INPUT[0]

OUTPUT1 = os.path.join(
   os.path.dirname(OUTPUT),
   'non.%s' % os.path.basename(OUTPUT)
)


outStreams = [createOutputStream ('StreamUSR_0', fileName = OUTPUT, noTag=True),
              createOutputStream ('StreamUSR_1', fileName = OUTPUT1, noTag=True)]

for outStream in outStreams:
   outStream.ItemList += [ ##
                           "AthExParticles#Particles_test1",
                           "AthExParticles#Particles_test2",
                           "AthExParticles#Particles_test3",
                           ##
                           "AthExDecay#TwoBodyDecay_test1",
                           "AthExDecay#TwoBodyDecay_test2",
                           "AthExDecay#TwoBodyDecay_test3",
                           ##
                           "AthExElephantino#PinkElephantino_test1",
                           "AthExElephantino#PinkElephantino_test2",
                           "AthExElephantino#PinkElephantino_test3",
Ejemplo n.º 4
0
decodingSeq = seqAND("Decoding")
decodingSeq += decoder
decodingSeq += deserialiser
topSequence += decodingSeq

# Configure output file name
outputFileName = 'ESD.pool.root' if HLTModuleID == 0 else 'ESD.Module{:d}.pool.root'.format(
    HLTModuleID)
athenaCommonFlags.PoolESDOutput = outputFileName
ConfigFlags.Output.ESDFileName = outputFileName

# Create OutputStream for ESD writing
from OutputStreamAthenaPool.CreateOutputStreams import createOutputStream

StreamESD = createOutputStream("StreamESD", ConfigFlags.Output.ESDFileName,
                               True)
topSequence.remove(StreamESD)
outSequence.remove(StreamESD)

# Define what to write into ESD
from TriggerJobOpts.TriggerFlags import TriggerFlags
from TrigEDMConfig.TriggerEDM import getTriggerEDMList

TriggerFlags.EDMDecodingVersion = 3  # currently hard-coded
edmList = getTriggerEDMList(TriggerFlags.ESDEDMSet(),
                            TriggerFlags.EDMDecodingVersion())
if len(ItemList) == 0:
    for edmType, edmKeys in six.iteritems(edmList):
        for key in edmKeys:
            ItemList.append(edmType + '#' + key)
    ItemList += [
Ejemplo n.º 5
0
# fix back the outut level

# at the end of the list partial buildin info dumper
from TrigSteeringTest.TrigSteeringTestConf import PartialEBDumper
peb = PartialEBDumper()
peb.OutputLevel = DEBUG
job += peb

####### from here goes AthenPool
import AthenaPoolCnvSvc.WriteAthenaPool
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr.PoolSvc.WriteCatalog = "xmlcatalog_file:Catalogue1.xml"

from OutputStreamAthenaPool.CreateOutputStreams import createOutputStream
stream = createOutputStream("Stream1")

#from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
#stream = AthenaPoolOutputStream( "Stream1" )

stream.OutputFile = "Result.root"
stream.ItemList += [
    "HLT::HLTResult#HLTResult_L2", "HLT::HLTResult#HLTResult_EF"
]
stream.ItemList += ["TrigRoiDescriptorCollection#HLT_initialRoI"]

from StoreGate.StoreGateConf import StoreGateSvc
stream.Store = StoreGateSvc("StoreGateSvc")

######### to here
Ejemplo n.º 6
0
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20

#--------------------------------------------------------------
# Application:
#--------------------------------------------------------------

from DataModelTestDataRead.DataModelTestDataReadConf import \
     DMTest__AuxDataTestRead, \
     DMTest__AuxDataTestDecor, \
     DMTest__AuxDataTestClearDecor

topSequence += DMTest__AuxDataTestRead('AuxDataTestRead', WritePrefix='copy_')

topSequence += DMTest__AuxDataTestDecor('AuxDataTestDecor1',
                                        DecorName='dInt1',
                                        Offset=100)

# Stream's output file
from OutputStreamAthenaPool.CreateOutputStreams import createOutputStream
Stream1 = createOutputStream("Stream1", asAlg=True, noTag=True)
Stream1.OutputFile = "auxdata2.root"
Stream1.ItemList += fullItemList  # List of DO's to write out

# Avoid races when running tests in parallel.
FILECATALOG = 'AuxDataTestRead_catalog.xml'

include('DataModelRunTests/commonTrailer.py')