CPAlgoNHits.h
Go to the documentation of this file.
1 /**
2  * \file CPAlgoNHits.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CPAlgoNHits
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CPALGONHITS_H
15 #define RECOTOOL_CPALGONHITS_H
16 
18 
19 namespace cmtool {
20  /**
21  \class CPAlgoNHits
22  Simple algorithm to determine priority based on # of hits.
23  If # hits < set cut value by a user, returns -1.
24  */
25  class CPAlgoNHits : public CPriorityAlgoBase {
26 
27  public:
28 
29  /// Default constructor
30  CPAlgoNHits();
31 
32  /// Default destructor
33  virtual ~CPAlgoNHits(){};
34 
35  /**
36  Core function: given the CPAN input, return a float which indicates
37  the user-defined priority for analysis.
38  */
39  virtual float Priority(const ::cluster::ClusterParamsAlg &cluster);
40 
41  /// Setter for minimum # hits
42  void SetMinHits(size_t n) { _min_hits = n; }
43 
44  protected:
45 
46  size_t _min_hits;
47 
48  };
49 }
50 #endif
51 /** @} */ // end of doxygen group
52 
void SetMinHits(size_t n)
Setter for minimum # hits.
Definition: CPAlgoNHits.h:42
virtual ~CPAlgoNHits()
Default destructor.
Definition: CPAlgoNHits.h:33
Cluster finding and building.
Class def header for a class CPriorityAlgoBase.
CPAlgoNHits()
Default constructor.
Definition: CPAlgoNHits.cxx:6
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition: CPAlgoNHits.cxx:13
std::void_t< T > n