File Merger: a very simple configurable application of LHCb in Noether

... perhaps I should have called it concatenate ...

(the result of task #32774 )

....... Concatenate

What is it?

  • FileMerger() is a very simple configurable which has only one use, to concatenate files together and output a merged file.
  • It is able to merge many MDF files, RAW files, or DSTs, and employs a combination of:
    • InputCopyStream
    • MergeFSRs
    • MDFWriter

How to use it?

  • Setup the project SetupProject Noether

  • Set up your input
    • any gaudi-card dataset will work, in Ganga, from the book-keeping, or from the TestFileDB... here is an example with a file stored in the TestFileDB
#imagine this is in a file called
from GaudiConf import IOExtension

  • Use the merger
#the default will create a file called merged.dst
from Configurables import FileMerger

  • e.g.: $FILEMERGEROPTS/ =


Options and settings

  • FileMerger is about the simplest possible configurable application it's possible to write in LHCb software.
  • FileMerger has very few options, and all of them are very obvious...
class FileMerger(LHCbConfigurableUser):
    ## Possible used Configurables
    __used_configurables__ = [ LHCbApp ]

    __slots__ = {
          "EvtMax":            -1    # Maximum number of events to process
        , "SkipEvents":        0
        , "Simulation":        False # True implies use SimCond
        , "DataType":          '2012' # Data type, can be [ '2012','2011','2010'... ]
        , "DDDBtag" :          'default' # default as set in DDDBConf for DataType
        , "CondDBtag" :        'default' # default as set in DDDBConf for DataType
        , "OutputFile" :       'merged.dst' # output filename
        , "MergeFSR"   :       True #whether to merge FSRs on the output if MDF
        , 'WriteFSR'    :      True #copy FSRs as required if not MDF


-- RobLambert - 21 Mar 2014

Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg concatenate.jpg r1 manage 72.4 K 2014-03-21 - 20:01 RobLambert concatenate
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2014-03-24 - RobLambert
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback