All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CPriorityAlgoBase.h
Go to the documentation of this file.
1 /**
2  * \file CPriorityAlgoBase.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CPriorityAlgoBase
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CPRIORITYALGOBASE_H
15 #define RECOTOOL_CPRIORITYALGOBASE_H
16 
19 
20 namespace cmtool {
21 
22  /**
23  \class CPriorityAlgoBase
24  An abstract base class for CMatchManager and CMergeManager to determine
25  cluster "priority" for matching and merging action respectively.
26  */
27  class CPriorityAlgoBase : public CMAlgoBase {
28 
29  public:
30 
31  /// Default constructor
33 
34  /// Default destructor
35  virtual ~CPriorityAlgoBase(){}
36 
37  /**
38  Core function: given the CPAN input, return whether a cluster should be
39  merged or not.
40  */
42  {
43  if(cluster.GetNHits()) return 1.;
44  return 0.1;
45  }
46 
47  };
48 
49 }
50 
51 #endif
52 /** @} */ // end of doxygen group
virtual ~CPriorityAlgoBase()
Default destructor.
process_name cluster
Definition: cheaterreco.fcl:51
Class def header for a class CMAlgoBase.
virtual float Priority(const cluster::ClusterParamsAlg &cluster)
CPriorityAlgoBase()
Default constructor.