Slice features class. More...
Public Member Functions | |
| SliceFeatures (const pandora::PfoList &nuPfos, const pandora::PfoList &crPfos, const SliceFeatureParameters &sliceFeatureParameters) | |
| Constructor. More... | |
| SliceFeatures (const SliceFeatures &)=default | |
| Copy constructor. More... | |
| ~SliceFeatures ()=default | |
| Destructor. More... | |
| bool | IsFeatureVectorAvailable () const |
| Check if all features were calculable. More... | |
| void | FillFeatureVector (LArMvaHelper::MvaFeatureVector &featureVector) const |
| Get the feature vector for the SVM. More... | |
| float | GetAdaBoostDecisionTreeScore (const AdaBoostDecisionTree &adaBoostDecisionTree) const |
| Get the probability that this slice contains a beam particle. More... | |
Private Member Functions | |
| void | GetLeadingCaloHits (const pandora::CaloHitList &inputCaloHitList, pandora::CaloHitList &outputCaloHitList, double &closestHitToFaceDistance) const |
| Select a given fraction of a slice's calo hits that are closest to the beam spot. More... | |
| void | GetLArTPCIntercepts (const pandora::CartesianVector &a0, const pandora::CartesianVector &majorAxis, pandora::CartesianVector &interceptOne, pandora::CartesianVector &interceptTwo) const |
| Find the intercepts of a line with the protoDUNE detector. More... | |
| bool | IsContained (const pandora::CartesianVector &spacePoint, const float limit) const |
| Check if a given 3D spacepoint is inside the global LArTPC volume. More... | |
Private Attributes | |
| bool | m_isAvailable |
| Is the feature vector available. More... | |
| const SliceFeatureParameters | m_sliceFeatureParameters |
| Geometry information block. More... | |
| LArMvaHelper::MvaFeatureVector | m_featureVector |
| The MVA feature vector. More... | |
Slice features class.
Definition at line 221 of file BdtBeamParticleIdTool.h.
| lar_content::BdtBeamParticleIdTool::SliceFeatures::SliceFeatures | ( | const pandora::PfoList & | nuPfos, |
| const pandora::PfoList & | crPfos, | ||
| const SliceFeatureParameters & | sliceFeatureParameters | ||
| ) |
Constructor.
| nuPfos | input list of Pfos reconstructed under the neutrino hypothesis |
| crPfos | input list of Pfos reconstructed under the cosmic ray hypothesis |
| geometryInfo | geometry information block |
|
default |
Copy constructor.
| The | SliceFeatures to copy |
|
default |
Destructor.
| void lar_content::BdtBeamParticleIdTool::SliceFeatures::FillFeatureVector | ( | LArMvaHelper::MvaFeatureVector & | featureVector | ) | const |
Get the feature vector for the SVM.
| featuresVector | empty feature vector to populate |
Definition at line 651 of file BdtBeamParticleIdTool.cc.
| float lar_content::BdtBeamParticleIdTool::SliceFeatures::GetAdaBoostDecisionTreeScore | ( | const AdaBoostDecisionTree & | adaBoostDecisionTree | ) | const |
Get the probability that this slice contains a beam particle.
| adaBoostDecisionTree | the adaptive boost decision tree used to calculate the probability |
Definition at line 667 of file BdtBeamParticleIdTool.cc.
|
private |
Find the intercepts of a line with the protoDUNE detector.
| a0 | a point on the line in question |
| majorAxis | the direction of the line in question |
| interceptOne | to receive the first intersection between line and protoDUNE detector |
| interceptTwo | to receive the second intersection between line and protoDUNE detector |
Definition at line 570 of file BdtBeamParticleIdTool.cc.
|
private |
Select a given fraction of a slice's calo hits that are closest to the beam spot.
| inputCaloHitList | all calo hits in slice |
| outputCaloHitList | to receive the list of selected calo hits |
| closestHitToFaceDistance | to receive the distance of closest hit to beam spot |
Definition at line 525 of file BdtBeamParticleIdTool.cc.
|
private |
Check if a given 3D spacepoint is inside the global LArTPC volume.
| spacePoint |
Definition at line 634 of file BdtBeamParticleIdTool.cc.
|
inline |
Check if all features were calculable.
Definition at line 524 of file BdtBeamParticleIdTool.h.
|
private |
The MVA feature vector.
Definition at line 299 of file BdtBeamParticleIdTool.h.
|
private |
Is the feature vector available.
Definition at line 297 of file BdtBeamParticleIdTool.h.
|
private |
Geometry information block.
Definition at line 298 of file BdtBeamParticleIdTool.h.
1.8.11