Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
CheatingSliceIdBaseTool.h
Go to the documentation of this file.
1
8#ifndef LAR_CHEATING_SLICE_ID_BASE_TOOL_H
9#define LAR_CHEATING_SLICE_ID_BASE_TOOL_H 1
10
12
13#include <functional>
14
15namespace lar_content
16{
17
22{
23public:
24 virtual void SelectOutputPfos(const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses,
25 const SliceHypotheses &crSliceHypotheses, pandora::PfoList &selectedPfos) = 0;
26
35 static void GetTargetParticleWeight(const pandora::PfoList *const pPfoList, float &targetParticleWeight, float &totalWeight,
36 std::function<bool(const pandora::MCParticle *const)> fCriteria);
37
46 static void GetTargetParticleWeight(const pandora::CaloHit *const pCaloHit, float &targetParticleWeight, float &totalWeight,
47 std::function<bool(const pandora::MCParticle *const)> fCriteria);
48
49private:
51};
52
53} // namespace lar_content
54
55#endif // #ifndef LAR_CHEATING_SLICE_ID_BASE_TOOL_H
Header file for the master algorithm class.
static void GetTargetParticleWeight(const pandora::CaloHit *const pCaloHit, float &targetParticleWeight, float &totalWeight, std::function< bool(const pandora::MCParticle *const)> fCriteria)
Get the target particle weight for a calo hit.
virtual void SelectOutputPfos(const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, pandora::PfoList &selectedPfos)=0
Select which reconstruction hypotheses to use; neutrino outcomes or cosmic-ray muon outcomes for each...
static void GetTargetParticleWeight(const pandora::PfoList *const pPfoList, float &targetParticleWeight, float &totalWeight, std::function< bool(const pandora::MCParticle *const)> fCriteria)
Get the target particle weight in a list of pfos.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
SliceIdBaseTool class.
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition Algorithm.h:21
CaloHit class.
Definition CaloHit.h:26
MCParticle class.
Definition MCParticle.h:26
std::vector< pandora::PfoList > SliceHypotheses
StatusCode
The StatusCode enum.
MANAGED_CONTAINER< const ParticleFlowObject * > PfoList