Exemple #1
0
def _createMDF(test_castor=None):
    print_header('MDF', 'CreateMDF')
    app = ApplicationMgr()
    app.EvtSel = 'NONE'
    app.TopAlg = [Configs.LHCb__RawEventTestCreator('Creator')]
    mdfCheck()
    # To create a MDF file using the standard Gaudi output stream:
    wr = CFG.OutputStream('Writer_0')
    wr.Output = "DATAFILE='PFN:root:file://mdfData_0.dat' SVC='LHCb::RawDataCnvSvc' OPT='REC'"
    wr.ItemList = ["/Event#1"]
    app.OutStream += [wr]
    addWriter('Writer_1', 'LFN:/user/frank/markus/mdf_1.dat', 0, 0, True)
    addWriter('Writer_2', 'LFN:/user/frank/markus/mdf_2.dat', 0, 1, True)
    addWriter('Writer_3', 'PFN:root:mdfData_3.dat', 2, 1, True)
    addWriter('Writer_4', 'root:mdfData_4.dat', 2, 0, True)
    addWriter('Writer_5', 'PFN:root:file://' + base + '/mdfData_5.dat')
    addWriter('Writer_6', 'PFN:root:file://' + base + '/mdfData_6.dat')
    addWriter('Writer_7', 'PFN:' + base + '/mdfData_7.dat')
    addWriter('Writer_8', 'root:file://' + base + '/mdfData_8.dat')
    addWriter('Writer_9', 'root:file:' + base + '/mdfData_9.dat')
    addWriter('Writer_10', '' + base + '/mdfData_10.dat')
    if test_castor is not None:
        addWriter('Writer_11',
                  'root:rfio:/castor/cern.ch/user/f/frankb/mdfData_11.dat')
        addWriter('Writer_12',
                  'root:castor:/castor/cern.ch/user/f/frankb/mdfData_12.dat')
        addWriter('Writer_13',
                  'castor:/castor/cern.ch/user/f/frankb/mdfData_13.dat')
    CFG.MessageSvc().OutputLevel = 3
    return app
Exemple #2
0
def serialWriter(name='DstWriter', location='/Event/GaudiSerialize'):
    svc = CFG.EventPersistencySvc()
    ser = Configs.Gaudi__SerializeCnvSvc('Gaudi::SerializeCnvSvc')
    serial = CFG.OutputStream(name)
    ser.Banks = location
    svc.CnvServices.append('Gaudi::SerializeCnvSvc/SerializeCnvSvc')
    serial.Output = "DATAFILE='root.buffers' SVC='Gaudi::SerializeCnvSvc/SerializeCnvSvc' OPT='RECREATE'"
    return serial
Exemple #3
0
def _createROOT(test_castor=None):
    print_header('MDF', 'CreateROOT')
    app = ApplicationMgr()
    CFG.importOptions('$ROOTCNVROOT/options/Setup.opts')
    setData(test_castor)
    mdfCheck()
    mini = CFG.OutputStream('ROOTMini')
    mini.ItemList = ["/Event#1", "/Event/DAQ#1"]
    mini.Output = "DATAFILE='PFN:mdfROOT.dat' SVC='RootCnvSvc' OPT='RECREATE'"
    app.OutStream += [mini]
    return app
Exemple #4
0
def _readTAE():
    app = ApplicationMgr()
    mdfCheck()
    CFG.importOptions('$ROOTCNVROOT/options/Setup.opts')
    CFG.EventSelector().Input = [
        "DATA='file://taeData.dat' SVC='LHCb::MDFSelector'"
    ]
    CFG.EventSelector().PrintFreq = 200
    mini = CFG.OutputStream('TAEMini')
    app.OutStream += [mini]
    mini.ItemList = [
        '/Event#1', '/Event/DAQ#1', '/Event/Prev1/DAQ', '/Event/Prev2',
        '/Event/Next1/DAQ/RawEvent'
    ]
    mini.Output = "DATAFILE='PFN:taeROOT.dat' SVC='RootCnvSvc' OPT='RECREATE'"
    return app