LArPointingCluster class.
More...
#include <LArPointingCluster.h>
lar_content::LArPointingCluster::LArPointingCluster |
( |
const pandora::Cluster *const |
pCluster, |
|
|
const unsigned int |
fitHalfLayerWindow = 10 , |
|
|
const float |
fitLayerPitch = 0.3f |
|
) |
| |
Constructor.
- Parameters
-
pCluster | address of the cluster |
fitHalfLayerWindow | the fit layer half window |
fitLayerPitch | the fit layer pitch, units cm |
lar_content::LArPointingCluster::LArPointingCluster |
( |
const TwoDSlidingFitResult & |
slidingFitResult | ) |
|
Constructor.
- Parameters
-
slidingFitResult | the input sliding fit result |
Definition at line 34 of file LArPointingCluster.cc.
void BuildPointingCluster(const TwoDSlidingFitResult &slidingFitResult)
Build the pointing cluster object from the sliding fit result.
Constructor.
- Parameters
-
slidingFitResult | the input sliding fit result |
Definition at line 41 of file LArPointingCluster.cc.
void BuildPointingCluster(const TwoDSlidingFitResult &slidingFitResult)
Build the pointing cluster object from the sliding fit result.
void lar_content::LArPointingCluster::BuildPointingCluster |
( |
const TwoDSlidingFitResult & |
slidingFitResult | ) |
|
|
private |
Build the pointing cluster object from the sliding fit result.
- Parameters
-
slidingFitResult | the input sliding fit result |
Definition at line 48 of file LArPointingCluster.cc.
52 if (!((TPC_VIEW_U == hitType) || (TPC_VIEW_V == hitType) || (TPC_VIEW_W == hitType)))
53 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
55 if (slidingFitResult.GetMinLayer() >= slidingFitResult.GetMaxLayer())
56 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
58 const bool isInner((slidingFitResult.GetGlobalMinLayerPosition().GetZ() < slidingFitResult.GetGlobalMaxLayerPosition().GetZ()));
62 const Vertex minVertex(
m_pCluster, slidingFitResult.GetGlobalMinLayerPosition(), slidingFitResult.GetGlobalMinLayerDirection(),
63 slidingFitResult.GetMinLayerRms(), isInner);
64 const Vertex maxVertex(
m_pCluster, slidingFitResult.GetGlobalMaxLayerPosition(), slidingFitResult.GetGlobalMaxLayerDirection() * -1.f,
65 slidingFitResult.GetMaxLayerRms(), !isInner);
const pandora::Cluster * m_pCluster
The address of the cluster.
static pandora::HitType GetClusterHitType(const pandora::Cluster *const pCluster)
Get the hit type associated with a two dimensional cluster.
Vertex m_innerVertex
The inner vertex.
Vertex m_outerVertex
The outer vertex.
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex
Build the pointing cluster object from the sliding fit result.
- Parameters
-
slidingFitResult | the input sliding fit result |
Definition at line 73 of file LArPointingCluster.cc.
76 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
78 if (slidingFitResult.GetMinLayer() >= slidingFitResult.GetMaxLayer())
79 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
81 const bool isInner((slidingFitResult.GetGlobalMinLayerPosition().GetZ() < slidingFitResult.GetGlobalMaxLayerPosition().GetZ()) &&
82 (slidingFitResult.GetMinLayer() < slidingFitResult.GetMaxLayer()));
86 const Vertex minVertex(
m_pCluster, slidingFitResult.GetGlobalMinLayerPosition(), slidingFitResult.GetGlobalMinLayerDirection(),
87 slidingFitResult.GetMinLayerRms(), isInner);
88 const Vertex maxVertex(
m_pCluster, slidingFitResult.GetGlobalMaxLayerPosition(), slidingFitResult.GetGlobalMaxLayerDirection() * -1.f,
89 slidingFitResult.GetMaxLayerRms(), !isInner);
const pandora::Cluster * m_pCluster
The address of the cluster.
static pandora::HitType GetClusterHitType(const pandora::Cluster *const pCluster)
Get the hit type associated with a two dimensional cluster.
Vertex m_innerVertex
The inner vertex.
Vertex m_outerVertex
The outer vertex.
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex
const pandora::Cluster * lar_content::LArPointingCluster::GetCluster |
( |
| ) |
const |
|
inline |
Get the address of the cluster.
- Returns
- the address of the cluster
Definition at line 201 of file LArPointingCluster.h.
const pandora::Cluster * m_pCluster
The address of the cluster.
Get the inner vertex.
- Returns
- the inner vertex
Definition at line 208 of file LArPointingCluster.h.
Vertex m_innerVertex
The inner vertex.
float lar_content::LArPointingCluster::GetLength |
( |
void |
| ) |
const |
|
inline |
Get length of pointing cluster.
- Returns
- the length
Definition at line 229 of file LArPointingCluster.h.
float GetLengthSquared() const
Get length squared of pointing cluster.
float lar_content::LArPointingCluster::GetLengthSquared |
( |
| ) |
const |
|
inline |
Get length squared of pointing cluster.
- Returns
- the length squared
Definition at line 222 of file LArPointingCluster.h.
Vertex m_innerVertex
The inner vertex.
Vertex m_outerVertex
The outer vertex.
const pandora::CartesianVector & GetPosition() const
Get the vertex position.
Get the outer vertex.
- Returns
- the outer vertex
Definition at line 215 of file LArPointingCluster.h.
Vertex m_outerVertex
The outer vertex.
Vertex lar_content::LArPointingCluster::m_innerVertex |
|
private |
Vertex lar_content::LArPointingCluster::m_outerVertex |
|
private |
const pandora::Cluster* lar_content::LArPointingCluster::m_pCluster |
|
private |
The documentation for this class was generated from the following files: