9 #include "Pandora/AlgorithmHeaders.h" 25 m_persistFeatures(false),
26 m_trainingSetMode(false),
27 m_testBeamMode(false),
28 m_enableProbability(true),
29 m_useThreeDInformation(true),
30 m_minProbabilityCut(0.5
f),
32 m_applyFiducialCut(false),
33 m_fiducialMinX(-
std::numeric_limits<float>::max()),
34 m_fiducialMaxX(
std::numeric_limits<float>::max()),
35 m_fiducialMinY(-
std::numeric_limits<float>::max()),
36 m_fiducialMaxY(
std::numeric_limits<float>::max()),
37 m_fiducialMinZ(-
std::numeric_limits<float>::max()),
38 m_fiducialMaxZ(
std::numeric_limits<float>::max()),
39 m_applyReconstructabilityChecks(false),
40 m_filePathEnvironmentVariable(
"FW_SEARCH_PATH")
52 StringVector featureOrder;
57 bool isTrueTrack(
false);
61 const MCParticle *
const pMCParticle(MCParticleHelper::GetMainMCParticle(pCluster));
62 isTrueTrack = ((PHOTON != pMCParticle->GetParticleId()) && (E_MINUS !=
std::abs(pMCParticle->GetParticleId())));
64 catch (
const StatusCodeException &)
91 object_creation::ParticleFlowObject::Metadata metadata;
92 metadata.m_propertiesToAdd[
"TrackScore"] = -1.f;
93 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::ParticleFlowObject::AlterMetadata(*
this, pPfo, metadata));
95 return (pPfo->GetParticleId() == MU_MINUS);
99 ClusterList wClusterList;
104 StringVector featureOrder;
108 for (
auto const &[featureKey, featureValue] : featureMap)
112 if (!featureValue.IsInitialized())
116 object_creation::ParticleFlowObject::Metadata metadata;
117 metadata.m_propertiesToAdd[
"TrackScore"] = -1.f;
118 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::ParticleFlowObject::AlterMetadata(*
this, pPfo, metadata));
120 return (pPfo->GetParticleId() == MU_MINUS);
126 const MCParticleList *pMCParticleList(
nullptr);
127 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetList(*
this,
m_mcParticleListName, pMCParticleList));
129 const CaloHitList *pCaloHitList(
nullptr);
130 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::GetList(*
this,
m_caloHitListName, pCaloHitList));
146 if (pfoToReconstructable2DHitsMap.empty())
152 pfoToReconstructable2DHitsMap, mcParticlesToGoodHitsMaps, pfoToMCParticleHitSharingMap, mcParticleToPfoHitSharingMap);
153 if (pfoToMCParticleHitSharingMap.empty())
156 unsigned int nHitsInBestMCParticleTotal(0);
157 unsigned int nHitsSharedWithBestMCParticleTotal(0);
158 int bestMCParticlePdgCode(0);
159 CartesianVector threeDVertexPosition(0.
f, 0.
f, 0.
f);
160 float hitsShower(0), hitsTrack(0);
165 const pandora::MCParticle *
const pAssociatedMCParticle(mcParticleCaloHitListPair.first);
166 const CaloHitList &allMCHits(targetMCParticleToHitsMap.at(pAssociatedMCParticle));
167 const CaloHitList &associatedMCHits(mcParticleCaloHitListPair.second);
169 if ((PHOTON == pAssociatedMCParticle->GetParticleId()) || (E_MINUS ==
std::abs(pAssociatedMCParticle->GetParticleId())))
170 hitsShower += associatedMCHits.size();
172 hitsTrack += associatedMCHits.size();
174 if (associatedMCHits.size() > nHitsSharedWithBestMCParticleTotal)
176 nHitsSharedWithBestMCParticleTotal = associatedMCHits.size();
177 nHitsInBestMCParticleTotal = allMCHits.size();
178 bestMCParticlePdgCode = pAssociatedMCParticle->GetParticleId();
179 threeDVertexPosition = pAssociatedMCParticle->GetVertex();
183 const float trackShowerHitsRatio((hitsTrack + hitsShower) > 0 ? hitsTrack / (hitsTrack + hitsShower) : 0.
f);
184 const bool isTrueTrack(trackShowerHitsRatio >= 0.5);
186 const int nHitsInPfoTotal(pfoToReconstructable2DHitsMap.at(pPfo).size());
187 const float purity((nHitsInPfoTotal > 0) ? nHitsSharedWithBestMCParticleTotal / static_cast<float>(nHitsInPfoTotal) : 0.f);
188 const float completeness(
189 (nHitsInBestMCParticleTotal > 0) ? nHitsSharedWithBestMCParticleTotal / static_cast<float>(nHitsInBestMCParticleTotal) : 0.f);
191 CaloHitList checkHitListW;
193 CaloHitList checkHitListU;
195 CaloHitList checkHitListV;
197 CaloHitList checkHitListAll;
198 checkHitListAll.splice(checkHitListAll.end(), checkHitListW);
199 checkHitListAll.splice(checkHitListAll.end(), checkHitListU);
200 checkHitListAll.splice(checkHitListAll.end(), checkHitListV);
209 unsigned int showerCount(0), allCount(0);
210 for (
const CaloHit *pHit : checkHitListAll)
212 if (hitToMCMap.find(pHit) != hitToMCMap.end())
214 const MCParticle *pHitMCParticle(hitToMCMap.at(pHit));
215 if ((PHOTON == pHitMCParticle->GetParticleId()) || (E_MINUS ==
std::abs(pHitMCParticle->GetParticleId())))
223 const float showerProbability(showerCount / static_cast<float>(allCount));
224 const bool mischaracterisedPfo((showerProbability < 0.5f && !isTrueTrack) || (showerProbability > 0.5 && isTrueTrack) ?
true :
false);
225 const bool isMainMCParticleSet(bestMCParticlePdgCode != 0);
227 if (isMainMCParticleSet)
232 const std::string
end = ((wClusterList.empty()) ?
"noChargeInfo.txt" :
".txt");
233 outputFile.append(end);
242 bool isTrueTrack(
false);
243 bool isMainMCParticleSet(
false);
248 isTrueTrack = ((PHOTON != pMCParticle->GetParticleId()) && (E_MINUS !=
std::abs(pMCParticle->GetParticleId())));
249 isMainMCParticleSet = (pMCParticle->GetParticleId() != 0);
251 catch (
const StatusCodeException &)
255 if (isMainMCParticleSet)
258 outputFile.append(wClusterList.empty() ?
"noChargeInfo.txt" :
".txt");
273 object_creation::ParticleFlowObject::Metadata metadata;
274 metadata.m_propertiesToAdd[
"TrackScore"] = score;
277 for (
auto const &[name,
value] : featureMap)
279 metadata.m_propertiesToAdd[name] =
value.Get();
282 PANDORA_THROW_RESULT_IF(STATUS_CODE_SUCCESS, !=, PandoraContentApi::ParticleFlowObject::AlterMetadata(*
this, pPfo, metadata));
289 template <
typename T>
292 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
295 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
298 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
301 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
304 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
307 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
310 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
313 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"PersistFeatures",
m_persistFeatures));
315 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"TrainingSetMode",
m_trainingSetMode));
317 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinCaloHitsCut",
m_minCaloHitsCut));
319 PANDORA_RETURN_RESULT_IF_AND_IF(
320 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"UseThreeDInformation",
m_useThreeDInformation));
322 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
326 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"BdtFileName",
m_mvaFileName));
327 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SvmFileName",
m_mvaFileName));
328 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MvaFileName",
m_mvaFileName));
330 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"BdtName",
m_mvaName));
331 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SvmName",
m_mvaName));
332 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MvaName",
m_mvaName));
336 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
338 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
340 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
343 PANDORA_RETURN_RESULT_IF_AND_IF(
344 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"BdtNameNoChargeInfo",
m_mvaNameNoChargeInfo));
345 PANDORA_RETURN_RESULT_IF_AND_IF(
346 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SvmNameNoChargeInfo",
m_mvaNameNoChargeInfo));
347 PANDORA_RETURN_RESULT_IF_AND_IF(
348 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MvaNameNoChargeInfo",
m_mvaNameNoChargeInfo));
351 PANDORA_RETURN_RESULT_IF_AND_IF(
352 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"EnableProbability",
m_enableProbability));
354 PANDORA_RETURN_RESULT_IF_AND_IF(
355 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinProbabilityCut",
m_minProbabilityCut));
359 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"CaloHitListName",
m_caloHitListName));
360 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"MCParticleListName",
m_mcParticleListName));
361 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"TrainingOutputFileName",
m_trainingOutputFile));
362 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"TestBeamMode",
m_testBeamMode));
363 PANDORA_RETURN_RESULT_IF_AND_IF(
364 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"ApplyFiducialCut",
m_applyFiducialCut));
367 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMinX",
m_fiducialMinX));
368 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMaxX",
m_fiducialMaxX));
369 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMinY",
m_fiducialMinY));
370 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMaxY",
m_fiducialMaxY));
371 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMinZ",
m_fiducialMinZ));
372 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, XmlHelper::ReadValue(xmlHandle,
"FiducialCutMaxZ",
m_fiducialMaxZ));
374 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
381 std::cout <<
"MvaPfoCharacterisationAlgorithm: MvaFileName and MvaName must be set if in classification mode " << std::endl;
382 return STATUS_CODE_INVALID_PARAMETER;
392 std::cout <<
"MvaPfoCharacterisationAlgorithm: MvaFileNameNoChargeInfo and MvaNameNoChargeInfo must be set if in classification mode for no charge info in 3D mode " 394 return STATUS_CODE_INVALID_PARAMETER;
402 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=,
409 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=,
413 for (
auto const &[pAlgorithmToolName, pAlgorithmTool] : algorithmToolMap)
414 PANDORA_RETURN_RESULT_IF(
417 for (
auto const &[pAlgorithmToolName, pAlgorithmTool] : algorithmToolMapNoChargeInfo)
418 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=,
423 for (
auto const &[pAlgorithmToolName, pAlgorithmTool] : algorithmToolMap)
432 template <
typename T>
435 const float vx(vertex.GetX()), vy(vertex.GetY()), vz(vertex.GetZ());
Header file for the mva pfo characterisation algorithm class.
bool m_enableProbability
Whether to use probabilities instead of binary classification.
std::string m_trainingOutputFile
The training output file.
static bool Classify(const MvaInterface &classifier, TCONTAINER &&featureContainer)
Use the trained classifier to predict the boolean class of an example.
pandora::StringVector m_algorithmToolNamesNoChargeInfo
Vector of strings saving feature tool order for use in feature calculation (missing W view) ...
unsigned int m_minPrimaryGoodViews
the minimum number of primary good views
static bool IsThreeD(const pandora::ParticleFlowObject *const pPfo)
Does Pfo contain 3D clusters.
Header file for the pfo helper class.
float m_fiducialMinZ
Fiducial volume minimum z.
std::unordered_map< const pandora::MCParticle *, pandora::CaloHitList > MCContributionMap
std::string m_caloHitListName
Name of input calo hit list.
std::map< std::string, pandora::AlgorithmTool * > AlgorithmToolMap
bool m_selectInputHits
whether to select input hits
float m_fiducialMaxX
Fiducial volume maximum x.
std::pair< const pandora::MCParticle *, pandora::CaloHitList > MCParticleCaloHitListPair
LArMCParticleHelper::PrimaryParameters m_primaryParameters
The mc particle primary selection parameters.
static void GetClusters(const pandora::PfoList &pfoList, const pandora::HitType &hitType, pandora::ClusterList &clusterList)
Get a list of clusters of a particular hit type from a list of pfos.
static pandora::StatusCode ProduceTrainingExample(const std::string &trainingOutputFile, const bool result, TCONTAINER &&featureContainer)
Produce a training example with the given features and result.
MvaPfoCharacterisationAlgorithm class.
std::string m_mcParticleListName
Name of input MC particle list.
unsigned int m_minCaloHitsCut
The minimum number of calo hits to qualify as a track.
bool m_testBeamMode
Whether the training set is from a test beam experiment.
unsigned int m_minPrimaryGoodHits
the minimum number of primary good Hits
T m_mvaNoChargeInfo
The mva for missing W view.
ClusterCharacterisationFeatureTool::FeatureToolMap m_featureToolMap
The feature tool map.
static void GetPfoToReconstructable2DHitsMap(const pandora::PfoList &pfoList, const MCContributionMap &selectedMCParticleToHitsMap, PfoContributionMap &pfoToReconstructable2DHitsMap, const bool foldBackHierarchy)
Get mapping from Pfo to reconstructable 2D hits (=good hits belonging to a selected reconstructable M...
PfoCharacterisationFeatureTool::FeatureToolMap m_featureToolMapNoChargeInfo
FeatureToolMap as a map for missing W view.
std::unordered_map< const pandora::CaloHit *, const pandora::MCParticle * > CaloHitToMCMap
constexpr auto abs(T v)
Returns the absolute value of the argument.
bool m_applyReconstructabilityChecks
Whether to apply reconstructability checks during training.
static void GetPfoMCParticleHitSharingMaps(const PfoContributionMap &pfoToReconstructable2DHitsMap, const MCContributionMapVector &selectedMCParticleToHitsMaps, PfoToMCParticleHitSharingMap &pfoToMCParticleHitSharingMap, MCParticleToPfoHitSharingMap &mcParticleToPfoHitSharingMap)
Get the mappings from Pfo -> pair (reconstructable MCparticles, number of reconstructable 2D hits sha...
std::map< const pandora::MCParticle *, PfoToSharedHitsVector > MCParticleToPfoHitSharingMap
bool m_applyFiducialCut
Whether to apply a fiducial volume cut during training.
bool m_foldBackHierarchy
whether to fold the hierarchy back to the primary (neutrino) or leading particles (test beam) ...
static void GetMCPrimaryMap(const pandora::MCParticleList *const pMCParticleList, MCRelationMap &mcPrimaryMap)
Get mapping from individual mc particles (in a provided list) and their primary parent mc particles...
MvaTypes::MvaFeatureMap MvaFeatureMap
static const pandora::MCParticle * GetMainMCParticle(const pandora::ParticleFlowObject *const pPfo)
Find the mc particle making the largest contribution to 2D clusters in a specified pfo...
unsigned int m_minHitsForGoodView
the minimum number of Hits for a good view
float m_maxPhotonPropagation
the maximum photon propagation length
std::map< std::string, MvaFeatureTool< Ts... > * > FeatureToolMap
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
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.
float m_fiducialMinY
Fiducial volume minimum y.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
static void GetMCParticleToCaloHitMatches(const pandora::CaloHitList *const pCaloHitList, const MCRelationMap &mcToTargetMCMap, CaloHitToMCMap &hitToMCMap, MCContributionMap &mcToTrueHitListMap)
Match calo hits to their parent particles.
static bool IsBeamParticle(const pandora::MCParticle *const pMCParticle)
Returns true if passed a primary beam MCParticle.
std::string m_mvaNameNoChargeInfo
The name of the mva to find for PFOs missing the W view, and thus charge info.
Header file for the lar two dimensional sliding fit result class.
bool PassesFiducialCut(const pandora::CartesianVector &vertex) const
Checks if the interaction vertex is within the fiducial volume.
float m_fiducialMaxY
Fiducial volume maximum y.
std::string m_mvaName
The name of the mva to find.
bool m_trainingSetMode
Whether to train.
static std::string FindFileInPath(const std::string &unqualifiedFileName, const std::string &environmentVariable, const std::string &delimiter=":")
Find the fully-qualified file name by searching through a list of delimiter-separated paths in a name...
Header file for the file helper class.
float m_minHitSharingFraction
the minimum Hit sharing fraction
std::vector< MCContributionMap > MCContributionMapVector
static pandora::StatusCode ProcessAlgorithmToolListToMap(const pandora::Algorithm &algorithm, const pandora::TiXmlHandle &xmlHandle, const std::string &listName, pandora::StringVector &algorithToolNameVector, AlgorithmToolMap &algorithmToolMap)
Process a list of algorithms tools in an xml file, using a map. Idea is for this to go to XmlHelper i...
float m_minProbabilityCut
The minimum probability to label a cluster as track-like.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::string m_mvaFileName
The mva input file.
std::string m_mvaFileNameNoChargeInfo
The mva input file for PFOs missing the W view, and thus charge info.
virtual bool IsClearTrack(const pandora::ParticleFlowObject *const pPfo) const
Whether pfo is identified as a clear track.
PfoCharacterisationFeatureTool::FeatureToolMap m_featureToolMapThreeD
FeatureToolMap as a map for 3D info.
float m_fiducialMinX
Fiducial volume minimum x.
static MvaFeatureVector CalculateFeatures(const MvaFeatureToolVector< Ts... > &featureToolVector, TARGS &&...args)
Calculate the features in a given feature tool vector.
std::vector< MCParticleCaloHitListPair > MCParticleToSharedHitsVector
std::string m_filePathEnvironmentVariable
The environment variable providing a list of paths to mva files.
static double CalculateProbability(const MvaInterface &classifier, TCONTAINER &&featureContainer)
Use the trained mva to calculate a classification probability for an example.
pandora::StringVector m_algorithmToolNames
Vector of strings saving feature tool order for use in feature calculation.
std::unordered_map< const pandora::ParticleFlowObject *, pandora::CaloHitList > PfoContributionMap
float m_fiducialMaxZ
Fiducial volume maximum z.
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.
static bool IsBeamNeutrinoFinalState(const pandora::MCParticle *const pMCParticle)
Returns true if passed a primary neutrino final state MCParticle.
std::unordered_map< const pandora::MCParticle *, const pandora::MCParticle * > MCRelationMap
bool m_persistFeatures
Whether to write the features to the properties map.
std::map< const pandora::ParticleFlowObject *, MCParticleToSharedHitsVector > PfoToMCParticleHitSharingMap
bool m_useThreeDInformation
Whether to use 3D information.
static pandora::StatusCode AddFeatureToolToMap(pandora::AlgorithmTool *const pFeatureTool, std::string pFeatureToolName, MvaFeatureToolMap< Ts... > &featureToolMap)
Add a feature tool to a map of feature tools.