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

Compare with Current View Page History

« Previous Version 2 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.

Skimming raw EVIO Files

Skimming raw EVIO files uses the dedicated main program org.hps.record.evio.EvioEventSkimmer. We currently support skimming events from a single run.

  1. Prepare a plain text file containing the event numbers for the events of interest in a single run, one event per line.

  2. Prepare a plain text file containing the list of input EVIO files containing the events of interest. 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. Run the job using the latest hps-java binary jar file

    > java -cp hps-distribution-3.11-SNAPSHOT-bin.jar org.hps.record.evio.EvioEventSkimmer -e evioFileList.txt -s EvioEventsToSkim.txt -o skimmedEvents.evio

 

Skimming reconstructed LCIO Files

Skimming reconstructed LCIO files uses the org.hps.recon.filtering.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