All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LArVertexHelper.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArHelpers/LArVertexHelper.h
3  *
4  * @brief Header file for the vertex helper class.
5  *
6  * $Log: $
7  */
8 #ifndef LAR_VERTEX_HELPER_H
9 #define LAR_VERTEX_HELPER_H 1
10 
11 #include "Objects/Cluster.h"
12 #include "Objects/Vertex.h"
13 
14 namespace lar_content
15 {
16 
17 /**
18  * @brief LArVertexHelper class
19  */
21 {
22 public:
23  /**
24  * ClusterDirection enumeration
25  */
27  {
31  };
32 
33  /**
34  * @brief Get the direction of the cluster in z, using a projection of the provided vertex
35  *
36  * @param pandora the pandora instance
37  * @param pVertex the address of the vertex
38  * @param pCluster the address of the cluster
39  * @param tanAngle look for vertex inside triangle with apex shifted along the cluster length
40  * @param apexShift look for vertex inside triangle with apex shifted along the cluster length
41  *
42  * @return the cluster direction in z
43  */
44  static ClusterDirection GetClusterDirectionInZ(const pandora::Pandora &pandora, const pandora::Vertex *const pVertex,
45  const pandora::Cluster *const pCluster, const float tanAngle, const float apexShift);
46 
47  /**
48  * @brief Determine if a vertex is within a detector's fiducial volume. This throws a STATUS_CODE_INVALID_PARAMETER exception if the detector
49  * is not recognised.
50  *
51  * @param pandora The Pandora instance
52  * @param vertex The vertex to check
53  * @param detector The string describing the detector of interest
54  * DUNEFD HD: dune_fd_hd
55  *
56  * @return true if in fiducial volume, false if not
57  */
58  static bool IsInFiducialVolume(const pandora::Pandora &pandora, const pandora::CartesianVector &vertex, const std::string &detector);
59 };
60 
61 } // namespace lar_content
62 
63 #endif // #ifndef LAR_VERTEX_HELPER_H
process_name vertex
Definition: cheaterreco.fcl:51
LArVertexHelper class.
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_PARAM...
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
Definition: reco_sbnd.fcl:182
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. ...