HowTo select out about a dozen events and use evd to show them




(c)Robert Harris

The best way to select out about a dozen events and use evd to show event displays of those events is to run over that entire dataset and create a file with just those events.

Then you could scan those events in the file at your leisure using evd.

That is significantly easier, and in the end quicker, than to run evd on a large file and ask it to pick out the special events (mainly because you will likely want to make a second pass, and a third, and so on).

All you need to do to make a file with specific run and event numbers in it from a single large file is to use AC++dump, with a command like:
AC++Dump strip_events.tcl -i input.root -o output.root
where below is an example strip_events.tcl file for a few events

  talk DHInput 
     selectEvents set     run=151128 event=295868
     selectEvents include run=155364 event=72998
     selectEvents include run=153075 event=2273678
     show
  exit
  ev begin

and this command and file will strip the 3 events above from file input.root and write them to output.root.

If you want to run off of multiple input files, get rid of the "-i input.root" part of the command and instead use a tcl file like

  talk DHInput 
     include file your_first_file
     include file your_second_file
     include file your_third_file
     selectEvents set     run=151128 event=295868
     selectEvents include run=155364 event=72998
     selectEvents include run=153075 event=2273678
    show
  exit
  ev begin
(c)Robert Harris




Last modified March 18, 2001 by Andrei Loginov(loginov@fnal.gov)