How to process runList (CSV format) to drive your analysis.



EXAMPLE 1. Tcl script runL2muDstL.tcl
  • finds all runs matching:
    - eemcCalib trigger and
    - RHIC fills: 4920-4929 and
    - 'ok' in eeStatus column

  • query the file catalog for the muDst list of every accepted run and save it as R5088017.muDst.lis, ... with content:
    /star/data41/reco/eemcCalibration/ReversedFullField/P04id/2004/087/st_physics_5087081_raw_2010001.MuDst.root
    /star/data41/reco/eemcCalibration/ReversedFullField/P04id/2004/087/st_physics_5087081_raw_4010001.MuDst.root
    /star/data41/reco/eemcCalibration/ReversedFullField/P04id/2004/087/st_physics_5087081_raw_1040001.MuDst.root
    /star/data41/reco/eemcCalibration/ReversedFullField/P04id/2004/087/st_physics_5087081_raw_3010001.MuDst.root
    
    
  • prints summary of possible & found muDst, no. of events, etc.
    >runL2muDstL.tcl
    Input  run list ='auau62-ver2.csv' 
    checking: F4920 R5087071  nEve=   4615  eemcCalib ...found 7 of   7 muDst
    checking: F4920 R5087081  nEve=   6073  eemcCalib ...found 4 of   4 muDst
    checking: F4921 R5088003  nEve=  14109  eemcCalib ...found 7 of   7 muDst
    checking: F4921 R5088017  nEve=   6069  eemcCalib ...found 4 of   4 muDst
    checking: F4922 R5088020  nEve=  20353  eemcCalib ...found 5 of   5 muDst
    checking: F4922 R5088033  nEve=   7864  eemcCalib ...found 9 of   9 muDst
    checking: F4923 R5088040  nEve=  28265  eemcCalib ...found 8 of   8 muDst
    checking: F4923 R5088052  nEve=  11977  eemcCalib ...found 7 of   7 muDst
    checking: F4924 R5088056  nEve=   8520  eemcCalib ...found 6 of   7 muDst
    checking: F4924 R5088067  nEve=   8183  eemcCalib ...found 4 of   4 muDst
    checking: F4925 R5089002  nEve=   6550  eemcCalib ...found 4 of   5 muDst
    checking: F4925 R5089010  nEve=  10067  eemcCalib ...found 5 of   6 muDst
    checking: F4929 R5089017  nEve=  39379  eemcCalib ...found 5 of   6 muDst
    checking: F4929 R5089040  nEve=  12630  eemcCalib ...found 4 of   4 muDst
    Found 14 runs, 184654 events, 79 of 83 muDst file
    
    



    EXAMPLE 2. Perl script : eemcRunList.pl

    One can use regular expressions to select on the eeStatus column and detectors column. Simply edit the file and place the expression in the appropriate variables.

    [rcas6018] ~/work/devel/eemcruns $ ./eemcRunList.pl
    Name "main::tags" used only once: possible typo at ./eemcRunList.pl line 22.
    Found 38 runs with
    Status:    ok and not [TM]
    Trigger:   eemcCalib
    Detectors: eemc|esmd
    Query file catalog
    
    Run 5084003: Found 0 muDst files
    Run 5086057: Found 6 muDst files
    Run 5087050: Found 5 muDst files
    Run 5087065: Found 8 muDst files
    Run 5087071: Found 7 muDst files
    Run 5087081: Found 4 muDst files
    Run 5088003: Found 7 muDst files
    Run 5088017: Found 4 muDst files
    Run 5088020: Found 5 muDst files
    Run 5088033: Found 9 muDst files
    Run 5088040: Found 8 muDst files
    Run 5088052: Found 7 muDst files
    Run 5088056: Found 6 muDst files
    Run 5088067: Found 4 muDst files
    Run 5089002: Found 4 muDst files
    Run 5089010: Found 5 muDst files
    Run 5089017: Found 5 muDst files
    Run 5089040: Found 4 muDst files
    Run 5089043: Found 9 muDst files
    Run 5089055: Found 7 muDst files
    Run 5089073: Found 9 muDst files
    Run 5090002: Found 16 muDst files
    Run 5090004: Found 8 muDst files
    Run 5090034: Found 9 muDst files
    Run 5090055: Found 8 muDst files
    Run 5090073: Found 5 muDst files
    Run 5090075: Found 8 muDst files
    Run 5091010: Found 7 muDst files
    Run 5091012: Found 7 muDst files
    Run 5091034: Found 6 muDst files
    Run 5091045: Found 9 muDst files
    Run 5091078: Found 4 muDst files
    Run 5091090: Found 4 muDst files
    Run 5091094: Found 5 muDst files
    Run 5092014: Found 4 muDst files
    Run 5092030: Found 7 muDst files
    Run 5092040: Found 3 muDst files
    Run 5093002: Found 0 muDst files
    Run 5093016: Found 3 muDst files