Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Prepare a plain text file containing the run and event number for the events of interest. This should be a space-delimited list, with one run-event pair per line.  

  2. Prepare a plain text file listing the input LCIO files from which to strip the events. The Data Catalog can be used to determine which run partition any particular event is in. These files will have to have been staged and be disk-resident.
  3. Prepare a steering file similar to the following:

    Code Block
    titleskimit.lcsim
    collapsetrue
     <lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
           xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
        <inputFiles>
          <fileList>${inputFileList}</fileList>
        </inputFiles>
        <control>
            <printInputFiles>true</printInputFiles>
            <printDriversDetailed>true</printDriversDetailed>
        </control>
        <execute>
            <driver name="EventMarkerDriver"/>
            <driver name="LCIOSkimmer"/>
            <driver name="LCIOWriter"/>
        </execute>
        <drivers>
            <driver name="EventMarkerDriver"
                    type="org.lcsim.job.EventMarkerDriver">
                <eventInterval>1000</eventInterval>
            </driver>
            <driver name="LCIOSkimmer"
                    type="org.hps.recon.filtering.LcioEventSkimmer">
                <runAndEventsToStripFileName>eventsToSkim.txt<<runAndEventsToStripFileName>${runAndEventsToSkim}</runAndEventsToStripFileName>
                <debug>true</debug>
            </driver>
            <driver name="LCIOWriter"
                    type="org.lcsim.util.loop.LCIODriver">
                <outputFilePath>${outputFile}</outputFilePath>
            </driver>
        </drivers>
    </lcsim>
  4. Run the job using the latest hps-java binary jar file

    Code Block
    > java -server -jar hps-distribution-3.11-SNAPSHOT-bin.jar -DinputFileList=fileList=lcioFileList.txt -DrunAndEventsToSkim=runAndEventList.txt -DoutputFile=skimmedEvents skimit.lcsim
  5. A summary will be printed at the end of the job and the selected events will be written to the specified outputFile. 

...