MariachiFileFormats
From MariachiWiki
Contents |
File Formats for Mariachi
Scintillator Detector Formats
For the scintillator detectors, we are talking about the output files for the Mariachi DAQ Labview program.
Directory layout
Labview should be configured to write data in the home directory of the mariachi account on the local system. This account should be an unprivileged UNIX account. The directory structure is show below, along with file name formats. The idea is to divide data into scintillator detector (sd) areas and radio areas, and also do limit the number of files in a single directory by limiting each to one year.
| /home/mariachi/data/sd/ | ||
| <year>/ | ||
| counts-<year><month><day>.txt | ||
| timestamps-<year><month><day>.txt | ||
| gps_error-<year><month><day>.txt |
Counts Per Minute
Counts per each minute for different kinds of events.
- Filename: counts-<year><month><day>.txt
Version 1.0
- Internal Format, comma separated fields:
| Item | Format | Example |
|---|---|---|
| line format version | <lf> | cts1.0 |
| date | <year><month><day>,<hours><minutes><secs>.<decimal fraction of seconds> | 20070123,135523.12345678 |
| singles by detector | <s1>,<s2><s3>,<s4>,<s5> | 250,245,247,222,190 |
| twofolds | <c1> | 138 |
| threefolds | <t1>,<t2>,<t3> | 23,31,6 |
| fourfolds | <f1> | 3 |
| fivefold | <v1> | 2 |
- Full example:
cts1.0,20070123,135523.12436587,310,370,390,250,410,49,2,0,1,0,0
GPS Timestamps
This contains information on the precise time of 4-fold and 5-fold events.
- Filename: timestamps-<year><month><day>.txt
Version 1.0
- Internal Format, comma separated fields:
| Item | Format | Example |
|---|---|---|
| line format version | <lf> | gts1.0 |
| date | <year><month><day>,<hours><minutes><secs>.<decimal fraction of seconds> | 20070123,135523.12345678 |
| fold-ness | <f1> | 4 or 5 |
| positive detector bitmap | <b1> | e.g. 10111 for hits on all but detector #2. |
- Full example:
gts1.0,20070123,135523.12436587,4,10111
GPS Errors
This contains error information copied directly from GPS device. Its format is determined largely by what the device provides. This section should be used to document relevant error codes and interpretations.
- Filename: gps_error-<year><month><day>.txt
- Internal Format: Unknown -- depends on hardware.
