22 const PfoList *pPfoList(
nullptr);
25 if (!pPfoList || pPfoList->empty())
28 std::cout <<
"UnattachedDeltaRaysAlgorithm: pfo list " <<
m_pfoListName <<
" unavailable." << std::endl;
29 return STATUS_CODE_SUCCESS;
34 for (
const Pfo *
const pPfo : *pPfoList)
37 unattachedDeltaRays.push_back(pPfo);
43 for (
const Pfo *
const pPfoToDelete : allPfosToDelete)
48 return STATUS_CODE_SUCCESS;
static pandora::StatusCode Delete(const pandora::Algorithm &algorithm, const T *const pT)
Delete an object from the current list.
static pandora::StatusCode GetList(const pandora::Algorithm &algorithm, const std::string &listName, const T *&pT)
Get a named list.
static const pandora::PandoraSettings * GetSettings(const pandora::Algorithm &algorithm)
Get the pandora settings instance.
static void GetAllConnectedPfos(const pandora::PfoList &inputPfoList, pandora::PfoList &outputPfoList)
Get a flat list of all pfos, recursively including all daughters and parents associated with those pf...
static bool IsShower(const pandora::ParticleFlowObject *const pPfo)
Return shower flag based on Pfo Particle ID.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
std::string m_pfoListName
The pfo list name.
pandora::StatusCode Run()
Run the algorithm.
ParticleFlowObject class.