Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a logical error for the PicoVtxMod::Mtd in StPicoDstMaker.cxx (s…
…tar-bnl#163) I fixed a logical error for the PicoVtxMod::Mtd in StPicoDstMaker.cxx Origianl: 1. Select default vertex first 2. Select each vertex in the vertex loop in order to find the vertex with at least 2 MTD matched primary tracks 3. Select MTD vertex if it is found -> If the MTD vertex is not found (most of the cases), the vertex loop will continue to the end and the last one is selected. Fixed: 1. Instead of selecting the vertex directly, I store the default vertex index in a variable VtxIndex. 2. VtxIndex will be changed if MTD vertex is found in the vertex loop. 3. Select the vertex after the vertex loop. -> Default vertex will be selected if no MTD vertex is found in the loop. Detail can be found at: https://drupal.star.bnl.gov/STAR/system/files/TeChuan_Run17_SL21c_vtxQA.pdf Co-authored-by: Te-Chuan Huang <tchuang@Te-Chuans-Air.Dlink> Co-authored-by: Te-Chuan Huang <tchuang@Te-Chuans-MacBook-Air.local>
- Loading branch information