How to convert the data files

For normal use there is no need of converting the data files as you can find them already on castor. Just follow the instruction given at WhereTofindthem.

Do it yourself: get the program and the scripts

In case you really need to convert yourself, for example to select a specific number or range of events, then:

  • Create a data/ directory where you want to do the conversion
  • For ALFA data: create a data/rz directory in the same location (or a rz/ subdirectory in data/)
  • For LUCID data: create a data/rz/lucid/ directory in the same location (or a rz/lucid/ subdirectory in data/)
  • be sure to download the conversion program (binary): convscifi.run

AND

  • be sure to download the lumiconvert script (ALFA data): lumiconvert
  • be sure to download the get_run_alfa script (ALFA data): get_run_alfa

OR

  • be sure to download the lucidconvert script (LUCID data): lucidconvert
  • be sure to download the get_run_alfa script (ALFA data): get_run_lucid

Do it yourself: run the scripts

If you trust Beniamino's scripts:

  • for ALFA data - just run the get_run_alfa script with the run number as argument

|my prompt> get_run_alfa XYZ

This script will fetch automatically for you the run_XYZ.dat file from castor and convert it to run_XYZ.rz file. The file will be in the data/rz/ directory

  • for LUCID data - just run the get_run_lucid script with the run number as argument

|my prompt> get_run_lucid ZYX

This script will fetch automatically for you the run_ZYX.dat file from castor and convert it to run_ZYX.rz file. The file will be in the data/rz/ directory

If you instead have a different need you need to use the convscifi.run program directly. This program can be used in this way:

usage: ./convscifi.run [-n<events> -h --test] [--rp|--lucid] -i<Data File> -o<Histogram File>

for example:

|myprompt> ./convscifi.run -n 1000 --lucid -irun_ZYX.dat -orun_ZYX.rz

will do the job. However you need to have the .dat file fetched by yourself from CASTOR (see WhereTofindthem). The .rz file will be created in data/rz/. Please notice that while the get_run_xyz script removes the .dat file automatically, if you run manually you will have to do it yourself.

-- BeniaminoDiGirolamo - 05 Dec 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatrun convscifi.run r1 manage 941.3 K 2005-12-05 - 09:51 BeniaminoDiGirolamo conversion program (binary)
Unknown file formatext get_run_alfa r1 manage 0.7 K 2005-12-05 - 10:05 BeniaminoDiGirolamo get run script for ALFA
Unknown file formatext get_run_lucid r2 r1 manage 0.7 K 2005-12-05 - 10:06 BeniaminoDiGirolamo get run script for LUCID
Unknown file formatext lucidconvert r1 manage 0.1 K 2005-12-05 - 09:53 BeniaminoDiGirolamo conversion script for LUCID
Unknown file formatext lumiconvert r1 manage 0.1 K 2005-12-05 - 09:53 BeniaminoDiGirolamo conversion script for ALFA
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2011-06-01 - HaskoStenzel
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback