You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

It is often necessary or desirable to select individual events for further analysis. One can select and skim events in both raw (EVIO) and reconstructed (LCIO) data formats by following these steps.

Step-by-step guide

Skimming raw EVIO files

  1. A

 

Skimming reconstructed LCIO files uses the LcioEventSkimmer Driver and is called in the standard way, summarized here.

  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:

    skimit.lcsim
     <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>
                <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

    > java -server -jar hps-distribution-3.11-SNAPSHOT-bin.jar -DinputFileList=fileList -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. 

 

 

  • No labels