Protected Member Functions | Private Member Functions | List of all members
lar_content::CheatingBeamParticleSliceSelectionTool Class Reference

CheatingBeamParticleSliceSelectionTool class. More...

#include <CheatingBeamParticleSliceSelectionTool.h>

Inheritance diagram for lar_content::CheatingBeamParticleSliceSelectionTool:
lar_content::CheatingSliceSelectionTool lar_content::SliceSelectionBaseTool

Protected Member Functions

bool IsTarget (const pandora::MCParticle *const mcParticle) const
 Template method to determine if an MC particle matches the target criteria for slice selection. Return true if match. More...
 
- Protected Member Functions inherited from lar_content::CheatingSliceSelectionTool
pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 

Private Member Functions

pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 

Additional Inherited Members

- Public Types inherited from lar_content::CheatingSliceSelectionTool
typedef std::map< float, int, std::greater< float > > MetricSliceIndexMap
 
- Public Member Functions inherited from lar_content::CheatingSliceSelectionTool
 CheatingSliceSelectionTool ()
 Default constructor. More...
 
void SelectSlices (const pandora::Algorithm *const pAlgorithm, const SliceVector &inputSliceVector, SliceVector &outputSliceVector)
 Select which slice(s) to use. More...
 
- Protected Attributes inherited from lar_content::CheatingSliceSelectionTool
int m_maxSlices
 The maximum number of slices to retain (0 to retain all) - default 0. More...
 
float m_threshold
 The minimum cut threshold to retain a slice (< 0 for no threshold) - default -1. More...
 
std::string m_cutVariable
 The variable to cut on ("purity" or "completeness") - default "completeness". More...
 

Detailed Description

CheatingBeamParticleSliceSelectionTool class.

Definition at line 19 of file CheatingBeamParticleSliceSelectionTool.h.

Member Function Documentation

bool lar_content::CheatingBeamParticleSliceSelectionTool::IsTarget ( const pandora::MCParticle *const  mcParticle) const
protectedvirtual

Template method to determine if an MC particle matches the target criteria for slice selection. Return true if match.

Parameters
mcParticlethe MC particle to check

Implements lar_content::CheatingSliceSelectionTool.

Definition at line 20 of file CheatingBeamParticleSliceSelectionTool.cc.

21 {
22  return LArMCParticleHelper::IsBeamParticle(mcParticle);
23 }
static bool IsBeamParticle(const pandora::MCParticle *const pMCParticle)
Returns true if passed a primary beam MCParticle.
StatusCode lar_content::CheatingBeamParticleSliceSelectionTool::ReadSettings ( const pandora::TiXmlHandle  xmlHandle)
private

Definition at line 27 of file CheatingBeamParticleSliceSelectionTool.cc.

28 {
30 }
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)

The documentation for this class was generated from the following files: