SimpleCone class.
More...
#include <LArThreeDSlidingConeFitResult.h>
|
| SimpleCone (const pandora::CartesianVector &coneApex, const pandora::CartesianVector &coneDirection, const float coneLength, const float coneTanHalfAngle) |
| Constructor. More...
|
|
const pandora::CartesianVector & | GetConeApex () const |
| Get the cone apex. More...
|
|
const pandora::CartesianVector & | GetConeDirection () const |
| Get the cone direction. More...
|
|
float | GetConeLength () const |
| Get the cone length. More...
|
|
float | GetConeTanHalfAngle () const |
| Get the tangent of the cone half-angle. More...
|
|
float | GetMeanRT (const pandora::Cluster *const pCluster) const |
| Get the mean transverse distance to all hits in a cluster (whether contained or not) More...
|
|
float | GetBoundedHitFraction (const pandora::Cluster *const pCluster) const |
| Get the fraction of hits in a provided cluster that are bounded within the cone, using fitted cone angle and length. More...
|
|
float | GetBoundedHitFraction (const pandora::Cluster *const pCluster, const float coneLength, const float coneTanHalfAngle) const |
| Get the fraction of hits in a provided cluster that are bounded within the cone, using provided cone angle and length. More...
|
|
lar_content::SimpleCone::SimpleCone |
( |
const pandora::CartesianVector & |
coneApex, |
|
|
const pandora::CartesianVector & |
coneDirection, |
|
|
const float |
coneLength, |
|
|
const float |
coneTanHalfAngle |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
coneApex | |
coneDirection | |
coneLength | |
coneTanHalfAngle | |
Definition at line 173 of file LArThreeDSlidingConeFitResult.h.
float m_coneLength
The cone length.
pandora::CartesianVector m_coneDirection
The cone direction.
float m_coneTanHalfAngle
The tangent of the cone half-angle.
pandora::CartesianVector m_coneApex
The cone apex.
float lar_content::SimpleCone::GetBoundedHitFraction |
( |
const pandora::Cluster *const |
pCluster | ) |
const |
|
inline |
Get the fraction of hits in a provided cluster that are bounded within the cone, using fitted cone angle and length.
- Parameters
-
pCluster | the address of the cluster |
- Returns
- the bounded hit fraction
Definition at line 212 of file LArThreeDSlidingConeFitResult.h.
float GetConeTanHalfAngle() const
Get the tangent of the cone half-angle.
float GetBoundedHitFraction(const pandora::Cluster *const pCluster) const
Get the fraction of hits in a provided cluster that are bounded within the cone, using fitted cone an...
float GetConeLength() const
Get the cone length.
float lar_content::SimpleCone::GetBoundedHitFraction |
( |
const pandora::Cluster *const |
pCluster, |
|
|
const float |
coneLength, |
|
|
const float |
coneTanHalfAngle |
|
) |
| const |
Get the fraction of hits in a provided cluster that are bounded within the cone, using provided cone angle and length.
- Parameters
-
pCluster | the address of the cluster |
coneLength | the provided cone length |
coneTanHalfAngle | the provided tangent of the cone half-angle |
- Returns
- the bounded hit fraction
const pandora::CartesianVector & lar_content::SimpleCone::GetConeApex |
( |
| ) |
const |
|
inline |
const pandora::CartesianVector & lar_content::SimpleCone::GetConeDirection |
( |
| ) |
const |
|
inline |
Get the cone direction.
- Returns
- the cone direction
Definition at line 191 of file LArThreeDSlidingConeFitResult.h.
pandora::CartesianVector m_coneDirection
The cone direction.
float lar_content::SimpleCone::GetConeLength |
( |
| ) |
const |
|
inline |
float lar_content::SimpleCone::GetConeTanHalfAngle |
( |
| ) |
const |
|
inline |
Get the tangent of the cone half-angle.
- Returns
- the tangent of the cone half-angle
Definition at line 205 of file LArThreeDSlidingConeFitResult.h.
float m_coneTanHalfAngle
The tangent of the cone half-angle.
float lar_content::SimpleCone::GetMeanRT |
( |
const pandora::Cluster *const |
pCluster | ) |
const |
Get the mean transverse distance to all hits in a cluster (whether contained or not)
- Parameters
-
pCluster | the address of the cluster |
- Returns
- the mean transverse distance to all hits (whether contained or not)
Definition at line 22 of file LArThreeDSlidingConeFitResult.cc.
24 CartesianPointVector hitPositionVector;
28 const unsigned int nClusterHits(pCluster->GetNCaloHits());
30 for (
const CartesianVector &hitPosition : hitPositionVector)
32 const CartesianVector displacement(hitPosition - this->
GetConeApex());
33 const float rT(displacement.GetCrossProduct(this->GetConeDirection()).GetMagnitude());
37 return ((nClusterHits > 0) ? rTSum /
static_cast<float>(nClusterHits) : 0.
f);
const pandora::CartesianVector & GetConeApex() const
Get the cone apex.
static void GetCoordinateVector(const pandora::Cluster *const pCluster, pandora::CartesianPointVector &coordinateVector)
Get vector of hit coordinates from an input cluster.
pandora::CartesianVector lar_content::SimpleCone::m_coneApex |
|
private |
pandora::CartesianVector lar_content::SimpleCone::m_coneDirection |
|
private |
float lar_content::SimpleCone::m_coneLength |
|
private |
float lar_content::SimpleCone::m_coneTanHalfAngle |
|
private |
The documentation for this class was generated from the following files: