All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClusterCharacterisationBaseAlgorithm.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArTrackShowerId/ClusterCharacterisationBaseAlgorithm.h
3  *
4  * @brief Header file for the cluster characterisation base algorithm class.
5  *
6  * $Log: $
7  */
8 #ifndef LAR_CLUSTER_CHARACTERISATION_BASE_ALGORITHM_H
9 #define LAR_CLUSTER_CHARACTERISATION_BASE_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 
13 namespace lar_content
14 {
15 
16 /**
17  * @brief ClusterCharacterisationBaseAlgorithm class
18  */
19 class ClusterCharacterisationBaseAlgorithm : public pandora::Algorithm
20 {
21 public:
22  /**
23  * @brief Default constructor
24  */
26 
27  /**
28  * @brief Destructor
29  */
31 
32 protected:
33  /**
34  * @brief Whether cluster is identified as a clear track
35  *
36  * @param pCluster address of the relevant cluster
37  *
38  * @return boolean
39  */
40  virtual bool IsClearTrack(const pandora::Cluster *const pCluster) const = 0;
41 
42  pandora::StatusCode Run();
43  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
44 
45  pandora::StringVector m_inputClusterListNames; ///< The names of the input cluster lists
46 
47  bool m_zeroMode; ///< Whether to zero all existing cluster particle id, overrides all other parameters
48 
49  bool m_overwriteExistingId; ///< Whether to consider any clusters that already have an assigned particle id
50  bool m_useUnavailableClusters; ///< Whether to consider clusters that are already constituents of a pfo
51 };
52 
53 } // namespace lar_content
54 
55 #endif // #ifndef LAR_CLUSTER_CHARACTERISATION_BASE_ALGORITHM_H
bool m_overwriteExistingId
Whether to consider any clusters that already have an assigned particle id.
bool m_useUnavailableClusters
Whether to consider clusters that are already constituents of a pfo.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
virtual bool IsClearTrack(const pandora::Cluster *const pCluster) const =0
Whether cluster is identified as a clear track.
pandora::StringVector m_inputClusterListNames
The names of the input cluster lists.
bool m_zeroMode
Whether to zero all existing cluster particle id, overrides all other parameters. ...