LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 
15 namespace lar_content
16 {
17 
22 {
23 public:
24  virtual void SelectOutputPfos(const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, pandora::PfoList &selectedPfos) = 0;
25 
34  static void GetTargetParticleWeight(const pandora::PfoList *const pPfoList, float &targetParticleWeight, float &totalWeight, std::function<bool(const pandora::MCParticle *const)> fCriteria);
35 
44  static void GetTargetParticleWeight(const pandora::CaloHit *const pCaloHit, float &targetParticleWeight, float &totalWeight, std::function<bool(const pandora::MCParticle *const)> fCriteria);
45 
46 private:
47  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
48 };
49 
50 } // namespace lar_content
51 
52 #endif // #ifndef LAR_CHEATING_SLICE_ID_BASE_TOOL_H
CheatingSliceIdBaseTool class.
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...
Header file for the master algorithm class.
std::vector< pandora::PfoList > SliceHypotheses
SliceIdBaseTool class.
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)