Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
StreamSelectionAlgorithm.h
Go to the documentation of this file.
1
8#ifndef LAR_STREAM_SELECTION_ALGORITHM_H
9#define LAR_STREAM_SELECTION_ALGORITHM_H 1
10
11#include "Pandora/Algorithm.h"
12
13namespace lar_content
14{
15
20{
21public:
26
27 virtual ~StreamSelectionAlgorithm() = default;
28
29protected:
30 typedef std::map<std::string, pandora::ClusterList> ClusterListMap;
31
39 virtual pandora::StatusCode AllocateToStreams(const pandora::Cluster *const pCluster) = 0;
40
42
43 std::string m_inputListName;
44 std::string m_listType;
47
48private:
50};
51
52} // namespace lar_content
53
54#endif // LAR_STREAM_SELECTION_ALGORITHM_H
Header file for the algorithm class.
pandora::StatusCode Run()
Run the algorithm.
virtual ~StreamSelectionAlgorithm()=default
pandora::StringVector m_listNames
The name of the output lists.
ClusterListMap m_clusterListMap
The map from cluster list names to cluster lists.
std::string m_listType
The type of the input lists (currently only Cluster is supported)
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
std::string m_inputListName
The input list name if not using the current list.
std::map< std::string, pandora::ClusterList > ClusterListMap
virtual pandora::StatusCode AllocateToStreams(const pandora::Cluster *const pCluster)=0
Allocate a cluster to the appropriate streams.
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition Algorithm.h:21
Cluster class.
Definition Cluster.h:31
std::vector< std::string > StringVector
StatusCode
The StatusCode enum.