LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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...
 

Detailed Description

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

Definition at line 18 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 48 of file SimpleBeamParticleId_tool.cc.

49  : m_minBDTScore(pset.get<float>("MinBDTScore"))
50  {}
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 54 of file SimpleBeamParticleId_tool.cc.

References m_minBDTScore.

55  {
56  for (Slice& slice : slices) {
57  if (slice.GetTopologicalScore() > m_minBDTScore) slice.TagAsTarget();
58  }
59  }
std::vector< TCSlice > slices
Definition: DataStructs.cxx:13
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 36 of file SimpleBeamParticleId_tool.cc.

Referenced by ClassifySlices().


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