Public Member Functions | Private Attributes | List of all members
lar_pandora::SimpleBeamParticleId Class Reference

Simple beam particle ID tool that selects the most likely beam particle slice using the scores from Pandora. More...

Inheritance diagram for lar_pandora::SimpleBeamParticleId:
lar_pandora::SliceIdBaseTool

Public Member Functions

 SimpleBeamParticleId (fhicl::ParameterSet const &pset)
 Default constructor. More...
 
void ClassifySlices (SliceVector &slices, const art::Event &evt) override
 Classify slices as neutrino or cosmic. More...
 

Private Attributes

float m_minBDTScore
 The minimum BDT score to select a slice as a beam particle. More...
 

Additional Inherited Members

- Private Member Functions inherited from lar_pandora::SliceIdBaseTool
virtual ~SliceIdBaseTool () noexcept=default
 

Detailed Description

Simple beam particle ID tool that selects the most likely beam particle slice using the scores from Pandora.

Definition at line 19 of file SimpleBeamParticleId_tool.cc.

Constructor & Destructor Documentation

lar_pandora::SimpleBeamParticleId::SimpleBeamParticleId ( fhicl::ParameterSet const &  pset)

Default constructor.

Parameters
psetFHiCL parameter set

Definition at line 52 of file SimpleBeamParticleId_tool.cc.

52  :
53  m_minBDTScore(pset.get<float>("MinBDTScore"))
54 {
55 }
float m_minBDTScore
The minimum BDT score to select a slice as a beam particle.

Member Function Documentation

void lar_pandora::SimpleBeamParticleId::ClassifySlices ( SliceVector slices,
const art::Event evt 
)
overridevirtual

Classify slices as neutrino or cosmic.

Parameters
slicesthe input vector of slices to classify
evtthe art event

Implements lar_pandora::SliceIdBaseTool.

Definition at line 59 of file SimpleBeamParticleId_tool.cc.

60 {
61  for (Slice &slice : slices)
62  {
63  if (slice.GetTopologicalScore() > m_minBDTScore)
64  slice.TagAsTarget();
65  }
66 }
SlicingAlgorithm::Slice Slice
std::vector< TCSlice > slices
Definition: DataStructs.cxx:12
float m_minBDTScore
The minimum BDT score to select a slice as a beam particle.

Member Data Documentation

float lar_pandora::SimpleBeamParticleId::m_minBDTScore
private

The minimum BDT score to select a slice as a beam particle.

Definition at line 38 of file SimpleBeamParticleId_tool.cc.


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