Skip to content

Running example run_appHKHybridSingleEvent.sh

akutsuR edited this page Aug 5, 2022 · 11 revisions

This script is located at $MDT/example/run_appHKHybridSingleEvent.sh. It runs appHKHybridSingleEvent that is one of the pre-existing applications. This applicaion takes the standard WCSim output file as its input and deigitize the true hits (photoelectrons) saved in the input, and apply almost all the same trigger algorithm as WCSim's NDigiHits algorithm. The results are saved in an output ROOT file with the same format as the input file. By editing parameter file, several parameters, which can be varied in WCSim, can be varied. For example, dark rate and TTS of PMT can be varied. Note that this application assumes the Hyper-K hybrid geometry.

The below is an example to run this script.

  1. cd MDT

  2. Open envMDT.sh, and set ROOT and WCSIMDIR properly

  3. bash compile.sh

  4. In parameter/MDTParamenter_Hybrid.txt, make sure that your # B&L PMTs (# 3-inch PMTs) are the same as NumOfTubes_BoxandLine20inchHQE (NumOfTubes_PMT3inchR14374). If not, set these variables to yours. Accordingly, set MaxTubeID_BoxandLine20inchHQE and MaxTubeID_PMT3inchR14374 properly.

  5. Open $MDT/example/run_appHKHybridSingleEvent.sh, and set INFILE and OUTFILE properly

  6. Then, run the script

Clone this wiki locally