CheatingCosmicRayShowerMatchingAlg class.
More...
#include <CheatingCosmicRayShowerMatchingAlg.h>
|
pandora::StatusCode | Run () |
|
void | GetCandidateClusters (pandora::ClusterList &candidateClusterList) const |
| Get the list of candidate clusters for matching with existing pfos. More...
|
|
void | CosmicRayShowerMatching (const pandora::ParticleFlowObject *const pPfo, const pandora::Cluster *const pPfoCluster, const pandora::ClusterList &candidateClusterList) const |
| Perform cosmic ray shower matching for a specific cluster in a pfo. More...
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
void lar_content::CheatingCosmicRayShowerMatchingAlg::CosmicRayShowerMatching |
( |
const pandora::ParticleFlowObject *const |
pPfo, |
|
|
const pandora::Cluster *const |
pPfoCluster, |
|
|
const pandora::ClusterList & |
candidateClusterList |
|
) |
| const |
|
private |
Perform cosmic ray shower matching for a specific cluster in a pfo.
- Parameters
-
pPfo | the pfo of interest |
pPfoCluster | the pfo cluster of interest |
candidateClusterList | the list of candidate clusters |
Definition at line 62 of file CheatingCosmicRayShowerMatchingAlg.cc.
68 const MCParticle *
const pPfoMCParticle(MCParticleHelper::GetMainMCParticle(pPfoCluster));
71 for (
const Cluster *
const pCandidateCluster : candidateClusterList)
76 if (!PandoraContentApi::IsAvailable(*
this, pCandidateCluster))
79 if (pPfoCluster == pCandidateCluster)
84 const MCParticle *
const pMCParticle(MCParticleHelper::GetMainMCParticle(pCandidateCluster));
88 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::AddToPfo(*
this, pPfo, pCandidateCluster));
90 catch (
const StatusCodeException &)
95 catch (
const StatusCodeException &)
static pandora::HitType GetClusterHitType(const pandora::Cluster *const pCluster)
Get the hit type associated with a two dimensional cluster.
static const pandora::MCParticle * GetParentMCParticle(const pandora::MCParticle *const pMCParticle)
Get the parent mc particle.
static bool IsNeutrino(const pandora::MCParticle *const pMCParticle)
Whether a mc particle is a neutrino or antineutrino.
void lar_content::CheatingCosmicRayShowerMatchingAlg::GetCandidateClusters |
( |
pandora::ClusterList & |
candidateClusterList | ) |
const |
|
private |
Get the list of candidate clusters for matching with existing pfos.
- Parameters
-
candidateClusterList | to receive the list of candidate clusters |
Definition at line 44 of file CheatingCosmicRayShowerMatchingAlg.cc.
48 const ClusterList *pClusterList(
nullptr);
50 if (STATUS_CODE_SUCCESS != PandoraContentApi::GetList(*
this, clusterListName, pClusterList))
52 std::cout <<
"CheatingCosmicRayShowerMatchingAlg - Could not access cluster list with name " << clusterListName <<
std::endl;
56 candidateClusterList.insert(candidateClusterList.end(), pClusterList->begin(), pClusterList->end());
pandora::StringVector m_inputClusterListNames
The input cluster list names.
QTextStream & endl(QTextStream &s)
StatusCode lar_content::CheatingCosmicRayShowerMatchingAlg::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Definition at line 102 of file CheatingCosmicRayShowerMatchingAlg.cc.
104 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"InputPfoListName",
m_inputPfoListName));
106 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadVectorOfValues(xmlHandle,
"InputClusterListNames",
m_inputClusterListNames));
108 return STATUS_CODE_SUCCESS;
pandora::StringVector m_inputClusterListNames
The input cluster list names.
std::string m_inputPfoListName
The input pfo list name.
StatusCode lar_content::CheatingCosmicRayShowerMatchingAlg::Run |
( |
| ) |
|
|
private |
Definition at line 22 of file CheatingCosmicRayShowerMatchingAlg.cc.
24 ClusterList candidateClusterList;
27 const PfoList *pPfoList(
nullptr);
28 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetList(*
this,
m_inputPfoListName, pPfoList));
30 for (
const ParticleFlowObject *
const pPfo : *pPfoList)
32 ClusterList twoDClusters;
35 for (
const Cluster *
const pPfoCluster : twoDClusters)
39 return STATUS_CODE_SUCCESS;
static void GetTwoDClusterList(const pandora::ParticleFlowObject *const pPfo, pandora::ClusterList &clusterList)
Get the list of 2D clusters from an input pfo.
void GetCandidateClusters(pandora::ClusterList &candidateClusterList) const
Get the list of candidate clusters for matching with existing pfos.
void CosmicRayShowerMatching(const pandora::ParticleFlowObject *const pPfo, const pandora::Cluster *const pPfoCluster, const pandora::ClusterList &candidateClusterList) const
Perform cosmic ray shower matching for a specific cluster in a pfo.
std::string m_inputPfoListName
The input pfo list name.
std::string lar_content::CheatingCosmicRayShowerMatchingAlg::m_inputPfoListName |
|
private |
The documentation for this class was generated from the following files: