Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
NViewMatchingAlgorithm.cc
Go to the documentation of this file.
1
10
12
16
20
21using namespace pandora;
22
23namespace lar_content
24{
25
26template <typename T>
30
31//------------------------------------------------------------------------------------------------------------------------------------------
32
33template <typename T>
38//------------------------------------------------------------------------------------------------------------------------------------------
40template <typename T>
42{
43 m_matchingControl.UpdateForNewCluster(pNewCluster);
44}
45
46//------------------------------------------------------------------------------------------------------------------------------------------
48template <typename T>
51 m_matchingControl.UpdateUponDeletion(pDeletedCluster);
52}
53
54//------------------------------------------------------------------------------------------------------------------------------------------
55
56template <typename T>
57const std::string &NViewMatchingAlgorithm<T>::GetClusterListName(const HitType hitType) const
58{
59 return m_matchingControl.GetClusterListName(hitType);
60}
61
62//------------------------------------------------------------------------------------------------------------------------------------------
63
64template <typename T>
66{
67 return m_matchingControl.GetInputClusterList(hitType);
68}
69
70//------------------------------------------------------------------------------------------------------------------------------------------
71
72template <typename T>
74{
75 return m_matchingControl.GetSelectedClusterList(hitType);
76}
77
78//------------------------------------------------------------------------------------------------------------------------------------------
79
80template <typename T>
82{
83 m_matchingControl.SelectAllInputClusters();
84}
85
86//------------------------------------------------------------------------------------------------------------------------------------------
87
88template <typename T>
90{
91 m_matchingControl.PrepareAllInputClusters();
92}
93
94//------------------------------------------------------------------------------------------------------------------------------------------
95
96template <typename T>
98{
99 m_matchingControl.TidyUp();
100}
101
102//------------------------------------------------------------------------------------------------------------------------------------------
103
104template <typename T>
106{
107 m_matchingControl.PerformMainLoop();
108}
109
110//------------------------------------------------------------------------------------------------------------------------------------------
111
112template <typename T>
114{
115 PANDORA_RETURN_RESULT_IF(STATUS_CODE_SUCCESS, !=, m_matchingControl.ReadSettings(xmlHandle));
116
117 return MatchingBaseAlgorithm::ReadSettings(xmlHandle);
118}
119
120//------------------------------------------------------------------------------------------------------------------------------------------
121
131
132} // namespace lar_content
Grouping of header files for many classes of use in particle flow algorithms.
Header file for the cluster helper class.
Header file for the lar shower overlap result class.
Header file for the lar track overlap result class.
Header file for the lar track two view overlap result class.
Header file for the n view matching algorithm class.
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
Definition StatusCodes.h:19
Header file for the three view matching control class.
Header file for the two view matching control class.
virtual pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
const std::string & GetClusterListName(const pandora::HitType hitType) const
Get the cluster list name corresponding to a specified hit type.
const pandora::ClusterList & GetInputClusterList(const pandora::HitType hitType) const
Get the input cluster list corresponding to a specified hit type.
void UpdateUponDeletion(const pandora::Cluster *const pDeletedCluster)
Update to reflect cluster deletion.
virtual void PerformMainLoop()
Main loop over cluster combinations in order to populate the overlap container. Responsible for calli...
virtual void PrepareAllInputClusters()
Perform any preparatory steps required, e.g. caching expensive fit results for clusters.
void UpdateForNewCluster(const pandora::Cluster *const pNewCluster)
Update to reflect addition of a new cluster to the problem space.
virtual pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
virtual void TidyUp()
Tidy member variables in derived class.
const pandora::ClusterList & GetSelectedClusterList(const pandora::HitType hitType) const
Get the selected cluster list corresponding to a specified hit type.
virtual void SelectAllInputClusters()
Select a subset of input clusters for processing in this algorithm.
Cluster class.
Definition Cluster.h:31
HitType
Calorimeter hit type enum.
MANAGED_CONTAINER< const Cluster * > ClusterList
StatusCode
The StatusCode enum.