Open wenxingfang opened 3 years ago
Hi @wenxingfang, I've personally never done that but I know @johnmarshall80 can point you on existing documentation.
Hi, The approach and performance are probably best documented in Bono's PhD thesis, but this is obviously more of a high-level documentation, rather than technical.
The implementation of the 'standalone' PhotonReconstruction algorithm is here.
I note that you have plenty of events/objects declared as background, but none as signal. I wonder whether the MC information is getting passed in correctly and reaching the Pandora algorithm? Bono's decision as to whether a cluster is signal-like or background-like seems to be defined here.
You could try adding some debug (maybe visual debugging, using PandoraMonitoringApi) to this part of the algorithm, to see what's going on.
Or, rather similarly, you could try running using one of the other algorithms that tries to access MC information, for study purposes, and see if that works out (as a way of validating the input information). E.g. see if there's any clusters made after this algorithm in the PandoraSettingsPerfectPhoton.xml file.
Otherwise, it looks like most of the technical stuff has been solved, in that you are producing a training output file. Just need to find out why it doesn't think any of the clusters are signal-like.
Hope that helps.
P.S. In our LArContent library, you'll see that use of machine learning has moved on significantly since this simple likelihood approach. If you have time and effort available to update this, SVMs, BDTs, etc. are possible without adding a dependency.
OS version: centos7
Compiler version: GCC 4.9.4
Package version: https://github.com/PandoraPFA/MarlinPandora/tree/master
Input: default PandoraSettingsPhotonTraining.xml
Output: PandoraLikelihoodData9EBin.xml but zero in PhotonSig part
Goal: to get correct PandoraLikelihoodData9EBin.xml
Dear Developer,
Do you have any detailed doc on how to use PandoraSettingsPhotonTraining.xml to get PandoraLikelihoodData9EBin.xml? Recently, I tried use default PandoraSettingsPhotonTraining.xml with electron and photon events as input, but the output of PandoraLikelihoodData9EBin.xml (shown below) always gives 0 in PhotonSig part.