255 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
256 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() <<
std::endl;
258 CaloHitList parent3DHitList;
260 const unsigned int nParentHits3D(parent3DHitList.size());
262 PfoList allDaughtersPfoList;
264 const unsigned int nDaughterPfos(allDaughtersPfoList.empty() ? 0 : allDaughtersPfoList.size() - 1);
266 unsigned int nDaughterHits3DTotal(0);
268 if (nDaughterPfos > 0)
271 allDaughtersPfoList.pop_front();
273 for (
const ParticleFlowObject *
const pDaughterPfo : allDaughtersPfoList)
275 CaloHitList daughter3DHitList;
277 nDaughterHits3DTotal += daughter3DHitList.size();
284 (nParentHits3D > 0) ? static_cast<double>(nDaughterHits3DTotal) / static_cast<double>(nParentHits3D) : 0.);
286 featureVector.push_back(nDaughters);
287 featureVector.push_back(nDaughterHits3D);
288 featureVector.push_back(daughterParentNHitsRatio);
MvaTypes::MvaFeature MvaFeature
static void GetAllDownstreamPfos(const pandora::PfoList &inputPfoList, pandora::PfoList &outputPfoList)
Get a flat list of all pfos, recursively, of all daughters associated with those pfos in an input lis...
static void GetCaloHits(const pandora::PfoList &pfoList, const pandora::HitType &hitType, pandora::CaloHitList &caloHitList)
Get a list of calo hits of a particular hit type from a list of pfos.
QTextStream & endl(QTextStream &s)