34 std::cout <<
"---MC-PARTICLE-MONITORING-----------------------------------------------------------------------" <<
std::endl;
35 const MCParticleList *pMCParticleList =
nullptr;
36 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetList(*
this,
m_mcParticleListName, pMCParticleList));
38 const CaloHitList *pCaloHitList =
nullptr;
39 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetList(*
this,
m_caloHitListName, pCaloHitList));
41 LArMCParticleHelper::PrimaryParameters parameters;
42 parameters.m_minHitSharingFraction = 0.f;
58 if (!nuMCParticlesToGoodHitsMap.empty())
60 std::cout << std::endl <<
"BeamNeutrinos: " <<
std::endl;
64 if (!beamMCParticlesToGoodHitsMap.empty())
66 std::cout << std::endl <<
"BeamParticles: " <<
std::endl;
70 if (!crMCParticlesToGoodHitsMap.empty())
72 std::cout << std::endl <<
"CosmicRays: " <<
std::endl;
76 std::cout <<
"------------------------------------------------------------------------------------------------" <<
std::endl;
78 return STATUS_CODE_SUCCESS;
std::unordered_map< const pandora::MCParticle *, pandora::CaloHitList > MCContributionMap
bool m_useTrueNeutrinosOnly
Whether to consider only mc particles that were neutrino induced.
static bool IsCosmicRay(const pandora::MCParticle *const pMCParticle)
Return true if passed a primary cosmic ray MCParticle.
static void SelectReconstructableMCParticles(const pandora::MCParticleList *pMCParticleList, const pandora::CaloHitList *pCaloHitList, const PrimaryParameters ¶meters, std::function< bool(const pandora::MCParticle *const)> fCriteria, MCContributionMap &selectedMCParticlesToHitsMap)
Select target, reconstructable mc particles that match given criteria.
static bool IsBeamParticle(const pandora::MCParticle *const pMCParticle)
Returns true if passed a primary beam MCParticle.
std::string m_caloHitListName
Name of input calo hit list.
void PrintPrimaryMCParticles(const LArMCParticleHelper::MCContributionMap &mcContributionMap) const
Extract details of each mc primary in a given mc contribution map.
std::string m_mcParticleListName
Name of input MC particle list.
static bool IsBeamNeutrinoFinalState(const pandora::MCParticle *const pMCParticle)
Returns true if passed a primary neutrino final state MCParticle.
QTextStream & endl(QTextStream &s)