LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CutClusterCharacterisationAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_CUT_CLUSTER_CHARACTERISATION_ALGORITHM_H
9 #define LAR_CUT_CLUSTER_CHARACTERISATION_ALGORITHM_H 1
10 
12 
13 namespace lar_content
14 {
15 
20 {
21 public:
26 
35  static float GetVertexDistance(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster);
36 
46  static float GetShowerFitWidth(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster, const unsigned int showerFitWindow);
47 
48 private:
49  virtual bool IsClearTrack(const pandora::Cluster *const pCluster) const;
50  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
51 
52  unsigned int m_slidingFitWindow;
53  unsigned int m_slidingShowerFitWindow;
54  unsigned int m_minCaloHitsCut;
60 };
61 
62 } // namespace lar_content
63 
64 #endif // #ifndef LAR_CUT_CLUSTER_CHARACTERISATION_ALGORITHM_H
Header file for the cluster characterisation base algorithm class.
virtual bool IsClearTrack(const pandora::Cluster *const pCluster) const
Whether cluster is identified as a clear track.
static float GetVertexDistance(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster)
Get the distance between the interaction vertex (if present in the current vertex list) and a provide...
float m_rTWidthRatioCut
The maximum ratio of transverse fit position width to straight line length to qualify as a track...
float m_vertexDistanceRatioCut
The maximum ratio of vertex separation to straight line length to qualify as a track.
float m_maxShowerLengthCut
The maximum cluster length to qualify as a shower.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
unsigned int m_minCaloHitsCut
The minimum number of calo hits to qualify as a track.
unsigned int m_slidingShowerFitWindow
The layer window for the sliding shower fits.
unsigned int m_slidingFitWindow
The layer window for the sliding linear fits.
float m_showerWidthRatioCut
The maximum ratio of shower fit width to straight line length to qualify as a track.
static float GetShowerFitWidth(const pandora::Algorithm *const pAlgorithm, const pandora::Cluster *const pCluster, const unsigned int showerFitWindow)
Get a measure of the width of a cluster, using a sliding shower fit result.
float m_pathLengthRatioCut
The maximum ratio of path length to straight line length to qualify as a track.