1
0
Fork 0
mirror of https://github.com/gwm17/Mask.git synced 2024-05-18 23:03:20 -04:00

Update REAMDE.

This commit is contained in:
Gordon McCann 2022-09-07 11:35:50 -04:00
parent 3db9e510f5
commit 8b81dda70e

View File

@ -34,11 +34,13 @@ Detector geometry is encoded using ROOT math libraries in the `src/Detectors` fo
To choose which detector scheme is run, modify the main function in `src/Detectors/main.cpp`. The included geometries also have options to do an internal geometry consistency check and print out coordinates for drawing the detector arrays, which can be useful for testing.
To run the geometry code, one needs to provide an input file containing the following: the path of a Mask kinematics data file, the path to which data should be written, the path to a file containing a list of dead channels (optional, if not used, write None for the path), the number of threads to be used by the thread pool, and a keyword for the array type (current options are Sabre or Anasen)
To run Detectors use the format
`./bin/Detectors <kinematics_datafile> <new_detection_datafile> <new_detection_statsfile>`
`./bin/Detectors <input_file>`
where the detection datafile contains all of the kinematics data as well as information about which particles are detected and the statsfile is a text file containing efficiency statistics.
An example input file is provided with the repository.
## Data visualization
All data is saved as ROOT trees of std::vectors of Mask::Nucleus classes. To enable this, a ROOT dictionary is generated and linked into a shared library found in the `lib` directory of the repository. This allows the user to link to the shared library for accessing and analyzing the data generated by Mask.