Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::LArVertexHelper Class Reference

LArVertexHelper class. More...

#include "LArVertexHelper.h"

Public Types

enum  ClusterDirection { DIRECTION_FORWARD_IN_Z , DIRECTION_BACKWARD_IN_Z , DIRECTION_UNKNOWN }
 

Static Public Member Functions

static ClusterDirection GetClusterDirectionInZ (const pandora::Pandora &pandora, const pandora::Vertex *const pVertex, const pandora::Cluster *const pCluster, const float tanAngle, const float apexShift)
 Get the direction of the cluster in z, using a projection of the provided vertex.
 
static bool IsInFiducialVolume (const pandora::Pandora &pandora, const pandora::CartesianVector &vertex, const std::string &detector)
 Determine if a vertex is within a detector's fiducial volume. This throws a STATUS_CODE_INVALID_PARAMETER exception if the detector is not recognised.
 

Detailed Description

LArVertexHelper class.

Definition at line 20 of file LArVertexHelper.h.

Member Enumeration Documentation

◆ ClusterDirection

ClusterDirection enumeration

Enumerator
DIRECTION_FORWARD_IN_Z 
DIRECTION_BACKWARD_IN_Z 
DIRECTION_UNKNOWN 

Definition at line 26 of file LArVertexHelper.h.

Member Function Documentation

◆ GetClusterDirectionInZ()

LArVertexHelper::ClusterDirection lar_content::LArVertexHelper::GetClusterDirectionInZ ( const pandora::Pandora pandora,
const pandora::Vertex *const  pVertex,
const pandora::Cluster *const  pCluster,
const float  tanAngle,
const float  apexShift 
)
static

Get the direction of the cluster in z, using a projection of the provided vertex.

Parameters
pandorathe pandora instance
pVertexthe address of the vertex
pClusterthe address of the cluster
tanAnglelook for vertex inside triangle with apex shifted along the cluster length
apexShiftlook for vertex inside triangle with apex shifted along the cluster length
Returns
the cluster direction in z

Definition at line 25 of file LArVertexHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsInFiducialVolume()

bool lar_content::LArVertexHelper::IsInFiducialVolume ( const pandora::Pandora pandora,
const pandora::CartesianVector vertex,
const std::string &  detector 
)
static

Determine if a vertex is within a detector's fiducial volume. This throws a STATUS_CODE_INVALID_PARAMETER exception if the detector is not recognised.

Parameters
pandoraThe Pandora instance
vertexThe vertex to check
detectorThe string describing the detector of interest DUNEFD HD: dune_fd_hd
Returns
true if in fiducial volume, false if not

Definition at line 67 of file LArVertexHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: