8 #ifndef LAR_COSMIC_RAY_VERTEX_BUILDING_ALGORITHM_H
9 #define LAR_COSMIC_RAY_VERTEX_BUILDING_ALGORITHM_H 1
11 #include "Pandora/Algorithm.h"
30 pandora::StatusCode
Run();
31 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
38 void GetCosmicPfos(
const pandora::PfoList *
const pPfoList, pandora::PfoVector &pfoVector)
const;
78 void SetParticleParameters(
const pandora::CartesianVector &vtxPosition,
const pandora::CartesianVector &vtxDirection,
79 const pandora::ParticleFlowObject *
const pPfo)
const;
91 #endif // #ifndef LAR_COSMIC_RAY_VERTEX_BUILDING_ALGORITHM_H
std::unordered_map< const pandora::Cluster *, LArPointingCluster > LArPointingClusterMap
bool m_useParentShowerVertex
use the parent pfo for the shower vertices
Header file for the lar pointing cluster class.
void SetParticleParameters(const pandora::CartesianVector &vtxPosition, const pandora::CartesianVector &vtxDirection, const pandora::ParticleFlowObject *const pPfo) const
Set the vertex and direction of the Pfos.
bool m_isDualPhase
type of geometry
std::string m_vertexListName
The name of the output vertex list.
void BuildCosmicRayParent(const LArPointingClusterMap &pointingClusterMap, const pandora::ParticleFlowObject *const pPfo) const
Reconstruct the vertex and direction of a parent cosmic-ray Pfo.
CosmicRayVertexBuildingAlgorithm class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void BuildCosmicRayParticles(const LArPointingClusterMap &pointingClusterMap, const pandora::PfoVector &pfoVector) const
Reconstruct the vertex and direction of a list of cosmic-ray Pfos.
pandora::StatusCode Run()
std::string m_parentPfoListName
The name of the input pfo list.
unsigned int m_halfWindowLayers
number of layers to use for half-window of sliding fit
float m_maxVertexDisplacementFromTrack
The maximum separation of a close vertex from the cosmic ray track.
CosmicRayVertexBuildingAlgorithm()
Default constructor.
void GetCosmicPfos(const pandora::PfoList *const pPfoList, pandora::PfoVector &pfoVector) const
Get the list of input pfos to this algorithm.
void BuildCosmicRayDaughter(const pandora::ParticleFlowObject *const pPfo) const
Reconstruct the vertex and direction of a daughter cosmic-ray Pfo.
void BuildPointingClusterMap(const pandora::PfoVector &pfoVector, LArPointingClusterMap &pointingClusterMap) const
Build a map of 3D sliding fits from the input Pfos.