LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
Slice features class. More...
Public Member Functions | |
SliceFeatures (const pandora::PfoList &nuPfos, const pandora::PfoList &crPfos, const BdtBeamParticleIdTool *const pTool, const SliceFeatureParameters &sliceFeatureParameters) | |
Constructor. More... | |
SliceFeatures (const SliceFeatures &rhs)=default | |
Copy constructor. More... | |
SliceFeatures & | operator= (const SliceFeatures &rhs)=default |
Assignment operator. 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... | |
const BdtBeamParticleIdTool * | m_pTool |
The tool that owns this. More... | |
Slice features class.
Definition at line 219 of file BdtBeamParticleIdTool.h.
lar_content::BdtBeamParticleIdTool::SliceFeatures::SliceFeatures | ( | const pandora::PfoList & | nuPfos, |
const pandora::PfoList & | crPfos, | ||
const BdtBeamParticleIdTool *const | pTool, | ||
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 |
pTool | address of the tool using this class |
geometryInfo | geometry information block |
Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::Initialize().
|
default |
Copy constructor.
rhs | 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 633 of file BdtBeamParticleIdTool.cc.
Referenced by lar_content::BdtBeamParticleIdTool::SelectOutputPfos().
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 649 of file BdtBeamParticleIdTool.cc.
References lar_content::LArMvaHelper::CalculateClassificationScore().
|
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 557 of file BdtBeamParticleIdTool.cc.
References f, lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetContainmentLimit(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetPlanes(), and lar_content::BdtBeamParticleIdTool::m_sliceFeatureParameters.
|
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 516 of file BdtBeamParticleIdTool.cc.
References lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetBeamLArTPCIntersection(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetNSelectedHits(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetSelectedFraction(), and lar_content::BdtBeamParticleIdTool::m_sliceFeatureParameters.
|
private |
Check if a given 3D spacepoint is inside the global LArTPC volume.
spacePoint |
Definition at line 619 of file BdtBeamParticleIdTool.cc.
References lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxX(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxY(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxZ(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinX(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinY(), lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinZ(), and lar_content::BdtBeamParticleIdTool::m_sliceFeatureParameters.
|
inline |
Check if all features were calculable.
Definition at line 529 of file BdtBeamParticleIdTool.h.
|
default |
Assignment operator.
rhs | the SliceFeatures to assign |
|
private |
The MVA feature vector.
Definition at line 305 of file BdtBeamParticleIdTool.h.
|
private |
Is the feature vector available.
Definition at line 303 of file BdtBeamParticleIdTool.h.
|
private |
The tool that owns this.
Definition at line 306 of file BdtBeamParticleIdTool.h.
|
private |
Geometry information block.
Definition at line 304 of file BdtBeamParticleIdTool.h.