TwoDVertexDistanceFeatureTool class for the calculation of 2d distance to neutrino vertex.
More...
#include <TrackShowerIdFeatureTool.h>
|
| TwoDVertexDistanceFeatureTool () |
| Default constructor. More...
|
|
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
|
void | Run (LArMvaHelper::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) |
|
| MvaFeatureTool ()=default |
| Default constructor. More...
|
|
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
| Run the algorithm tool. More...
|
|
virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...args) |
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
float | CalculateVertexDistance (const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster) const |
| Calculation of vertex distance. More...
|
|
TwoDVertexDistanceFeatureTool class for the calculation of 2d distance to neutrino vertex.
Definition at line 98 of file TrackShowerIdFeatureTool.h.
lar_content::TwoDVertexDistanceFeatureTool::TwoDVertexDistanceFeatureTool |
( |
| ) |
|
float lar_content::TwoDVertexDistanceFeatureTool::CalculateVertexDistance |
( |
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::Cluster *const |
pCluster |
|
) |
| const |
|
private |
Calculation of vertex distance.
- Parameters
-
pCluster | the cluster we are characterizing |
- Returns
- distance to neutrino vertex
StatusCode lar_content::TwoDVertexDistanceFeatureTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Definition at line 306 of file TrackShowerIdFeatureTool.cc.
308 PANDORA_RETURN_RESULT_IF_AND_IF(
309 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SlidingLinearFitWindow",
m_slidingLinearFitWindow));
311 return STATUS_CODE_SUCCESS;
unsigned int m_slidingLinearFitWindow
The sliding linear fit window.
void lar_content::TwoDVertexDistanceFeatureTool::Run |
( |
LArMvaHelper::MvaFeatureVector & |
featureVector, |
|
|
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::Cluster *const |
pCluster |
|
) |
| |
Definition at line 265 of file TrackShowerIdFeatureTool.cc.
268 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
269 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() << std::endl;
271 float straightLineLength(-1.f), ratio(-1.f);
275 straightLineLength = (slidingFitResultLarge.GetGlobalMaxLayerPosition() - slidingFitResultLarge.GetGlobalMinLayerPosition()).GetMagnitude();
276 if (straightLineLength > std::numeric_limits<float>::epsilon())
279 catch (
const StatusCodeException &)
283 featureVector.push_back(ratio);
static float GetVertexDistance(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster)
Get the distance between the interaction vertex (if present in the current vertex list) and a provide...
static float GetWireZPitch(const pandora::Pandora &pandora, const float maxWirePitchDiscrepancy=0.01)
Return the wire pitch.
unsigned int m_slidingLinearFitWindow
The sliding linear fit window.
BEGIN_PROLOG could also be cout
void lar_content::TwoDVertexDistanceFeatureTool::Run |
( |
LArMvaHelper::MvaFeatureMap & |
featureMap, |
|
|
pandora::StringVector & |
featureOrder, |
|
|
const std::string & |
featureToolName, |
|
|
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::Cluster *const |
pCluster |
|
) |
| |
unsigned int lar_content::TwoDVertexDistanceFeatureTool::m_slidingLinearFitWindow |
|
private |
The documentation for this class was generated from the following files: