VertexDistanceFeatureTool class for the calculation of distance to neutrino vertex.
More...
#include "TrackShowerIdFeatureTool.h"
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
VertexDistanceFeatureTool class for the calculation of distance to neutrino vertex.
Definition at line 160 of file TrackShowerIdFeatureTool.h.
lar_content::ThreeDVertexDistanceFeatureTool::ThreeDVertexDistanceFeatureTool |
( |
| ) |
|
StatusCode lar_content::ThreeDVertexDistanceFeatureTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
Run the algorithm tool.
- Parameters
-
featureVector | the vector of features to append |
args | arguments to pass to the tool |
void lar_content::ThreeDVertexDistanceFeatureTool::Run |
( |
LArMvaHelper::MvaFeatureVector & |
featureVector, |
|
|
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const pandora::ParticleFlowObject *const |
pInputPfo |
|
) |
| |
Definition at line 408 of file TrackShowerIdFeatureTool.cc.
References lar_content::LArPfoHelper::GetVertex().
411 if (PandoraContentApi::GetSettings(*pAlgorithm)->ShouldDisplayAlgorithmInfo())
412 std::cout <<
"----> Running Algorithm Tool: " << this->GetInstanceName() <<
", " << this->GetType() << std::endl;
416 (void) PandoraContentApi::GetCurrentList(*pAlgorithm, pVertexList);
418 if ((!pVertexList->empty()) && (pVertexList->size() == 1) && (VERTEX_3D == pVertexList->front()->GetVertexType()))
422 vertexDistance = (pVertexList->front()->GetPosition() -
LArPfoHelper::GetVertex(pInputPfo)->GetPosition()).GetMagnitude();
424 catch (
const StatusCodeException &) {}
427 featureVector.push_back(vertexDistance);
static const pandora::Vertex * GetVertex(const pandora::ParticleFlowObject *const pPfo)
Get the pfo vertex.
MvaTypes::MvaFeature MvaFeature
std::list< Vertex > VertexList
The documentation for this class was generated from the following files:
- /cvmfs/larsoft.opensciencegrid.org/products/larpandoracontent/v03_14_03/source/larpandoracontent/LArTrackShowerId/TrackShowerIdFeatureTool.h
- /cvmfs/larsoft.opensciencegrid.org/products/larpandoracontent/v03_14_03/source/larpandoracontent/LArTrackShowerId/TrackShowerIdFeatureTool.cc